From 4cbd27e66bf4ee79142d50feb456ff1e4ad5f316 Mon Sep 17 00:00:00 2001 From: Lior Ramati Date: Thu, 16 May 2019 18:01:00 +0300 Subject: [PATCH] Update sphinx generation because github pages doesn't like directories starting with _ --- wrappers/python/docs/CMakeLists.txt | 4 ++-- wrappers/python/docs/conf.py.in | 4 ++-- wrappers/python/docs/index.rst | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wrappers/python/docs/CMakeLists.txt b/wrappers/python/docs/CMakeLists.txt index b116174568..3a447c3e3e 100644 --- a/wrappers/python/docs/CMakeLists.txt +++ b/wrappers/python/docs/CMakeLists.txt @@ -20,10 +20,10 @@ if(NOT DEFINED SPHINX_THEME_DIR) endif() # configured documentation tools and intermediate build results -set(BINARY_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/_build") +set(BINARY_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/build") # Sphinx cache with pickled ReST documents -set(SPHINX_CACHE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees") +set(SPHINX_CACHE_DIR "${CMAKE_CURRENT_BINARY_DIR}/doctrees") # HTML output directory set(SPHINX_HTML_DIR "${CMAKE_CURRENT_BINARY_DIR}/html") diff --git a/wrappers/python/docs/conf.py.in b/wrappers/python/docs/conf.py.in index 280c183ce9..3cfbb201de 100644 --- a/wrappers/python/docs/conf.py.in +++ b/wrappers/python/docs/conf.py.in @@ -70,7 +70,7 @@ language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '_templates'] +exclude_patterns = ['build', 'Thumbs.db', '.DS_Store', '_templates'] # The name of the Pygments (syntax highlighting) style to use. pygments_style = None @@ -93,7 +93,7 @@ html_theme_path = ['@SPHINX_THEME_DIR@'] # 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'] +html_static_path = ['static'] # Custom sidebar templates, must be a dictionary that maps document names # to template names. diff --git a/wrappers/python/docs/index.rst b/wrappers/python/docs/index.rst index f2b0e58ee5..732849541f 100644 --- a/wrappers/python/docs/index.rst +++ b/wrappers/python/docs/index.rst @@ -7,7 +7,7 @@ Welcome to pyrealsense2's documentation! ======================================== .. autosummary:: - :toctree: _generated + :toctree: generated :template: module.rst pyrealsense2 \ No newline at end of file