Skip to content

Commit af6aed8

Browse files
committed
Documentation changes
1 parent ea34c3d commit af6aed8

File tree

5 files changed

+20
-30
lines changed

5 files changed

+20
-30
lines changed

docs/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
3232
# title of most generated pages and in a few other places.
3333
# The default value is: My Project.
3434

35-
PROJECT_NAME = "My Project"
35+
PROJECT_NAME = "IfcOpenShell"
3636

3737
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
3838
# could be handy for archiving the generated documentation or if some version

docs/conf.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,4 @@
3434

3535
}
3636

37-
38-
39-
# html_theme = 'sphinx_rtd_theme'
40-
41-
# # Tell sphinx what the primary language being documented is.
42-
# primary_domain = 'cpp'
43-
44-
# # Tell sphinx what the pygments highlight language should be.
45-
# highlight_language = 'cpp'
46-
47-
48-
37+
cpp_id_attributes = ['IFC_PARSE_API', 'IFC_GEOM_API']

docs/generate_docs.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
11
# This program requires doxygen, sphinx, breathe and exhale.
22

33
import os
4+
import sys
45
import shutil
56
import subprocess
7+
import multiprocessing
68

7-
from sys import platform
9+
# some extra check to see if we can find sphinx in pypy bin dir
10+
sphinx_build = os.path.join(os.path.dirname(sys.executable), 'sphinx-build')
11+
if not os.path.exists(sphinx_build):
12+
sphinx_build = "sphinx-build"
13+
else:
14+
os.environ['PATH'] += os.pathsep + os.path.dirname(sys.executable)
815

9-
conf_path = "./conf.py"
10-
index_path = "./index.rst"
16+
# not used, -j caused issues in my sphinx install
17+
j = str(multiprocessing.cpu_count())
1118

1219
if not os.path.isdir("./output/doxygen/xml"):
1320
os.makedirs("output/doxygen/xml")
1421

15-
subprocess.check_call(["sphinx-build", "-b", "html", ".", "output"])
22+
subprocess.check_call([sphinx_build, "-b", "html", ".", "output"])
1623

17-
if platform == "linux" or platform == "linux2":
24+
if sys.platform == "linux" or sys.platform == "linux2":
1825
if os.path.isdir("output/python"):
1926
shutil.rmtree("output/python")
2027

2128
if not os.path.exists(os.path.join("../src/ifcblenderexport/docs", "contents.rst")):
2229
subprocess.check_call(["ln", "index.rst", "contents.rst"], cwd="../src/ifcblenderexport/docs")
30+
31+
subprocess.check_call(["sed", "-i", "s/html_theme/# html_theme/g", "conf.py"], cwd="../src/ifcblenderexport/docs"))
2332
subprocess.check_call(["make", "html"], cwd="../src/ifcblenderexport/docs")
33+
subprocess.check_call(["git", "checkout", "conf.py"], cwd="../src/ifcblenderexport/docs"))
34+
2435
shutil.move("../src/ifcblenderexport/docs/_build", "./output")
2536
os.rename("./output/_build", "./output/python")
2637

27-
elif platform == "win32" or platform == "win64":
38+
elif sys.platform == "win32" or sys.platform == "win64":
2839
subprocess.check_call(["make.bat", "html"])

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ IfcOpenShell
77
rst_files/library_root
88

99

10-
`ifcopenshell-python documentation <_build/html/index.html>`_
10+
* `ifcopenshell-python documentation <python/html/index.html>`_

docs/index_to_copy.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)