Skip to content

Commit

Permalink
docs: Copy sphinx source to a separate directory when building
Browse files Browse the repository at this point in the history
Before building sphinx docs the source files are copied
to _source directory. Later we will modify them before
building the html.

Signed-off-by: Jan Ciolek <[email protected]>
  • Loading branch information
cvybhu committed Sep 7, 2022
1 parent e1212f4 commit 0706770
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SPHINXOPTS =
SPHINXBUILD = $(POETRY) run sphinx-build
PAPER =
BUILDDIR = _build
SOURCEDIR = source
SOURCEDIR = _source

# Internal variables
PAPEROPT_a4 = -D latex_paper_size=a4
Expand All @@ -30,6 +30,7 @@ setupenv:
setup:
$(POETRY) install
$(POETRY) update
cp -TLr source $(SOURCEDIR)

# Clean commands
.PHONY: pristine
Expand Down

0 comments on commit 0706770

Please sign in to comment.