This repo contains the reusable infrastructure and templates for the documentation websites curated and deployed by ACCESS-NRI.
The instructions below will help you set up a documentation repository and webite built using Material for MkDocs and hosted through ReadTheDocs (RTD).
The templates folder contains files needed to set up a documentation repository for ACCESS-NRI. They are organised into directories that mirror their intended location in the target repository.
To set up a documentation repository:
-
Clone this repository
git clone git@github.com:ACCESS-NRI/documentation-infra.git -
Copy the
templatesfiletree into your documentation repository rootcp -r templates/. <your-repository-path>This will copy all files/folders within
templates(including dot files and folders) into your documentation repository, with the correct structure. -
Modify the files
The copied files have commented lines starting with# MODIFY. This indicates that those lines might need to be edited based on the specifics of your documentation repository/website.
To set up a new RTD project for an ACCESS-NRI repository:
- Open an issue in this repository requesting a new RTD project, including:
- The GitHub repository URL
- The intended project name/slug on RTD
- The RTD usernames (or emails) for the intended maintainers
- The custom URL for the website (if required)
- The documentation team will create the RTD project with the proper settings and GitHub integration configured.
- Once the project is created, the documentation team will grant Maintainer permissions to the nominated individuals along with
access-nri. - Each maintainer should verify their access by logging into their personal RTD account and confirming the project appears in their dashboard.
-
Every RTD project must have at least two individual maintainers in addition to the
access-nriorganisation account. This ensures continuity of access and avoids single points of failure when team members change roles or leave. -
RTD projects must be maintained through individual personal RTD accounts, not the
access-nrione. This ensures each maintainer has access only to the projects they are responsible for. -
Each maintainer should log in to their personal RTD account using GitHub via the GitHub App integration (the legacy GitHub OAuth method is no longer supported and should not be used).
-
The
access-nriaccount must always be included as a maintainer alongside the individual maintainers. -
It is the maintainers' responsibility to keep the maintainers list up to date whenever team membership changes.
Feel free to ask any questions in the hive-docs-team Zulip channel. For bigger or more complex questions/suggestions, open a new issue in this repository.