File tree Expand file tree Collapse file tree 5 files changed +60
-12
lines changed Expand file tree Collapse file tree 5 files changed +60
-12
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ sphinx:
5
5
builder : html
6
6
7
7
build :
8
- image : latest
8
+ os : " ubuntu-22.04"
9
+ tools :
10
+ python : " 3.11"
9
11
apt_packages :
10
- - clang-14
12
+ - clang-13
11
13
- cmake
12
- - libclang-14 -dev
13
- - llvm-14 -dev
14
- - llvm-14 -tools
14
+ - libclang-13 -dev
15
+ - llvm-13 -dev
16
+ - llvm-13 -tools
Original file line number Diff line number Diff line change @@ -355,4 +355,4 @@ if (CPPINTEROP_INCLUDE_DOCS)
355
355
endif ()
356
356
357
357
add_subdirectory (lib )
358
- add_subdirectory (unittests )
358
+ add_subdirectory (unittests )
Original file line number Diff line number Diff line change
1
+ # CMake find_package() Module for Sphinx documentation generator
2
+ # http://sphinx-doc.org/
3
+ #
4
+ # Example usage:
5
+ #
6
+ # find_package(Sphinx)
7
+ #
8
+ # If successful the following variables will be defined
9
+ # SPHINX_FOUND
10
+ # SPHINX_EXECUTABLE
11
+
12
+ find_program (SPHINX_EXECUTABLE
13
+ NAMES sphinx-build sphinx-build2
14
+ DOC "Path to sphinx-build executable" )
15
+
16
+ # Handle REQUIRED and QUIET arguments
17
+ # this will also set SPHINX_FOUND to true if SPHINX_EXECUTABLE exists
18
+ include (FindPackageHandleStandardArgs )
19
+ find_package_handle_standard_args (Sphinx
20
+ "Failed to locate sphinx-build executable"
21
+ SPHINX_EXECUTABLE )
22
+
23
+ # Provide options for controlling different types of output
24
+ option (SPHINX_OUTPUT_HTML "Output standalone HTML files" ON )
25
+ option (SPHINX_OUTPUT_MAN "Output man pages" ON )
26
+
27
+ option (SPHINX_WARNINGS_AS_ERRORS "When building documentation treat warnings as errors" ON )
Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ CppInterOp Internal Documentation
32
32
CppInterOp maintains an internal Doxygen documentation of its components. Internal
33
33
documentation aims to capture intrinsic details and overall usage of code
34
34
components. The goal of internal documentation is to make the codebase easier
35
- to understand for the new developers.
35
+ to understand for the new developers.
36
+ Internal documentation can be visited : `here </en/latest/build/html/index.html >`_
Original file line number Diff line number Diff line change 25
25
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
26
26
27
27
html_theme = 'alabaster'
28
- html_static_path = ['_static' ]
29
28
30
- CPPINTEROP_ROOT = '..'
29
+ html_theme_options = {
30
+ "github_user" : "compiler-research" ,
31
+ "github_repo" : "CppInterOp" ,
32
+ "github_banner" : True ,
33
+ "fixed_sidebar" : True ,
34
+ }
31
35
32
- # html_extra_path = [CPPINTEROP_ROOT + '/build/docs/doxygen/html']
36
+ highlight_language = "C++"
37
+
38
+ todo_include_todos = True
39
+
40
+ mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
41
+
42
+ # Add latex physics package
43
+ mathjax3_config = {
44
+ "loader" : {"load" : ["[tex]/physics" ]},
45
+ "tex" : {"packages" : {"[+]" : ["physics" ]}},
46
+ }
47
+
48
+ import os
49
+ CPPINTEROP_ROOT = os .path .abspath ('..' )
50
+ html_extra_path = [CPPINTEROP_ROOT + '/build/docs/' ]
33
51
34
52
import subprocess
35
- command = 'mkdir {0}/build; cd {0}/build; cmake ../ -DClang_DIR=/usr/lib/llvm-14 /lib/cmake/clang\
36
- -DLLVM_DIR=/usr/lib/llvm-14 -DCPPINTEROP_ENABLE_DOXYGEN=ON\
53
+ command = 'mkdir {0}/build; cd {0}/build; cmake ../ -DClang_DIR=/usr/lib/llvm-13/build /lib/cmake/clang\
54
+ -DLLVM_DIR=/usr/lib/llvm-13/build/lib/cmake/llvm -DCPPINTEROP_ENABLE_DOXYGEN=ON\
37
55
-DCPPINTEROP_INCLUDE_DOCS=ON' .format (CPPINTEROP_ROOT )
38
56
subprocess .call (command , shell = True )
39
57
subprocess .call ('doxygen {0}/build/docs/doxygen.cfg' .format (CPPINTEROP_ROOT ), shell = True )
You can’t perform that action at this time.
0 commit comments