Skip to content

Commit f6f7d91

Browse files
authored
doxygen: add prefix for page name (#9989)
Add prefix "page_" to the name of pages. Add this as a rule in guide of writing doxygen documents. Signed-off-by: Chen Wang <[email protected]>
1 parent d8079e3 commit f6f7d91

File tree

43 files changed

+133
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+133
-133
lines changed

documentation/0.doxygen/INDEX.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
@page howto_doxygen How to write doxygen documentation for RT-Thread
1+
@page page_howto_doxygen How to write doxygen documentation for RT-Thread
22

33
RT-Thread Online Documentation is created based on doxygen and is available at: <https://rt-thread.github.io/rt-thread/>. It is consisted of two parts.
44

5-
One part is the detailed introduction of Kernel, which is written in markdown format and converted into HTML page by doxygen. It is displayed under "RT-Thread User Guide" in Treeview on the left side of the browser. Each sub-chapter is organized into a hierarchical structure by using doxygen's [subpage mechanism][2]. There are no special requirements for writing this part, so I will not go into details in this article.
5+
One part is the detailed introduction of Kernel, which is written in markdown format and converted into HTML page by doxygen. It is displayed under "RT-Thread User Guide" in Treeview on the left side of the browser. Each sub-chapter is organized into a hierarchical structure by using doxygen's [subpage mechanism][2]. To define a page, we use `@page` command. The page name should be prefixed with a "page_", and the page name should be unique. Besides this, there are no special requirements for writing this part, so I will not go into details in this article.
66

77
The other part is the description of API. RT-Thread uses [doxygen][1] to automate the generation of documentation from source code comments, parsing information about classes, functions, and variables to produce output in format of HTML. It is displayed under "Modules" in Treeview on the left side of the browser. Each sub-chapter is organized into a hierarchical structure by using doxygen's [topics mechanism][3]. The main content of this article is to describe how to write API with doxygen.
88

documentation/1.introduction/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page introduction Introduction
1+
@page page_introduction Introduction
22

33
As a beginner of Real-time Operating Systems (RTOS), you might be new to RT-Thread. However, with a better understanding of it over time, you will gradually discover the charm of RT-Thread and its advantages over other RTOSs of the same type. RT-Thread is an RTOS. With over 16 years of experience accumulated, along with the rise of the Internet of Things (IoT), it is evolving into a powerful, component-rich IoT operating system.
44

documentation/2.quick-start/keil-installation/keil-installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page quickstart_keil Keil MDK Installation
1+
@page page_quickstart_keil Keil MDK Installation
22

33
Before running the RT-Thread operating system, we need to install MDK-ARM 5.24 (either official or evaluation version, version 5.14 and above), this version is also a relatively new version. This version can provide relatively complete debugging functions. Here, we are using evaluation version 5.24 of 16k compiled code limit. If you want to remove the 16k compiled code limit, please purchase the official MDK-ARM.
44

documentation/2.quick-start/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page quick_start Start Guide
1+
@page page_quick_start Start Guide
22

33
Because of its particularity, the embedded operating system is often closely related to the hardware platform, and specific embedded operating systems can only run on specific hardware. For those who might not have an RT-Thread compatible hardware module, or want to test out their ideas, a complete RT-Thread system can be developed in the simulation environment MDK-ARM.
44

@@ -10,7 +10,7 @@ What will follow is a demonstration of RT-Thread running on a simulated STM32F10
1010

1111
# Preparation
1212

13-
MDK development environment: MDK-ARM 5.24 (official or evaluation version, version 5.14 and above) needs to be installed. This version is a relatively new version, which can provide relatively complete debugging functions. An installation guide can be found here: @subpage quickstart_keil.
13+
MDK development environment: MDK-ARM 5.24 (official or evaluation version, version 5.14 and above) needs to be installed. This version is a relatively new version, which can provide relatively complete debugging functions. An installation guide can be found here: @subpage page_quickstart_keil.
1414

1515
# First acquaintance with RT-Thread
1616

documentation/3.kernel/INDEX.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
@page kernel Kenrel
1+
@page page_kernel Kenrel
22

3-
- @subpage kernel_basics
4-
- @subpage thread_management
5-
- @subpage clock_management
6-
- @subpage thread_sync
7-
- @subpage thread_comm
8-
- @subpage memory_management
9-
- @subpage interrupt_management
10-
- @subpage kernel_porting
3+
- @subpage page_kernel_basics
4+
- @subpage page_thread_management
5+
- @subpage page_clock_management
6+
- @subpage page_thread_sync
7+
- @subpage page_thread_comm
8+
- @subpage page_memory_management
9+
- @subpage page_interrupt_management
10+
- @subpage page_kernel_porting

documentation/4.tool/INDEX.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@page tool Tool
1+
@page page_tool Tool
22

3-
- @subpage env
3+
- @subpage page_env
44

5-
- @subpage scons
5+
- @subpage page_scons

documentation/5.device/INDEX.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
@page device Device
1+
@page page_device Device
22

3-
- @subpage device_framework
4-
- @subpage device_pin
5-
- @subpage device_uart
6-
- @subpage device_adc
7-
- @subpage device_i2c
8-
- @subpage device_spi
9-
- @subpage device_pwm
10-
- @subpage device_rtc
11-
- @subpage device_hwtimer
12-
- @subpage device_watchdog
13-
- @subpage device_wlan
14-
- @subpage device_sensor
3+
- @subpage page_device_framework
4+
- @subpage page_device_pin
5+
- @subpage page_device_uart
6+
- @subpage page_device_adc
7+
- @subpage page_device_i2c
8+
- @subpage page_device_spi
9+
- @subpage page_device_pwm
10+
- @subpage page_device_rtc
11+
- @subpage page_device_hwtimer
12+
- @subpage page_device_watchdog
13+
- @subpage page_device_wlan
14+
- @subpage page_device_sensor
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
@page components Components
1+
@page page_components Components
22

3-
- @subpage component_finsh
4-
- @subpage component_vfs
5-
- @subpage component_utest
6-
- @subpage component_dlmodule
7-
- @subpage component_sal
8-
- @subpage component_at
9-
- @subpage component_posix
10-
- @subpage component_ulog
11-
- @subpage component_pm
12-
- @subpage component_network
3+
- @subpage page_component_finsh
4+
- @subpage page_component_vfs
5+
- @subpage page_component_utest
6+
- @subpage page_component_dlmodule
7+
- @subpage page_component_sal
8+
- @subpage page_component_at
9+
- @subpage page_component_posix
10+
- @subpage page_component_ulog
11+
- @subpage page_component_pm
12+
- @subpage page_component_network
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@page code_contribution Contribution
1+
@page page_code_contribution Contribution
22

33
# Contribution Guide
44

55
We sincerely thank you for your contribution, and welcome to submit the code through GitHub's fork and Pull Request processes. RT-Thread 3.1.0 version and its earlier versions follow the GPL V2 open source license agreement. Versions from the 3.1.0 version onwards follow the Apache License 2.0 open source license agreement.
66

77
All the real-time operating system kernel and open source components can be used free of charge for commercial products, there is no potential commercial risk and you will not being request to publish application source.
88

9-
@subpage rtt_code_style_en
9+
@subpage page_rtt_code_style_en
1010

11-
@subpage howto_doxygen
11+
@subpage page_howto_doxygen

documentation/INDEX.md

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
@mainpage RT-Thread User Guide
22

3-
@subpage introduction
4-
5-
@subpage quick_start
6-
7-
@subpage kernel
8-
9-
- @ref kernel_basics
10-
- @ref thread_management
11-
- @ref clock_management
12-
- @ref thread_sync
13-
- @ref thread_comm
14-
- @ref memory_management
15-
- @ref interrupt_management
16-
- @ref kernel_porting
17-
18-
@subpage tool
19-
20-
- @ref env
21-
- @ref scons
22-
23-
@subpage device
24-
25-
- @ref device_framework
26-
- @ref device_pin
27-
- @ref device_uart
28-
- @ref device_adc
29-
- @ref device_i2c
30-
- @ref device_spi
31-
- @ref device_pwm
32-
- @ref device_rtc
33-
- @ref device_hwtimer
34-
- @ref device_watchdog
35-
- @ref device_wlan
36-
- @ref device_sensor
37-
38-
@subpage components
39-
40-
- @ref component_finsh
41-
- @ref component_vfs
42-
- @ref component_utest
43-
- @ref component_dlmodule
44-
- @ref component_sal
45-
- @ref component_at
46-
- @ref component_posix
47-
- @ref component_ulog
48-
- @ref component_pm
49-
- @ref component_network
50-
51-
@subpage code_contribution
3+
@subpage page_introduction
4+
5+
@subpage page_quick_start
6+
7+
@subpage page_kernel
8+
9+
- @ref page_kernel_basics
10+
- @ref page_thread_management
11+
- @ref page_clock_management
12+
- @ref page_thread_sync
13+
- @ref page_thread_comm
14+
- @ref page_memory_management
15+
- @ref page_interrupt_management
16+
- @ref page_kernel_porting
17+
18+
@subpage page_tool
19+
20+
- @ref page_env
21+
- @ref page_scons
22+
23+
@subpage page_device
24+
25+
- @ref page_device_framework
26+
- @ref page_device_pin
27+
- @ref page_device_uart
28+
- @ref page_device_adc
29+
- @ref page_device_i2c
30+
- @ref page_device_spi
31+
- @ref page_device_pwm
32+
- @ref page_device_rtc
33+
- @ref page_device_hwtimer
34+
- @ref page_device_watchdog
35+
- @ref page_device_wlan
36+
- @ref page_device_sensor
37+
38+
@subpage page_components
39+
40+
- @ref page_component_finsh
41+
- @ref page_component_vfs
42+
- @ref page_component_utest
43+
- @ref page_component_dlmodule
44+
- @ref page_component_sal
45+
- @ref page_component_at
46+
- @ref page_component_posix
47+
- @ref page_component_ulog
48+
- @ref page_component_pm
49+
- @ref page_component_network
50+
51+
@subpage page_code_contribution
5252

0 commit comments

Comments
 (0)