-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update doc/README.md and Hugo Relearn (to 5.23.0 for now)
Minor updates of the Hugo documentation: - The current Ubuntu snap package of Hugo is not supported by the docs. We should take a first minor step towards fixing this. - `doc/README.md` is outdated and should be updated. It says that the Ubuntu snap of Hugo works, but it does not anymore. Fix this by updating the outdated information. - An initial fix is to update the Relearn theme from 5.20.x to 5.23.0: - It does not introduce breaking changes. - It introduces more straightforward page links and deprecates older syntax. - Fix the warnings by updating relative links accordingly. Signed-off-by: Bernhard Kaindl <[email protected]>
- Loading branch information
1 parent
a4141f5
commit 458b138
Showing
6 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,51 @@ | ||
Quick start guide: | ||
# Quick start guide: | ||
|
||
- Visit https://xapi-project.github.io/new-docs/ to view the current documentation. | ||
|
||
## Required software | ||
|
||
The docs use Hugo and the [Hugo Relearn theme](https://mcshelby.github.io/hugo-theme-relearn), | ||
an enhanced fork of the popular Hugo Learn theme. | ||
|
||
### Compatible versions | ||
|
||
Due to a number of gradual changes in Hugo and Relearn, | ||
the docs are currently only compatible with specific older versions of Hugo and Relearn. | ||
|
||
Hugo v0.121.0 to ~v0.127.0 (the current version of the Ubuntu `snap` is too recent) | ||
- Fixes to support newer versions are forthcoming. | ||
|
||
Hugo Relearn 5.24.0 (defined by a git tag in doc/go.mod) | ||
- Note: Hugo Relearn >= 5.25 currently trigger additional warnings due to deprecations. | ||
- Further updates fix this situation are forthcoming step by step. | ||
|
||
Hugo Relearn >= 5.24.0 and < 6.x are expected to work: | ||
- https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/5/index.html#5-24-0 | ||
- Breaking changes in Relearn 6.0.0: | ||
https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/6/#6-0-0 | ||
|
||
## Installation | ||
|
||
- Install Hugo; follow the guidance on https://gohugo.io/getting-started/installing. | ||
You'll need Go as well: see https://go.dev/ | ||
- On Ubuntu 22.04 and older, use `sudo snap install hugo` to get the needed newer version of `hugo`. | ||
You'll need to install Go as well: see https://go.dev/ | ||
- Hugo installation is described at https://gohugo.io/installation | ||
- On Ubuntu 24.04, the version installed by `apt` works. | ||
- On Ubuntu 22.04 and older: | ||
- `apt-get install hugo` would install a version that is too old. | ||
- `sudo snap install hugo` installs a too recent version | ||
|
||
- To install Hugo from source, you need a recent `golang-1.2x` compiler: | ||
- On Ubuntu 22.04, this can be done with: | ||
```bash | ||
sudo apt install golang-1.23-go | ||
# Add it to your path, assuming your .local/bin/ is early in your PATH: | ||
ln -s /usr/lib/go-1.23/bin/go ~/.local/bin/go | ||
go version | ||
go install github.com/gohugoio/[email protected] | ||
``` | ||
|
||
## Development | ||
|
||
- Run a local server: `hugo server` | ||
- Open a browser at http://127.0.0.1:1313/new-docs/ | ||
- Add content to `doc/content/`: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters