Skip to content

Commit ac579e7

Browse files
oestebaneffigies
andcommitted
enh: clarify Makefile and wipe out leftover from sphinxcontrib-versioning in it
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 929de1e commit ac579e7

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ jobs:
557557
name: Build only this commit
558558
command: |
559559
BRANCH=$( echo $CIRCLE_BRANCH | sed 's+/+_+g' )
560-
make -C docs SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH=${CIRCLE_TAG:-$BRANCH} html
560+
make -C docs SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR=${CIRCLE_TAG:-$BRANCH} html
561561
- store_artifacts:
562562
path: ~/docs
563563

.github/workflows/docs-build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
4444
- name: Build docs
4545
run: |
46-
make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html
46+
make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html

.github/workflows/docs-build-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Build docs
4848
run: |
49-
make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html
49+
make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html
5050
5151
- name: Push created tag to gh-pages
5252
if: startsWith(github.ref, 'refs/tags/')

docs/Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
9-
CURBRANCH = master
9+
OUTDIR = html
1010
PYTHONPATH = $(PWD)
1111

1212
# User-friendly check for sphinx-build
@@ -57,9 +57,9 @@ docs-coverage:
5757
PYTHONPATH=$(PYTHONPATH) $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
5858

5959
html:
60-
PYTHONPATH=$(PYTHONPATH) $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/$(CURBRANCH)
60+
PYTHONPATH=$(PYTHONPATH) $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/$(OUTDIR)
6161
@echo
62-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/$(CURBRANCH)."
62+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/$(OUTDIR)."
6363

6464
dirhtml:
6565
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@@ -182,6 +182,3 @@ pseudoxml:
182182
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
183183
@echo
184184
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
185-
186-
versioned:
187-
PYTHONPATH=$(PYTHONPATH) sphinx-versioning -vv -l ./docs/conf.py build -r $(CURBRANCH) ./docs/ docs/$(BUILDDIR)/html/

0 commit comments

Comments
 (0)