mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-01 06:30:52 +02:00
show not explicitly documented objects
This commit is contained in:
parent
0f6c85d20d
commit
a8e26eaf8d
6 changed files with 34 additions and 34 deletions
|
@ -13,12 +13,13 @@ CPMAddPackage(
|
||||||
|
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME MCSS
|
NAME MCSS
|
||||||
GITHUB_REPOSITORY mosra/m.css
|
GITHUB_REPOSITORY TheLartians/m.css
|
||||||
GIT_TAG e6eff549fb5edeabacf01369d6b845a2a59c2ebe
|
# using a local patch until https://github.com/mosra/m.css/pull/171 is resolved
|
||||||
|
GIT_TAG 1bf162b96d5bfefc9967a80cef138f1270ffa415
|
||||||
DOWNLOAD_ONLY YES
|
DOWNLOAD_ONLY YES
|
||||||
)
|
)
|
||||||
|
|
||||||
# ---- Doxygen + m.css ----
|
# ---- Doxygen variables ----
|
||||||
|
|
||||||
# set Doxyfile variables
|
# set Doxyfile variables
|
||||||
set(DOXYGEN_PROJECT_NAME Greeter)
|
set(DOXYGEN_PROJECT_NAME Greeter)
|
||||||
|
|
|
@ -7,25 +7,24 @@ PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
|
||||||
PROJECT_NUMBER = @DOXYGEN_PROJECT_VERSION@
|
PROJECT_NUMBER = @DOXYGEN_PROJECT_VERSION@
|
||||||
|
|
||||||
# Add sources
|
# Add sources
|
||||||
INPUT = @DOXYGEN_PROJECT_ROOT@/README.md @DOXYGEN_PROJECT_ROOT@/include @DOXYGEN_PROJECT_ROOT@/source @DOXYGEN_PROJECT_ROOT@/documentation
|
INPUT = @DOXYGEN_PROJECT_ROOT@/README.md @DOXYGEN_PROJECT_ROOT@/include @DOXYGEN_PROJECT_ROOT@/documentation/pages
|
||||||
EXTRACT_ALL = YES
|
EXTRACT_ALL = YES
|
||||||
RECURSIVE = YES
|
RECURSIVE = YES
|
||||||
|
OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT_DIRECTORY@
|
||||||
|
|
||||||
# We don't want local paths in the documentation
|
# set relative include paths
|
||||||
FULL_PATH_NAMES = NO
|
FULL_PATH_NAMES = YES
|
||||||
|
STRIP_FROM_PATH = @DOXYGEN_PROJECT_ROOT@/include @DOXYGEN_PROJECT_ROOT@
|
||||||
|
|
||||||
# Use the README as a main page
|
# Use the README as a main page
|
||||||
USE_MDFILE_AS_MAINPAGE = @DOXYGEN_PROJECT_ROOT@/README.md
|
USE_MDFILE_AS_MAINPAGE = @DOXYGEN_PROJECT_ROOT@/README.md
|
||||||
|
|
||||||
# Create nicer looking HTML
|
# We use m.css to generate the html documentation, so we only need XML output
|
||||||
HTML_DYNAMIC_SECTIONS = YES
|
GENERATE_XML = YES
|
||||||
GENERATE_TREEVIEW = YES
|
GENERATE_HTML = NO
|
||||||
|
|
||||||
# We don't need LaTeX generation
|
|
||||||
GENERATE_LATEX = NO
|
GENERATE_LATEX = NO
|
||||||
|
XML_PROGRAMLISTING = NO
|
||||||
|
CREATE_SUBDIRS = NO
|
||||||
|
|
||||||
# Setup m.css
|
# without this option m.css will hide all files, namespaces etc. without explicit documentation
|
||||||
GENERATE_HTML = NO
|
M_SHOW_UNDOCUMENTED = YES
|
||||||
GENERATE_XML = YES
|
|
||||||
XML_PROGRAMLISTING = NO
|
|
||||||
OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT_DIRECTORY@
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
/** @page about About Greeter
|
|
||||||
@tableofcontents
|
|
||||||
Everyone likes a good, personalized greeting.
|
|
||||||
@section sec An example section
|
|
||||||
This page contains the subsections @ref subsection1 and @ref subsection2.
|
|
||||||
For more info, see page @ref page2.
|
|
||||||
@subsection subsection1 The first subsection
|
|
||||||
Text.
|
|
||||||
@subsection subsection2 The second subsection
|
|
||||||
More text.
|
|
||||||
*/
|
|
|
@ -4,3 +4,16 @@ LINKS_NAVBAR1 = [
|
||||||
(None, 'pages', [(None, 'about')]),
|
(None, 'pages', [(None, 'about')]),
|
||||||
(None, 'namespaces', []),
|
(None, 'namespaces', []),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Add your own navbar links using the code below.
|
||||||
|
# To find the valid link names, you can inspect the URL of a generated documentation site.
|
||||||
|
|
||||||
|
# LINKS_NAVBAR1 = [
|
||||||
|
# (None, 'pages', [(None, 'about')]),
|
||||||
|
# (None, 'namespaces', [(None, 'namespacegreeter')]),
|
||||||
|
# ]
|
||||||
|
#
|
||||||
|
# LINKS_NAVBAR2 = [
|
||||||
|
# (None, 'annotated', [(None, 'classgreeter_1_1_greeter')]),
|
||||||
|
# (None, 'files', [(None, 'greeter_8h')]),
|
||||||
|
# ]
|
||||||
|
|
5
documentation/pages/about.dox
Normal file
5
documentation/pages/about.dox
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/** @page about About
|
||||||
|
@section doc ModernCppStarter Documentation
|
||||||
|
This is the auto-generated documentation for the initial project of the ModernCppStater.
|
||||||
|
It shows how we can use Doxygen to automatically build a browsable documentation for your projects.
|
||||||
|
*/
|
|
@ -1,14 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/** @file
|
|
||||||
* @brief Class @ref greeter::Greeter
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief The greeter namespace
|
|
||||||
*/
|
|
||||||
namespace greeter {
|
namespace greeter {
|
||||||
|
|
||||||
/** Language codes to be used with the Greeter class */
|
/** Language codes to be used with the Greeter class */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue