File tree 3 files changed +8
-12
lines changed
3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
3
3
sphinx :
4
+ builder : " html"
4
5
configuration : docs/conf.py
5
6
6
7
build :
Original file line number Diff line number Diff line change 1
1
# Minimal makefile for Sphinx documentation
2
- #
3
2
4
3
# You can set these variables from the command line, and also
5
4
# from the environment for the first two.
@@ -8,13 +7,7 @@ SPHINXBUILD ?= sphinx-build
8
7
SOURCEDIR = .
9
8
BUILDDIR = _build
10
9
11
- # Put it first so that "make" without argument is like "make help".
12
- help :
13
- @$(SPHINXBUILD ) -M help " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
10
+ .PHONY : Makefile
14
11
15
- .PHONY : help Makefile
16
-
17
- # Catch-all target: route all unknown targets to Sphinx using the new
18
- # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
- % : Makefile
20
- @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
12
+ html : Makefile
13
+ @$(SPHINXBUILD ) -n -W " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
Original file line number Diff line number Diff line change 27
27
name = "hls-docs" ;
28
28
src = pkgs . lib . sourceFilesBySuffices ./. [ ".py" ".rst" ".md" ".png" ".gif" ".svg" ".cabal" ] ;
29
29
buildInputs = [ pythonWithPackages ] ;
30
- # -n gives warnings on missing link targets, -W makes warnings into errors
31
- buildPhase = ''cd docs; sphinx-build -n -W . $out'' ;
30
+ buildPhase = ''
31
+ cd docs
32
+ make --makefile=${ ./docs/Makefile } html BUILDDIR=$out
33
+ '' ;
32
34
dontInstall = true ;
33
35
} ;
34
36
You can’t perform that action at this time.
0 commit comments