Skip to content

TaiSakuma/improved-octo-fortnight

Repository files navigation

improved-octo-fortnight

GitHub Release GitHub Pages

Deploy dev docs Deploy release docs Deploy docs preview

A reference implementation of documentation workflows.

📚 Demo site

Features

Content

This repo documents a Python package. The setup should work for other languages with minor modifications.

Deployment

GitHub Pages structure

The deployed site is structured as follows:

/
├── index.html          # auto-generated version index
├── latest/             # copy of the latest release
├── dev/                # built from main
├── 2.0.0/              # release versions
├── 1.1.0/
├── 1.0.0/
└── pr/
    ├── 14/             # PR preview
    └── 13/

GitHub Actions workflows

These workflows build, deploy, and clean up the documentation:

Workflow Trigger Deploys to
docs-dev.yml Push to main /dev/, index.html
docs-release.yml Release /<version>/, /latest/, index.html
docs-pr-preview.yml PR opened/updated /pr/<number>/
docs-pr-cleanup.yml PR closed removes /pr/<number>/

The workflows require the GitHub settings

  • Settings > Pages > Source > Deploy from a branch > gh-pages (root /)

About

A reference implementation of Documentation workflow

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Languages