diff --git a/.github/workflows/docs-ci.yml b/.github/workflows/docs-ci.yml new file mode 100644 index 0000000..ccd6215 --- /dev/null +++ b/.github/workflows/docs-ci.yml @@ -0,0 +1,19 @@ +name: "Docs CI" + +on: + workflow_call: + +jobs: + test: + runs-on: "ubuntu-20.04" + steps: + - uses: "actions/checkout@v4" + - name: "Set up Python" + uses: "actions/setup-python@v5" + with: + python-version: "3.11" + - name: "Install Test Dependencies" + run: | + pip install -r doc_requirements.txt + - name: Build docs + run: make docs diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cb18efa..0e5e4b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,6 +3,9 @@ on: - pull_request - push jobs: + docs: + uses: "./.github/workflows/docs-ci.yml" + centos: runs-on: ubuntu-latest strategy: diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..26161df --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +help: ## Show this help. + @sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST) + +docs: ## Build unified docs. + pulp-docs build + +servedocs: ## Serves unified docs. + pulp-docs serve + +.PHONY: docs servedocs help diff --git a/doc_requirements.txt b/doc_requirements.txt new file mode 100644 index 0000000..60e329d --- /dev/null +++ b/doc_requirements.txt @@ -0,0 +1 @@ +pulp-docs @ git+https://github.com/pulp/pulp-docs@main