Skip to content

Commit 68ce114

Browse files
committed
doc: add tool for verifying installed doc tools
Added a python script that displays versions of doc building tools (e.g., doxygen, breathe, sphinx) to help verify doc building environment is properly set up (can help doc building problem diagnostic, as shown in issue #1333 Update doc build documentation to reference this script. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
1 parent c30437d commit 68ce114

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

doc/scripts/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
breathe==4.9.1
2-
sphinx==1.7.5
2+
sphinx==1.7.7
33
docutils==0.14
4-
sphinx_rtd_theme
4+
sphinx_rtd_theme==0.4.0
55
kconfiglib

doc/scripts/show-versions.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python3
2+
#
3+
# Copyright (c) 2018, Intel Corporation
4+
#
5+
# SPDX-License-Identifier: BSD-3-Clause
6+
#
7+
# Show installed versions of doc building tools
8+
9+
import subprocess
10+
11+
print ("breathe version: " +
12+
__import__("breathe").__version__ + "\n" +
13+
"docutils version: " +
14+
__import__("docutils").__version__ + "\n" +
15+
"sphinx version: " +
16+
__import__("sphinx").__version__ + "\n" +
17+
"sphinx_rtd_theme version: " +
18+
__import__("sphinx_rtd_theme").__version__ + "\n" +
19+
"doxygen version: " +
20+
subprocess.check_output(["doxygen", "-v"]).decode("utf-8"))

doc/tutorials/docbuild.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Our documentation processing has been tested to run with:
130130

131131
* Python 3.6.3
132132
* Doxygen version 1.8.13
133-
* Sphinx version 1.7.5
133+
* Sphinx version 1.7.7
134134
* Breathe version 4.9.1
135135
* docutils version 0.14
136136
* sphinx_rtd_theme version 0.4.0
@@ -160,6 +160,13 @@ tools:
160160
161161
And with that you're ready to generate the documentation.
162162

163+
.. note::
164+
165+
We've provided a script you can run to show what versions of the
166+
doc building tools you have installed ::
167+
168+
doc/scripts/show-versions.py
169+
163170
Documentation presentation theme
164171
********************************
165172

0 commit comments

Comments
 (0)