Caution
DEPRECATED AND ARCHIVED. This repository is no longer maintained and does not accept changes.
The phēnix documentation, including the source for phenix.sceptre.dev,
now lives in the docs/ directory of
sceptre-phenix. Open documentation issues and pull
requests there instead.
The documentation moved in sandialabs/sceptre-phenix#419, and the pull requests still open here were migrated in sandialabs/sceptre-phenix#443. The rest of this README describes how this repository worked before the move.
This repository contained the source code and configuration for the official phēnix documentation.
The documentation was built using Material for MkDocs and versioned with mike.
Documentation is built and deployed automatically using GitHub Actions.
mainbranch: Pushing tomainwill automatically build and deploy thelatestversion of the docs.devbranch: Pushing todevwill automatically build and deploy thedevversion of the docs.
The workflow will build and publish the documentation from each branch. No manual deployment is necessary.
To preview documentation changes from a feature branch before merging:
- Go to the Actions tab in the repository.
- Select the Deploy Documentation workflow.
- Click Run workflow, select your feature branch, and click Run workflow.
This will deploy a version named after your branch (e.g., feat-new-docs). When the corresponding Pull Request is closed, this preview version is automatically deleted.
Important
Note for Forks: To preview deployments on your own fork, you must enable GitHub Pages:
- Go to Settings > Pages.
- Under Build and deployment > Source, select Deploy from a branch.
- Under Branch, select desired branch name and
/ (root). - Click Save.
Your site will be available at https://<username>.github.io/sceptre-phenix-docs/.
To build and serve the documentation locally, which includes the versioning selector, run:
make serveThe docs will be served on localhost:8000 by a Docker container.
Any changes to the Markdown files or mkdocs.yml will trigger an
automatic rebuild while the container is running. This alleviates
the need to run the command every time a change is made.
This repository uses prek (a Rust drop-in alternative to pre-commit) to enforce repository-wide checks such as spell-checking (codespell), shell linting (shellcheck), YAML linting (yamllint), conventional commit messages, and general hygiene. The same checks run in CI via the Lint workflow.
Install the dev tooling and register the git pre-commit hooks once:
make install-devRun all hooks against every file manually:
make lint
# or, equivalently
prek run --all-filesSee CONTRIBUTING.md for additional contribution guidelines.