Use external theme in documentation

This commit is contained in:
Matthew Setter 2018-05-02 12:06:32 +02:00
parent 5e13d519d9
commit 0ce287d96d
4 changed files with 9 additions and 8 deletions

6
.gitmodules vendored
View File

@ -7,6 +7,6 @@
[submodule "src/3rdparty/libcrashreporter-qt"]
path = src/3rdparty/libcrashreporter-qt
url = git://github.com/guruz/libcrashreporter-qt.git
[submodule "doc/_shared_assets"]
path = doc/_shared_assets
url = git://github.com/owncloud/docs-themes.git
[submodule "doc/docs-themes"]
path = doc/docs-themes
url = https://github.com/owncloud/docs-themes.git

View File

@ -24,7 +24,7 @@ if(SPHINX_FOUND)
add_custom_target(doc DEPENDS doc-html COMMENT "Building documentation...")
endif(WITH_DOC)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/_shared_assets")
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ocdoc/docs-themes")
add_dependencies(doc doc-html-org)
add_dependencies(doc doc-html-com)
endif()
@ -90,4 +90,4 @@ if(SPHINX_FOUND)
${SPHINX_HTMLHELP_DIR} )
add_custom_target( doc-chm pushd ${SPHINX_HTMLHELP_DIR}; ${MSHTML_COMPILER} *.hhp; popd
DEPENDS doc-chm-sphinx )
endif(SPHINX_FOUND)
endif(SPHINX_FOUND)

View File

@ -28,7 +28,7 @@ import sys, os
extensions = ['sphinx.ext.todo']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['@CMAKE_CURRENT_SOURCE_DIR@/_shared_assets/templates']
templates_path = ['@CMAKE_CURRENT_SOURCE_DIR@/docs-themes/templates']
# The suffix of source filenames.
source_suffix = '.rst'
@ -95,7 +95,7 @@ pygments_style = 'sphinx'
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ['@CMAKE_CURRENT_SOURCE_DIR@/_shared_assets/themes']
html_theme_path = ['@CMAKE_CURRENT_SOURCE_DIR@/docs-themes/themes']
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
@ -120,7 +120,7 @@ html_short_title = "Client Manual"
# 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 = ['@CMAKE_CURRENT_SOURCE_DIR@/_shared_assets/static']
html_static_path = ['@CMAKE_CURRENT_SOURCE_DIR@/docs-themes/static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.

1
doc/docs-themes Submodule

@ -0,0 +1 @@
Subproject commit 90bd26b1189de95eb7bf5e023b5f0de3691216d3