Skip to content

usnistgov/Docs4NIST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docs4NIST Action

This is a GitHub action that uses sphinx to build documentation and then host on https://pages.nist.gov as an approximation of ReadTheDocs.

Usage

  • Configure your repo for publishing on pages.nist.gov

  • Create a workflow, such as .github/workflows/Docs4NIST.yml:

    name: "Build Documentation"
    
    on: [push, pull_request, delete]
    
    jobs:
      docs:
        runs-on: ubuntu-latest
        steps:
          - uses: usnistgov/Docs4NIST@0.6
            with:
              docs-folder: docs/
              formats: |-
                epub
                pdf

Note: GitHub Actions' YAML implementation does not support list or array elements, so use a multiline string to declare formats, as illustrated above.

The self-generated documentation for this action is available at https://pages.nist.gov/Docs4NIST.

About

ReadTheDocs work-alike for Sphinx documentation at the US National Institute of Standards and Technology

Resources

License

Stars

Watchers

Forks

Languages