Skip to content

Commit

Permalink
refactor: Clean up docs folder
Browse files Browse the repository at this point in the history
- Completely remove mkdocs
- Improve Doxygen layout
  • Loading branch information
LeonMatthesKDAB committed Jul 22, 2024
1 parent 9224e0d commit f3994bf
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 206 deletions.
4 changes: 2 additions & 2 deletions docs/api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ add_custom_target(
docs
# Execute Doxygen
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/mkdocs ${DOXYGEN_OUTPUT_DIR}/mkdocs
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/docs ${DOXYGEN_OUTPUT_DIR}/docs
# copy some files by-hand that are referred to by the markdown README.
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/LICENSES/MIT.txt
${DOXYGEN_OUTPUT_DIR}/mkdocs/docs/license.md
${DOXYGEN_OUTPUT_DIR}/docs/license.md
DEPENDS ${_dox_deps} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Building Documentation"
Expand Down
9 changes: 7 additions & 2 deletions docs/api/Doxyfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ FILE_VERSION_FILTER =
# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
# tag is left empty.

# LAYOUT_FILE = @CMAKE_CURRENT_SOURCE_DIR@/DoxygenLayout.xml
LAYOUT_FILE = @CMAKE_CURRENT_SOURCE_DIR@/DoxygenLayout.xml

# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
# the reference definitions. This must be a list of .bib files. The .bib
Expand Down Expand Up @@ -943,9 +943,14 @@ WARN_LOGFILE = doxygen.log
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

# The order is important here, as it defines in what order the
# pages show up in the "Getting Started" guide.
INPUT = "@CMAKE_SOURCE_DIR@/README.md" \
"@CMAKE_SOURCE_DIR@/src" \
"@CMAKE_SOURCE_DIR@/docs/api/mkdocs/docs/getting-started" \
"@CMAKE_CURRENT_SOURCE_DIR@/docs/getting-started/index.md" \
"@CMAKE_CURRENT_SOURCE_DIR@/docs/getting-started/signals-slots.md" \
"@CMAKE_CURRENT_SOURCE_DIR@/docs/getting-started/properties.md" \
"@CMAKE_CURRENT_SOURCE_DIR@/docs/getting-started/data-binding.md" \

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
9 changes: 5 additions & 4 deletions docs/api/DoxygenLayout.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<doxygenlayout version="1.0">
<navindex>
<tab type="mainpage" visible="yes" title="Home"/>
<tab type="pages" visible="yes" title="Getting Started"/>
<tab type="pages" visible="yes" title="Getting Started" intro="Get Started with KDBindings by learning about the concepts"/>
<tab type="modules" visible="yes" title="Modules"/>
<tab type="namespaces" visible="yes" title="Namespaces"/>
<tab type="classes" visible="yes" title="Classes"/>
<tab type="files" visible="yes" title="Files"/>
<tab type="user" visible="yes" title="Namespace" url="@ref KDBindings"/>
<tab type="classlist" visible="yes" title="Classes"/>
<tab type="examples" visible="yes" title=""/>
<tab type="filelist" visible="yes" title="Files"/>
</navindex>
</doxygenlayout>
File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions docs/api/doxybook/config.json

This file was deleted.

Empty file removed docs/api/mkdocs/docs/.gitkeep
Empty file.
64 changes: 0 additions & 64 deletions docs/api/mkdocs/docs/assets/assets_logo_tree.svg

This file was deleted.

20 changes: 0 additions & 20 deletions docs/api/mkdocs/docs/assets/transparentWhiteKDAB.svg

This file was deleted.

22 changes: 0 additions & 22 deletions docs/api/mkdocs/docs/javascripts/config.js

This file was deleted.

18 changes: 0 additions & 18 deletions docs/api/mkdocs/docs/stylesheets/kdab.css

This file was deleted.

55 changes: 0 additions & 55 deletions docs/api/mkdocs/mkdocs.yml.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api/mkdocs/requirements.txt

This file was deleted.

0 comments on commit f3994bf

Please sign in to comment.