An open API service indexing awesome lists of open source software.

https://github.com/andreasfertig/andreasfertig.github.io

C++ Insights - Documentation
https://github.com/andreasfertig/andreasfertig.github.io

Last synced: 6 months ago
JSON representation

C++ Insights - Documentation

Awesome Lists containing this project

README

          

C++ Insights: C++ Insights - docs






/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */





C++ Insights - docs




This folder contains files used to generate the documentation which is available at docs.cppinsights.io. Doxygen is used to generate the documentation.


The documentation can be created with cmake:



cmake --build . --target doc


There are some pre- and post-processing steps involved.




Pre-processing




  1. OptionDocumentationGenerator.cpp is compiled and executed. It parses InsightsOptions.def to generate a list of all C++ Insights options including the help text and the default. For each option there must be a example C++ file in examples. This file is included in help.


  2. OptionDocumentationGenerator.py uses the previously generated markdown files and execute the C++ Insights binary for each sample source file and includes the transformation result in the help file as well.




Post-processing


Post-processing is done by postProcessDoxygen.py:



  1. Add target="_blank" for each external link in the generated HTML output.

  2. Remove unnecessary HTML files. For example, for each markdown file a File Reference file is created but empty.

  3. For the remaining HTML files generate a sitemap.xml such that search engines can index docs.cppinsights.io properly.