mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
Fix documentation build
* Doxygen needs `RECURSIVE = YES` in order to parse the `detail` subdir. * The `-W` warnings-as-errors option for sphinx doesn't work with the makefile build. Switched to calling sphinx directly. * Fix "citation [cppimport] is not referenced" warning.
This commit is contained in:
parent
0d703f6e7c
commit
8665ee8100
@ -73,7 +73,7 @@ matrix:
|
|||||||
curl -fsSL ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.12.linux.bin.tar.gz | tar xz
|
curl -fsSL ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.12.linux.bin.tar.gz | tar xz
|
||||||
export PATH="$PWD/doxygen-1.8.12/bin:$PATH"
|
export PATH="$PWD/doxygen-1.8.12/bin:$PATH"
|
||||||
script:
|
script:
|
||||||
- make -C docs html SPHINX_OPTIONS=-W
|
- $PY_CMD -m sphinx -W -b html docs docs/.build
|
||||||
- tools/check-style.sh
|
- tools/check-style.sh
|
||||||
- flake8
|
- flake8
|
||||||
cache:
|
cache:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
PROJECT_NAME = pybind11
|
PROJECT_NAME = pybind11
|
||||||
INPUT = ../include/pybind11/
|
INPUT = ../include/pybind11/
|
||||||
|
RECURSIVE = YES
|
||||||
|
|
||||||
GENERATE_HTML = NO
|
GENERATE_HTML = NO
|
||||||
GENERATE_LATEX = NO
|
GENERATE_LATEX = NO
|
||||||
|
@ -14,7 +14,7 @@ the [python_example]_ repository.
|
|||||||
Building with cppimport
|
Building with cppimport
|
||||||
========================
|
========================
|
||||||
|
|
||||||
cppimport is a small Python import hook that determines whether there is a C++
|
[cppimport]_ is a small Python import hook that determines whether there is a C++
|
||||||
source file whose name matches the requested module. If there is, the file is
|
source file whose name matches the requested module. If there is, the file is
|
||||||
compiled as a Python extension using pybind11 and placed in the same folder as
|
compiled as a Python extension using pybind11 and placed in the same folder as
|
||||||
the C++ source file. Python is then able to find the module and load it.
|
the C++ source file. Python is then able to find the module and load it.
|
||||||
|
@ -314,13 +314,13 @@ highlight_language = 'cpp'
|
|||||||
|
|
||||||
|
|
||||||
def generate_doxygen_xml(app):
|
def generate_doxygen_xml(app):
|
||||||
build_dir = '.build'
|
build_dir = os.path.join(app.confdir, '.build')
|
||||||
if not os.path.exists(build_dir):
|
if not os.path.exists(build_dir):
|
||||||
os.mkdir(build_dir)
|
os.mkdir(build_dir)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.call(['doxygen', '--version'])
|
subprocess.call(['doxygen', '--version'])
|
||||||
retcode = subprocess.call(['doxygen'])
|
retcode = subprocess.call(['doxygen'], cwd=app.confdir)
|
||||||
if retcode < 0:
|
if retcode < 0:
|
||||||
sys.stderr.write("doxygen error code: {}\n".format(-retcode))
|
sys.stderr.write("doxygen error code: {}\n".format(-retcode))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user