Skip to content

sandialabs/sceptre-phenix-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phēnix Documentation

Deploy Documentation Docs

This repository contains the source code and configuration for the official phēnix documentation.

The documentation is built using Material for MkDocs and versioned with mike.

Automated Deployment

Documentation is built and deployed automatically using GitHub Actions.

  • main branch: Pushing to main will automatically build and deploy the latest version of the docs.
  • dev branch: Pushing to dev will automatically build and deploy the dev version of the docs.

The workflow will commit the built static site to the gh-pages branch and push it to the repository, publishing the changes. No manual deployment is necessary.

Note

You will see a second workflow named "pages-build-deployment" running automatically after the deployment workflow completes. This is the standard GitHub system workflow that takes the static files pushed to the gh-pages branch and actually serves them to the web.

Do not disable this workflow. It is required for the site to be visible.

Previewing Feature Branches

To preview documentation changes from a feature branch before merging:

  1. Go to the Actions tab in the repository.
  2. Select the Deploy Documentation workflow.
  3. 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:

  1. Go to Settings > Pages.
  2. Under Build and deployment > Source, select Deploy from a branch.
  3. Under Branch, select gh-pages and / (root).
  4. Click Save.

Your site will be available at https://<username>.github.io/sceptre-phenix-docs/.

Build Docs Locally

To build and serve the documentation locally, which includes the versioning selector, run:

make serve

The 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.

About

phenix documentation

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors