Documentation for GeoNetwork opensource is available via https://docs.geonetwork-opensource.org.
This documentation is written under the Creative Commons license Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0).
Reference:
The project issue tracker is used for communication, with ongoing topics tagged documentation.
Documentation is MkDocs-material which is a Markdown documentation framework written on top of MkDocs.
-
Install virtual environment:
virtualenv venv
-
Activate virtual environment and install (or update) requirements:
source venv/bin/activate pip install -r requirements.txt -
Use mkdocs to preview from virtual environment:
mkdocs serve
-
Preview: http://localhost:8000
Preview uses a single version, so expect some warnings from version chooser:
"GET /versions.json HTTP/1.1" code 404 -
Optional: Preview online help:
mkdocs serve --config-file help.yml
-
Build documentation with
compilephase:mvn compile -
Assemble
zipwithpackagephase:mvn package
-
Both
installanddeployare skipped (somvn clean installis fine). -
Use default profile to only build the default English docs:
mvn install -Pdefault
We use mike for publishing (from the gh-pages branch). Docs are published by the .github/workflows/docs.yml automation each time pull-request is merged.
If you wish to preview using your own gh-pages branch:
-
To deploy 4.4 docs as latest from the
mainbranch to websitegh-pagesbranch:mike deploy --title "4.4 Latest" --alias-type=copy --update-aliases 4.4 latest -
To deploy documentation for stable release:
mike deploy --push --alias-type=copy 4.2 stable
-
When starting a new branch you can make it the default:
mike set-default --push 4.6
Hint: When starting a new branch update
overview/changelog/history/index.mdheadings for latest, maintenance, stable (for prior branches also). -
To publish documentation for a maintenance release:
mike deploy --push --alias-type=copy 3.12 maintenance
-
To show published versions:
mike list
-
To preview things locally (uses your local
gh-pagesbranch):mike serve
Reference: