2018-08-20 17:22:26 +08:00
|
|
|
# Minimal makefile for Sphinx documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
|
|
|
SPHINXOPTS =
|
2019-04-22 01:31:41 +08:00
|
|
|
SPHINXAPIDOC = sphinx-apidoc
|
2018-08-20 17:22:26 +08:00
|
|
|
SPHINXBUILD = sphinx-build
|
|
|
|
SPHINXPROJ = fastNLP
|
|
|
|
SOURCEDIR = source
|
|
|
|
BUILDDIR = build
|
|
|
|
|
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
|
|
help:
|
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
|
2019-04-22 01:31:41 +08:00
|
|
|
apidoc:
|
2019-05-04 08:53:18 +08:00
|
|
|
$(SPHINXAPIDOC) -efM -o source ../$(SPHINXPROJ)
|
2019-04-22 01:31:41 +08:00
|
|
|
|
2019-04-22 11:34:45 +08:00
|
|
|
server:
|
|
|
|
cd build/html && python -m http.server
|
|
|
|
|
2018-08-20 17:22:26 +08:00
|
|
|
.PHONY: help Makefile
|
|
|
|
|
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
|
|
%: Makefile
|
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|