Skip to content

Commit

Permalink
[req-change] build_docs > build
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed May 10, 2024
1 parent 0344731 commit 8ab2e18
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: ./run-qa-checks

- name: Build docs in all formats
run: PRODUCTION=1 make build_docs
run: PRODUCTION=1 make build

# TODO: Uncomment the CI condition before merging
- name: Setup Google Cloud
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " build_docs to build the documentation in all formats (PDF, HTML and ePUB)"
@echo " build_docs_html to build the documentation in HTML format only"
@echo " build to build the documentation in all formats (PDF, HTML and ePUB)"
@echo " build_html to build the documentation in HTML format only"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
Expand Down Expand Up @@ -50,13 +50,13 @@ help:
clean:
rm -rf $(BUILDDIR)/*

.PHONY: build_docs
build_docs:
.PHONY: build
build:
./build.py $(formats)

.PHONY: build_docs_html
build_docs_html:
make build_docs formats=html
.PHONY: build_html
build_html:
make build formats=html

.PHONY: html
html:
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ Requirements: Python >= 3.9.
.. code-block:: shell
# This command will generate the documentation in all formats - HTML, PDF and ePUB
make build_docs
make build
# The ``formats`` argument is a comma separated list of formats to build,
# e.g. ``formats=html,pdf,epub``. The default is to build all available
# formats, which currently are ``html``, ``pdf`` and ``epub``.
make build_docs formats=pdf,html
make build formats=pdf,html
# This command is a shortcut for generating only HTML documentation during
# development, since building PDF and ePUB takes time.
make build_docs_html
make build_html
5. Open the generated HTML files in your browser.

Expand Down
2 changes: 1 addition & 1 deletion run-qa-checks
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ openwisp-qa-check \

echo ''
echo 'Checking documentation build status'
make build_docs_html
make build_html

# check for broken link
python -m http.server 8001 &> /dev/null & pid=$!
Expand Down

0 comments on commit 8ab2e18

Please sign in to comment.