Skip to content

cnruby/w3h1_cmake

 
 

Repository files navigation

Hello, Breathe!

Generating functional Documentation For 'C/C++'s Sources



@Gitter :gitter.im/cnruby
Code ID: basic_120
Code Name: Hello, Breathe!

Youtube Video

TABLE of CONTENTS

About The Project

Illustrate the Method of Generation 'Sphinx's API Documentation

Requirements

Install Breathe, Doxygen and Sphinx on MacOS

brew install doxygen
brew cask install graphviz
pip install sphinx sphinx-autobuild
brew install sphinx-doc
pip install sphinx_bootstrap_theme
pip install breathe

How does this Video Relate to the Other Videos?

How does this Video Relate to the Other Videos?

Generation 'Breathe's API Documentation

Generation 'Breathe's API Documentation

What is The Tool breathe

_image

Get The Code with Shell Commands

git clone https://github.com/cnruby/w3h1_cmake.git basic_120
cd basic_120
git checkout basic_120
code .

Illustrate Generating 'Breathe's API Documentation

The Folder's Structure

#<!-- markdown-exec(cmd:cat docs/output/tree.txt) -->#
.
├── api
│  ├── conf.py
│  ├── header.rst
│  ├── index.rst
│  ├── main.rst
│  └── requirements.txt
├── cmake
│  ├── CMakeLists.txt
│  ├── doxygen
│  │  └── CMakeLists.txt
│  ├── module
│  │  └── FindSphinx.cmake
│  └── sphinx
│     ├── CMakeLists.txt
│     └── conf.in.py
├── CMakeLists.txt
├── lib
│  ├── CMakeLists.txt
│  ├── header.cxx
│  └── header.hxx
└── src
   ├── CMakeLists.txt
   └── main.cxx
#<!-- /markdown-exec -->

Commands for The Illustratation

cmake -GNinja -Bbuild/
cmake --build build --target target_doxygen
cmake --build build --target target_sphinx
cmake --build build --target target_docs
open build-doc-doxygen/html/index.html
open build-doc-sphinx/_build/index.html

Final Summary

_image

感谢大家观看!

@Gitter: gitter.im/cnruby

@Github: github.com/cnruby

@Twitter: twitter.com/cnruby

@Blogspot: cnruby.blogspot.com

References