|
1 |
| -Quick start guide: |
| 1 | +# Quick start guide: |
2 | 2 |
|
3 | 3 | - Visit https://xapi-project.github.io/new-docs/ to view the current documentation.
|
| 4 | + |
| 5 | +## Required software |
| 6 | + |
| 7 | +The docs use Hugo and the [Hugo Relearn theme](https://mcshelby.github.io/hugo-theme-relearn), |
| 8 | +an enhanced fork of the popular Hugo Learn theme. |
| 9 | + |
| 10 | +### Compatible versions |
| 11 | + |
| 12 | +Due to a number of gradual changes in Hugo and Relearn, |
| 13 | +the docs are currently only compatible with specific older versions of Hugo and Relearn. |
| 14 | + |
| 15 | +Hugo v0.121.0 to ~v0.127.0 (the current version of the Ubuntu `snap` is too recent) |
| 16 | +- Fixes to support newer versions are forthcoming. |
| 17 | + |
| 18 | +Hugo Relearn 5.24.0 (defined by a git tag in doc/go.mod) |
| 19 | +- Note: Hugo Relearn >= 5.25 currently trigger additional warnings due to deprecations. |
| 20 | +- Further updates fix this situation are forthcoming step by step. |
| 21 | + |
| 22 | +Hugo Relearn >= 5.24.0 and < 6.x are expected to work: |
| 23 | +- https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/5/index.html#5-24-0 |
| 24 | +- Breaking changes in Relearn 6.0.0: |
| 25 | + https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/6/#6-0-0 |
| 26 | + |
| 27 | +## Installation |
| 28 | + |
4 | 29 | - Install Hugo; follow the guidance on https://gohugo.io/getting-started/installing.
|
5 |
| - You'll need Go as well: see https://go.dev/ |
6 |
| - - On Ubuntu 22.04 and older, use `sudo snap install hugo` to get the needed newer version of `hugo`. |
| 30 | + You'll need to install Go as well: see https://go.dev/ |
| 31 | + - Hugo installation is described at https://gohugo.io/installation |
| 32 | + - On Ubuntu 24.04, the version installed by `apt` works. |
| 33 | + - On Ubuntu 22.04 and older: |
| 34 | + - `apt-get install hugo` would install a version that is too old. |
| 35 | + - `sudo snap install hugo` installs a too recent version |
| 36 | + |
| 37 | + - To install Hugo from source, you need a recent `golang-1.2x` compiler: |
| 38 | + - On Ubuntu 22.04, this can be done with: |
| 39 | + ```bash |
| 40 | + sudo apt install golang-1.23-go |
| 41 | + # Add it to your path, assuming your .local/bin/ is early in your PATH: |
| 42 | + ln -s /usr/lib/go-1.23/bin/go ~/.local/bin/go |
| 43 | + go version |
| 44 | + go install github.com/gohugoio/ [email protected] |
| 45 | + ``` |
| 46 | + |
| 47 | +## Development |
| 48 | + |
7 | 49 | - Run a local server: `hugo server`
|
8 | 50 | - Open a browser at http://127.0.0.1:1313/new-docs/
|
9 | 51 | - Add content to `doc/content/`:
|
|
0 commit comments