docs/ — Documentation¶
The documentation for GGIS is built with MkDocs using the Material theme.
The source lives in the docs/ directory of the repository.
Directory Structure¶
docs/
├── src/ # Markdown source files
│ ├── index.md # Home page
│ ├── administration/ # Admin guides
│ ├── developer/ # Developer guides (you are here)
│ └── harvester/ # Harvester integration guides
├── src/_assets/ # Shared CSS and images
├── mkdocs-base.yml # Shared MkDocs config (nav, extensions)
├── mkdocs-html.yml # HTML build config (inherits base)
├── mkdocs.yml # Default config used by mkdocs serve
├── build-docs-html.sh # Script to build the HTML site
├── Makefile # Developer shortcut commands
└── requirements.txt # Python dependencies for building docs
Running Locally¶
Install dependencies and start the live-reload server:
The site will be available at http://localhost:8000.
Building¶
Build the static HTML site:
Output goes to docs/site/. The CI pipeline publishes this to GitHub Pages automatically
on every push to main.
Adding a Page¶
- Create a new
.mdfile under the relevantsrc/subdirectory. - Add the frontmatter block (copy from an existing file —
title,summary,author,date,copyright,license). - Register the page in the
nav:section ofmkdocs-base.yml.
Navigation Config¶
Navigation is defined in docs/mkdocs-base.yml under the nav: key.