Skip to content

Commit

Permalink
let the cmake build of documentation act identical to makefile
Browse files Browse the repository at this point in the history
cmake build of documentation is not adding the same options that plain
old makefile

fix incoherency

Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Aug 25, 2021
1 parent 1c97053 commit 13a815e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
if(SPHINX_FOUND)
set(SPHINXOPTS )
set(PAPER )
set(PAPEROPT_a4 -D latex_paper_size=a4)
set(PAPEROPT_letter -D latex_paper_size=letter)
set(ALLSPHINXOPTS -d ${CMAKE_CURRENT_BINARY_DIR}/doctrees ${PAPEROPT_${PAPER}} ${SPHINXOPTS} ${CMAKE_CURRENT_SOURCE_DIR})

# Sphinx cache with pickled ReST documents
set(SPHINX_CACHE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
Expand Down Expand Up @@ -70,12 +75,7 @@ if(SPHINX_FOUND)
-D html_theme=owncloud_org
${CMAKE_CURRENT_SOURCE_DIR}
${SPHINX_HTML_DIR}/org )
add_custom_target( doc-html-com ${SPHINX_EXECUTABLE}
-q -c . -b html
-d ${SPHINX_CACHE_DIR}/html
-D html_theme=owncloud_com
${CMAKE_CURRENT_SOURCE_DIR}
${SPHINX_HTML_DIR}/com )
add_custom_target(doc-html-com ${SPHINX_EXECUTABLE} -c ${CMAKE_CURRENT_BINARY_DIR} -b html -D html_theme='nextcloud_com' ${ALLSPHINXOPTS} ${SPHINX_HTML_DIR}/com)

## Building CHM files requires HTML Help Workshop. Since it requires wine
## with special dependencies, it's impossible to write a cmake check for it.
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pygments_style = 'sphinx'
#html_theme_options = {}

# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ['_shared_assets/themes']
html_theme_path = ['@CMAKE_CURRENT_SOURCE_DIR@/_shared_assets/themes']

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand Down

0 comments on commit 13a815e

Please sign in to comment.