mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-01 14:28:59 +00:00
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>
This commit is contained in:
committed by
David Kinder
parent
c30437de9b
commit
68ce114b43
20
doc/scripts/show-versions.py
Executable file
20
doc/scripts/show-versions.py
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (c) 2018, Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
# Show installed versions of doc building tools
|
||||
|
||||
import subprocess
|
||||
|
||||
print ("breathe version: " +
|
||||
__import__("breathe").__version__ + "\n" +
|
||||
"docutils version: " +
|
||||
__import__("docutils").__version__ + "\n" +
|
||||
"sphinx version: " +
|
||||
__import__("sphinx").__version__ + "\n" +
|
||||
"sphinx_rtd_theme version: " +
|
||||
__import__("sphinx_rtd_theme").__version__ + "\n" +
|
||||
"doxygen version: " +
|
||||
subprocess.check_output(["doxygen", "-v"]).decode("utf-8"))
|
Reference in New Issue
Block a user