Skip to content
Snippets Groups Projects
Commit 0c2251be authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

generates parent document for doxygen/sphinx

parent bcf3821b
Branches
No related tags found
1 merge request!40Feature/documentation
...@@ -202,8 +202,8 @@ pages: ...@@ -202,8 +202,8 @@ pages:
artifacts: artifacts:
paths: paths:
- public - public
only: # only:
- tags # - tags
tags: tags:
- docker - docker
needs: needs:
......
...@@ -29,6 +29,8 @@ cmake_policy(VERSION 3.12) ...@@ -29,6 +29,8 @@ cmake_policy(VERSION 3.12)
project(TurTLE) project(TurTLE)
string(TIMESTAMP BUILD_DATE "%Y-%m-%d")
##################################################################################### #####################################################################################
## Python and version ## Python and version
...@@ -172,6 +174,22 @@ if (SPHINX_FOUND) ...@@ -172,6 +174,22 @@ if (SPHINX_FOUND)
"${PROJECT_SOURCE_DIR}/documentation" "${PROJECT_SOURCE_DIR}/documentation"
"${SPHINX_LATEX_DIR}" "${SPHINX_LATEX_DIR}"
COMMENT "Building LaTeX documentation with Sphinx") COMMENT "Building LaTeX documentation with Sphinx")
if (DOXYGEN_FOUND)
set(FULL_DOC_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/public")
configure_file(
"${PROJECT_SOURCE_DIR}/documentation/index.html.in"
"${CMAKE_CURRENT_BINARY_DIR}/doc_full_index.html")
configure_file(
"${PROJECT_SOURCE_DIR}/documentation/merge_doc_html.sh.in"
"${CMAKE_CURRENT_BINARY_DIR}/merge_doc_html.sh")
add_custom_target(doc_html_full
COMMAND sh merge_doc_html.sh
DEPENDS doc_doxygen doc_html
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Merging Doxygen and Sphinx HTML documentation")
endif()
else (SPHINX_FOUND) else (SPHINX_FOUND)
message("Sphinx needs to be installed to generate the full documentation") message("Sphinx needs to be installed to generate the full documentation")
endif (SPHINX_FOUND) endif (SPHINX_FOUND)
......
...@@ -22,7 +22,7 @@ breathe_projects = { ...@@ -22,7 +22,7 @@ breathe_projects = {
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'TurTLE' project = 'TurTLE'
copyright = '2021, TurTLE team' copyright = '2022, TurTLE team'
author = 'TurTLE team' author = 'TurTLE team'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
......
<html>
<title>TurTLE v@TURTLE_VERSION@</title>
<h1>TurTLE v@TURTLE_VERSION@</h1>
<p>
Thank you for browsing the documentation of <a href="https://gitlab.mpcdf.mpg.de/TurTLE/turtle">TurTLE</a>.
</p>
<p>
TurTLE stands for "Turbulence Tools: Lagrangian and Eulerian" and it is
developed and maintained by the Wilczek group at the
<a href="https://www.ds.mpg.de/wilczek">Max Planck
Institute for Dynamics and Self-Organization</a>
and the
<a href="https://www.wilczek.physik.uni-bayreuth.de/en/team/index.html">
University of Bayreuth</a>
in collaboration with the Application Support Group of the Max Planck
Computing and Data Facility.
</p>
<p>
TurTLE is a framework for
pseudo-spectral simulations of turbulence, with a highly optimized particle tracking method.
It consists of a C++ core library, as well as a Python "wrapper" library.
</p>
<p>
The documentation consists of two parts:
</p>
<ul>
<li>
<a href="doxygen_html/index.html">HTML C++</a> documentation.
Full Doxygen output, including, e.g., class index and inheritance graphs.</li>
<li>
<a href="sphinx_html/index.html">HTML manual</a> generated with Sphinx.
This contains tutorials, the Python library documentation, and part of the C++ Doxygen output.
</li>
</ul>
<footer>
Last updated @BUILD_DATE@.
</footer>
</html>
#! /usr/bin/env bash
mkdir -p public
cp -r \
@CMAKE_CURRENT_BINARY_DIR@/html \
@CMAKE_CURRENT_BINARY_DIR@/public/doxygen_html
cp -r \
@CMAKE_CURRENT_BINARY_DIR@/sphinx_html \
@CMAKE_CURRENT_BINARY_DIR@/public/sphinx_html
cp \
@CMAKE_CURRENT_BINARY_DIR@/doc_full_index.html \
@CMAKE_CURRENT_BINARY_DIR@/public/index.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment