Skip to content

Commit

Permalink
Build system improvements; Documentation WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcode committed Oct 19, 2024
1 parent 557b7fe commit f3e42c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
23 changes: 11 additions & 12 deletions documentation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ if(${PROJECT_NAME}_WITH_HTML_DOCUMENTATION)
OUTPUT "${_html_documentation_output}"
COMMAND "${SPHINX_BUILD_EXECUTABLE}"
-b html
-Dproject="${PROJECT_NAME}"
-Dversion="${PROJECT_VERSION}"
-Drelease="${PROJECT_VERSION}"
"-Dproject=${PROJECT_NAME}"
"-Dversion=${PROJECT_VERSION}"
"-Drelease=${PROJECT_VERSION}"
${_html_theme_option}
-Dhtml_title="${PROJECT_NAME}"
-Dbreathe_default_project="${PROJECT_NAME}"
-Dbreathe_projects.${PROJECT_NAME}="${_api_xml_output}"
"-Dhtml_title=${PROJECT_NAME} Documentation"
"-Dbreathe_default_project=${PROJECT_NAME}"
"-Dbreathe_projects.${PROJECT_NAME}=${_api_xml_output}"
"${CMAKE_CURRENT_SOURCE_DIR}"
"${_html_documentation_output}"
DEPENDS ${PROJECT_NAME}-API-XML
Expand All @@ -95,12 +95,11 @@ if(${PROJECT_NAME}_WITH_PDF_DOCUMENTATION)
OUTPUT "${_latex_documentation_output}"
COMMAND "${SPHINX_BUILD_EXECUTABLE}"
-b latex
-Dproject="${PROJECT_NAME}"
-Dversion="${PROJECT_VERSION}"
-Drelease="${PROJECT_VERSION}"
-Dhtml_title="${PROJECT_NAME}"
-Dbreathe_default_project="${PROJECT_NAME}"
-Dbreathe_projects.${PROJECT_NAME}="${_api_xml_output}"
"-Dproject=${PROJECT_NAME}"
"-Dversion=${PROJECT_VERSION}"
"-Drelease=${PROJECT_VERSION}"
"-Dbreathe_default_project=${PROJECT_NAME}"
"-Dbreathe_projects.${PROJECT_NAME}=${_api_xml_output}"
"${CMAKE_CURRENT_SOURCE_DIR}"
"${_latex_documentation_output}"
DEPENDS ${PROJECT_NAME}-API-XML
Expand Down
17 changes: 3 additions & 14 deletions documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,21 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
===
Z80
===
========
Contents
========

.. toctree::
:maxdepth: 2
:caption: Contents

Introduction
InstallationFromSources
Tests
Integration
Usage
APIReference

.. toctree::
:maxdepth: 2
:caption: Project

Thanks
VersionHistory
License

.. toctree::
:maxdepth: 2
:caption: Indices and tables

genindex
search

0 comments on commit f3e42c0

Please sign in to comment.