Edit documentation in the folder content
Download Hugo and install locally from https://github.com/gohugoio/hugo/releases
**Last known working version is ** https://github.com/gohugoio/hugo/releases/tag/v0.65.3
The master branch is intended to represent the documentation source for current published website at gh-pages. The next-major-release branch is intended to be used to document new features not yet released. When a new release is published, **next-major-release ** is merged into master
- Clone the branch to work on
- Open a command line prompt, and make sure
hugo.exe
is available in path - Execute command
hugo.exe serve
. This will start a local webserver and display the documentation
- Execute command
hugo.exe
This will create the static site in the folderpublic
- Publish the generated site to the branch
gh-pages
- Either : Copy content of folder public into branch
gh-pages
and push changes to github manually - Or : Use a script for linux
publish_to_ghpages.sh
, will automatically publish content of public to gh-pages branch on GitHub
- Either : Copy content of folder public into branch
https://opm.github.io/ResInsight-UserDocumentation/
- In
config.toml
, setbaseURL = "https://resinsight.org/"
- Generate site by executing command
hugo.exe
- Make sure there is a file named CNAME with content resinsight.org
- Publish to https://github.com/OPM/ResInsight/tree/gh-pages
- If you want to publish a page, but avoid having an entry in the menu, add
hidden = true
to the header of the MD file. See about.md for an example.