all repos — www @ d8e95882ccb4dc549737f8ae4e0acfe7b148d42d

deserthorns.net content + generator

build/readme.md (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
## Requirements

Go 1.23.4

## Usage

`./build <ROOT>`

`<ROOT>` should be a path to the site's source directory.  The source directory must contain the following subdirectories and files:
- `wiki/`
- `assets`
- `index.html`

If `<ROOT>` is omitted, the current directory will be used as the source directory.


### Flags
- `--serve`, `-s`: Builds site, then serves built site on port 8000.  For previewing site, not for use in a live environment.

### Creating a new wiki page
Add a new name to `wiki.tab` at its proper place in the hierarchy and rerun the build. A new file will be created in the `/wiki/pages` directory with the proper template tags.