Skip to content

Commit

Permalink
Ensure proper imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Feb 11, 2021
1 parent d7b060b commit 1a07fe7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions documentation/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
import os
import sys
import subprocess
# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------

project = 'ztd.text'
Expand All @@ -25,16 +25,13 @@
#
release = '0.0.0'


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
#
extensions = [
'breathe'
]
extensions = ['breathe']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -45,7 +42,6 @@
#
exclude_patterns = []


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand All @@ -65,7 +61,6 @@
#
html_extra_path = []


# Breathe Configuration
#
breathe_projects = {}
Expand All @@ -76,12 +71,15 @@
#
def run_cmake_doxygen():
os.mkdir('build')
subprocess.call("cmake -DZTD_TEXT_DOCUMENTATION:BOOL=TRUE -DZTD_TEXT_DOCUMENTATION_NO_SPHINX:BOOL=TRUE ../..", shell=True, cwd='build')
subprocess.call(
"cmake -DZTD_TEXT_DOCUMENTATION:BOOL=TRUE -DZTD_TEXT_DOCUMENTATION_NO_SPHINX:BOOL=TRUE ../..",
shell=True,
cwd='build')
subprocess.call("cmake --build .", shell=True, cwd='build')
breathe_projects["ztd.text"] = 'build/doxygen/xml'


# Are we on the ReadTheDocs server?
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
run_cmake_doxygen()
run_cmake_doxygen()

0 comments on commit 1a07fe7

Please sign in to comment.