rt-thread/documentation
Chen Wang 40f3b6a569
doxygen: create framework to unify markdown and source code part (#9946)
* doxygen: adjust documentation directory structure

- Rename documentation/doxygen to documentation/0.doxygen and cleanup
  some unused files.

- Add/rename folders for each sub sections, such as
  1.introduction/...... Each sub section will be created as a subpage.

- Generate initial Doxyfile, this Doxyfile will be used to unify
  doxygen generated API documents and those markdown files under
  documentation folder. This patch just add the default Doxyfile
  generated by running "doxygen -g". It is used as baseline to add
  more features/configurations.

- Rename documentation/README.md to documentation/INDEX.md, and
  use it as mainpage.

- Move 0.doxygen/readme.md to documentation/README.md.

* doxygen: update configurations

These configurations are from old documentation/doxygen/Doxyfile.
Try best to compatible exixting design.

* doxygen: add run script

Add a script to automatic some operations.

Updated the README.md.

---------

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Co-authored-by: Supper Thomas <78900636@qq.com>
2025-01-26 11:44:39 +08:00
..
0.doxygen doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
1.introduction doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
2.quick-start doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
3.kernel doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
4.tool doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
5.device doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
6.components doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
7.contribution doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
at doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
basic doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
contribution_guide doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
device doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
dlmodule doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
env doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
figures update README.md studio.gif, README_zh.md studiozh.gif (#5875) 2022-04-30 21:02:48 +08:00
filesystem doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
finsh doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
interrupt doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
kernel-porting doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
memory doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
network doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
pm doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
posix doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
sal doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
scons doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
thread doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
thread-comm doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
thread-sync doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
timer doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
ulog doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
utest doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
Doxyfile doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
INDEX.md doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
README.md doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00
run.sh doxygen: create framework to unify markdown and source code part (#9946) 2025-01-26 11:44:39 +08:00

README.md

How to build doxygen html

  1. download from https://doxygen.nl/index.html
  2. open Doxywizard
  3. File -> Open
  4. Open the file ./Doxyfile
  5. To tab Run , Click Run doxygen

How to build & run doxygen html on Ubuntu

The following steps are verified on Ubuntu 22.04

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy

The following packages (and dependents) need to be installed:

$ sudo apt update
$ sudo apt install doxygen
$ sudo apt install graphviz

Assume that the path of RT-Thead code tree is $RTT, execute the following command to build html.

$ cd $RTT/documentation
$ rm -rf html
$ doxygen

A new html directory will be created and all the html files will be placed in this directory.

If you want to quickly browse HTML locally (in Ubuntu environment), you can enter the html directory and start a local HTML server through Python.

$ cd html
$ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

A bash script run.sh is provided to automatic upon operations.

$ cd $RTT/documentation
$ ./run.sh

Then open the browser and enter http://<IP>:8000/index.html to access the created html web pages. If it is a local access, then <IP> should be replaced by localhost. If it is a remote access, then <IP> should be replaced by the actual accessible IP address of the machine where HTML is located.