Skip to content

Modernize sphinx

Modernize sphinx #143

name: "Build Documentation"
on: [push, pull_request, delete]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: usnistgov/NISTtheDocs2Death@main
with:
docs-folder: docs
separated-layout: true
pre-build-command: >
which git
|| (
(
apt-get -yq update
&& apt-get -yq install git
&& rm -rf /var/lib/apt/lists/*
)
|| (
apk update --no-cache
&& apk add --no-cache git
)
)
&& git config --global --add safe.directory /github/workspace
&& mkdir -p docs/source/generated
&& (sphinx-apidoc
--output-dir=docs/source/generated
--suffix=rst fipy)
&& (sphinx-apidoc
--output-dir=docs/source/generated
--suffix=rst examples)
&& (sphinx-apidoc
--output-dir=docs/source/generated
--suffix=rst docs/source/tutorial/package)