From 2a9dbe6a92db97d66fbc601faa9dac88d7ef92c7 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Fri, 19 Mar 2021 14:36:45 -0700 Subject: [PATCH] I'm so confused part 3 --- CMakeLists.txt | 2 +- docs/conf.py | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1358b54..0d7a754 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,7 @@ set_project_warnings(test_quicktex) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3") if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -stdlib=libc++ -fsanitize=undefined") set(PROJECT_WARNINGS ${CLANG_WARNINGS}) diff --git a/docs/conf.py b/docs/conf.py index e27a111..14a1e9e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,9 +27,9 @@ author = 'Andrew Cassidy' # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - # 'myst_parser', - # 'sphinx_rtd_theme', - 'sphinx.ext.autodoc' + 'myst_parser', + 'sphinx_rtd_theme', + 'sphinx.ext.autodoc', ] # Add any paths that contain templates here, relative to this directory. @@ -45,9 +45,17 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -# html_theme = 'sphinx_rtd_theme' +html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + +# -- Options for Autodoc ----------------------------------------------------- +add_module_names = False + +autodoc_default_options = { + 'member-order': 'groupwise', + 'exclude-members': '__weakref__' +}