Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Commit bd20014

Browse files
author
Simon Neininger
committed
sphinx: provide Makefile target 'html_adsy'
1 parent 02f7933 commit bd20014

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ make-docs:
1414
script:
1515
- rm -rf html
1616
- rm -rf doc/_build
17-
- make SPHINXOPTS="-D html_theme='adsy'" html -C doc
17+
- make html_adsy -C doc
1818
- cp -r doc/_build/html html
1919
artifacts:
2020
paths:

doc/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
2323
help:
2424
@echo "Please use \`make <target>' where <target> is one of"
2525
@echo " html to make standalone HTML files"
26+
@echo " html_adsy to make standalone HTML files using adsy theme"
2627
@echo " dirhtml to make HTML files named index.html in directories"
2728
@echo " singlehtml to make a single large HTML file"
2829
@echo " pickle to make pickle files"
@@ -57,6 +58,12 @@ html:
5758
@echo
5859
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
5960

61+
.PHONY: html_adsy
62+
html_adsy:
63+
$(SPHINXBUILD) -b html -D html_theme='adsy' $(ALLSPHINXOPTS) $(BUILDDIR)/html
64+
@echo
65+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
66+
6067
.PHONY: dirhtml
6168
dirhtml:
6269
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@
111111
# The Theme MUST BE AN OPEN SOURCE SPHINX THEME. Contributors outside of
112112
# Adfinis SyGroup AG must be able to build the documentation.
113113
# Developers of Adfinis SyGroup AG can build the documentation using
114+
# make html_adsy
115+
# .. or ..
114116
# make SPHINXOPTS="-D html_theme='adsy'" html
115117
html_theme = 'sphinx_rtd_theme'
116118

0 commit comments

Comments
 (0)