Skip to content

Commit f1a3ca2

Browse files
committed
Show contents page in doxygen.
Added links to link markdown pages in contents section. Adjusted `DoxygenLayout.xml` tp show contents page.
1 parent 6ecec03 commit f1a3ca2

8 files changed

+49
-7
lines changed

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributor Covenant Code of Conduct
1+
# Contributor Covenant Code of Conduct {#code_of_conduct}
22

33
C++ Insights contributor covenant Code of Conduct.
44

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to C++ Insights
1+
# Contributing to C++ Insights {#contributing}
22

33
Thanks for considering contributing to **C++ Insights**.
44

Readme_Windows.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Building on Windows
1+
## Building on Windows {#building_on_windows}
22

33
### Tested with (supported compilers)
44

TODO.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# C++ Insights ToDo
1+
# C++ Insights ToDo {#todo}
22

33
This is a list of things I plan to do. If you like to jump in that's great. Please have a look at the [Code of Conduct](CODE_OF_CONDUCT.md) and [Contributing](CONTRIBUTING.md) before starting.
44

docs/Contents.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Contents {#contents}
2+
3+
Welcome to the C++ Insights project. Here you find some additional information about how to use C++ Insights,
4+
limitations, examples or how to contribute.
5+
6+
In case, you don't know, you can try out C++ Insights online at [cppinsights.io](https://cppinsights.io). The source
7+
code can be found on [GitHub](https://github.com) at [github.com/andreasfertig/cppinsights](https://github.com/andreasfertig/cppinsights).
8+
9+
##Resources
10+
11+
* [Code of Conduct](@ref code_of_conduct)
12+
* [Contributing to C++ Insights ](@ref contributing)
13+
* [C++ Insights Command Line Options](@ref command_line_options)
14+
* [ToDo](@ref todo)
15+
* [Tests](@ref tests)
16+
17+
##Readme's
18+
19+
* [Readme Docs](@ref readme_docs)
20+
* [Readme Scripts](@ref readme_scripts)
21+

docs/DoxygenLayout.xml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- Navigation index tabs for HTML output -->
44
<navindex>
55
<tab type="mainpage" visible="no" title=""/>
6+
<tab type="user" url="@ref contents" title="Contents"/>
67
<tab type="pages" visible="no" title="" intro=""/>
78
<tab type="modules" visible="yes" title="" intro=""/>
89
<tab type="classes" visible="yes" title="">

docs/Readme.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
1-
# C++ Insights - docs
1+
# C++ Insights - docs {#readme_docs}
22

3-
Configuration file for [doxygen](http://doxygen.org). The documentation can be created with cmake:
3+
This folder contains files used to generate the documentation which is available at
4+
[docs.cppinsights.io](https://docs.cppinsights.io). [Doxygen](http://doxygen.org) is used to generate the documentation.
5+
6+
The documentation can be created with `cmake`:
47

58
```
69
cmake --build . --target doc
710
```
811

12+
There are some pre- and post-processing steps involved.
13+
14+
### Pre-processing
15+
16+
1. `OptionDocumentationGenerator.cpp` is compiled and executed. It parses `InsightsOptions.def` to generate a list of all
17+
C++ Insights options including the help text and the default. For each option there must be a example C++ file in
18+
`examples`. This file is included in help.
19+
2. `OptionDocumentationGenerator.py` uses the previously generated markdown files and execute the C++ Insights binary
20+
for each sample source file and includes the transformation result in the help file as well.
21+
22+
### Post-processing
23+
24+
Post-processing is done by `postProcessDoxygen.py`:
25+
26+
1. Add `target="_blank"` for each external link in the generated HTML output.
27+
2. Remove unnecessary HTML files. For example, for each markdown file a File Reference file is created but empty.
28+
3. For the remaining HTML files generate a `sitemap.xml` such that search engines can index [docs.cppinsights.io](https://docs.cppinsights.io) properly.

scripts/Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# C++ Insights - scripts
1+
# C++ Insights - scripts {#readme_scripts}
22

33
This folder mostly hosts scripts for Travis CI builds.

0 commit comments

Comments
 (0)