Skip to content

doc: Migrating the rest of documentation from cwiki. - #18970

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
cederom:cederom-202605-doc_cwiki_migration
May 28, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:masterfrom
cederom:cederom-202605-doc_cwiki_migration

Conversation

@cederom

@cederom cederom commented May 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • This completes task list in Documentation: migrate pages from wiki #11127.
  • This preserves selected content from cwiki and moves it to new docs.
  • Most pages are simple copy-paste with a simple RST formatting updates, with minor updates.
  • Content update / reorganization will follow later on when needed.
  • Files added (or updated title from cwiki -> current docs):
    • Documentation/implementation:
      • index.
      • cancellation_points.
      • Asynchronous vs. Synchronous Context Switches -> context_switches.rst.
      • ARMv7-M Hardfaults, SVCALL, and Debuggers -> hardfatuls.rst.
      • chip.h FAQ -> chip_h.rst.
      • Debug Output (SYSLOG) Issues -> syslog.rst.
      • Detaching File Descriptors -> file_descriptors.rst.
      • device_nodes.rst.
      • Dynamic Clocking -> power_management.rst.
      • ENOTTY ioctl() Return Value -> ioctl.rst.
      • memory_configurations.rst.
      • kernel_modules_vs_shared_libraries.rst.
      • NAKing USB OUT/IN Tokens -> usb.rst.
      • naming_arch_mcu_board_interfaces.rst.
      • naming_os_internals.rst.
      • nuttx_tasking.rst.
      • oneshot_timers_and_cpu_load.rst.
      • nuttx_initialization_sequence.rst.
      • short_time_delays.rst.
      • Signal Handler Tour -> signal_handlers.rst.
      • smp.rst.
      • syslog.rst.
      • Task Exit Sequence -> nuttx_tasking.rst.
      • tasks_vs_threads.rst.
      • tls.rst.
      • tickless_os.rst.
      • Why Can't Kernel Threads Have pthreads -> kernel_threads_vs_pthreads.rst.
    • Documentation/components/filesystem:
      • smartfs.rst.

Impact

Documentation parts from cwiki (https://cwiki.apache.org/confluence/display/NUTTX/Wiki) is preserved into our new in-tree sphinx based documentation.

Closes #11127

Testing

% uname -a
FreeBSD hexagon 14.4-RELEASE-p5 FreeBSD 14.4-RELEASE-p5 GENERIC amd64
% cd nuttx.git/Documentation
% pipenv shell
% sphinx-autobuild --delay=15 . /tmp/nuttx/doc/html
[sphinx-autobuild] > python -m sphinx build . /tmp/nuttx/doc/html
Running Sphinx v7.3.7
loading pickled environment... done
myst v3.0.1: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=set(), disable_syntax=[], all_links_external=False, links_external_new_tab=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, fence_as_directive=set(), number_code_blocks=[], title_to_header=False, heading_anchors=0, heading_slug_func=None, html_meta={}, footnote_transition=True, words_per_minute=200, substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)
Tags updated
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 146 source files that are out of date
updating environment: 0 added, 146 changed, 0 removed
reading sources... [100%] _tags/wifi
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
                  copying downloadable files... [ 25%] components/drivers/special/usbmonitor_wireshark_l
copying downloadable files... [100%] platforms/xtensa/esp32s2/boards/esp32s2-saola-1/tone.wav
copying static files... done
copying extra files... done
done
writing output... [100%] index
generating indices... genindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*:: net_driver_s'.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*sigaction.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*open.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*close.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*read.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*write.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*ioctl.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*mmap.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*poll.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*dup.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*rewinddir.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*bind.*
WARNING:root:Unused expression: .*Duplicate C declaration.*\n.*'\.\. c:.*::.*unlink.*
build succeeded.

The HTML pages are in ../../../../../../../../../../tmp/nuttx/doc/html.
[sphinx-autobuild] Serving on http://127.0.0.1:8000

@cederom cederom added this to the DOC milestone May 27, 2026
@cederom
cederom requested a review from raiden00pl as a code owner May 27, 2026 04:10
@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. labels May 27, 2026
@cederom cederom mentioned this pull request May 27, 2026
100 tasks done
@cederom

cederom commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

Uh oh, some doc build errors, sorry, need to take a nap and will fix in a free moment.. I updated sphinx on my local machine because it works a lot faster.. looks like syntax also changed a bit there was no complains on my local build.

Also in a free moment need to update sphinx on our repo to build faster :-)

@xiaoxiang781216 xiaoxiang781216 linked an issue May 27, 2026 that may be closed by this pull request
100 tasks done
* This completes task list in apache#11127.
* This preserves selected content from cwiki and moves it to new docs.
* Most pages are simple copy-paste with a simple RST formatting updates,
  with minor updates.
* Content update / reorganization will follow later on when needed.
* Files added (or updated title from cwiki -> current docs):
  * Documentation/implementation:
    * index.
    * cancellation_points.
    * Asynchronous vs. Synchronous Context Switches -> context_switches.rst.
    * ARMv7-M Hardfaults, SVCALL, and Debuggers -> hardfatuls.rst.
    * chip.h FAQ -> chip_h.rst.
    * Debug Output (SYSLOG) Issues -> syslog.rst.
    * Detaching File Descriptors -> file_descriptors.rst.
    * device_nodes.rst.
    * Dynamic Clocking -> power_management.rst.
    * ENOTTY ioctl() Return Value -> ioctl.rst.
    * memory_configurations.rst.
    * kernel_modules_vs_shared_libraries.rst.
    * NAKing USB OUT/IN Tokens -> usb.rst.
    * naming_arch_mcu_board_interfaces.rst.
    * naming_os_internals.rst.
    * nuttx_tasking.rst.
    * oneshot_timers_and_cpu_load.rst.
    * nuttx_initialization_sequence.rst.
    * short_time_delays.rst.
    * Signal Handler Tour -> signal_handlers.rst.
    * smp.rst.
    * syslog.rst.
    * Task Exit Sequence -> nuttx_tasking.rst.
    * tasks_vs_threads.rst.
    * tls.rst.
    * tickless_os.rst.
    * Why Can't Kernel Threads Have pthreads -> kernel_threads_vs_pthreads.rst.
  * Documentation/components/filesystem:
    * smartfs.rst.

Signed-off-by: Tomasz 'CeDeROM' CEDRO <[email protected]>
@cederom
cederom force-pushed the cederom-202605-doc_cwiki_migration branch from 7698b4d to f95635a Compare May 28, 2026 00:31
@cederom

cederom commented May 28, 2026

Copy link
Copy Markdown
Contributor Author
  • Okay, one typo fixed, and I one cross-section label fixed :-) Other than that I checked everything for few days before the PR I hope the results are good :-)
  • Looks like make html that is used to build the website is more strict than sphinx-autobuild beware :-)
  • That was quite a journey with RST and Sphinx. Now I get better understanding of the formatting :-)
% gmake html
Removing everything under '_build'...
Running Sphinx v7.3.7
myst v3.0.1: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=set(), disable_syntax=[], all_links_external=False, links_external_new_tab=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, fence_as_directive=set(), number_code_blocks=[], title_to_header=False, heading_anchors=0, heading_slug_func=None, html_meta={}, footnote_transition=True, words_per_minute=200, substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)
Tags updated
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 1602 source files that are out of date
updating environment: [new config] 1602 added, 0 changed, 0 removed
reading sources... [ 42%] components/drivers/character/analog/dac/mcp47x6/index .. components/drivers/character
reading sources... [ 46%] components/drivers/special/mtd/devices/sst39vf .. components/drivers/special/rptun/dr
reading sources... [ 48%] components/drivers/special/rptun/index .. components/drivers/special/sensors/sensors_
reading sources... [ 66%] platforms/arm/a1x/boards/pcduino-a10/index .. platforms/arm/gd32f4/boards/gd32f470zk-
reading sources... [ 68%] platforms/arm/gd32f4/boards/gd32f470zk-eval/index .. platforms/arm/kinetis/boards/fre
reading sources... [ 71%] platforms/arm/lpc2378/boards/olimex-lpc2378/index .. platforms/arm/nrf52/boards/nrf52
reading sources... [ 74%] platforms/arm/ra4m1/boards/arduino-r4-minima/index .. platforms/arm/s32k3xx/boards/mr
reading sources... [ 77%] platforms/arm/samd5e5/boards/metro-m4/index .. platforms/arm/stm32f1/boards/stm3210e-
reading sources... [ 78%] platforms/arm/stm32f1/boards/stm32_tiny/index .. platforms/arm/stm32f4/boards/nucleo-
reading sources... [ 83%] platforms/arm/stm32l0/boards/b-l072z-lrwan1/index .. platforms/arm/stm32wb/boards/nuc
reading sources... [ 94%] platforms/tricore/tc397/boards/kit_a2g_tc397_tft/index .. platforms/xtensa/esp32s3/bo
reading sources... [100%] testing/nuttx-ci .. testing/nxdart
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying downloadable files... [100%] components/drivers/special/usbmonitor_wireshark_linux_example_adb.pcapng
copying static files... done
copying extra files... done
done
writing output... [ 40%] applications/wireless/wapi/index .. components/drivers/character/analog/dac/mcp47x6/in
writing output... [ 42%] components/drivers/character/analog/dac/mcp48xx/index .. components/drivers/character/
writing output... [ 68%] platforms/arm/eoss3/boards/quickfeather/index .. platforms/arm/imxrt/boards/imxrt1060-
writing output... [ 69%] platforms/arm/imxrt/boards/imxrt1064-evk/index .. platforms/arm/lpc17xx/boards/pnev518
writing output... [ 73%] platforms/arm/mx8mp/boards/verdin-mx8mp/index .. platforms/arm/phy62xx/boards/phy6222/
writing output... [ 76%] platforms/arm/s32k1xx/boards/ucans32k146/index .. platforms/arm/samd2l2/boards/saml21-
writing output... [ 77%] platforms/arm/samd2l2/boards/xiao-seeeduino/index .. platforms/arm/stm32f1/boards/shen
writing output... [ 79%] platforms/arm/stm32f1/boards/stm3210e-eval/index .. platforms/arm/stm32f4/boards/nucle
writing output... [ 81%] platforms/arm/stm32f4/boards/nucleo-f412zg/index .. platforms/arm/stm32g0/boards/nucle
writing output... [ 82%] platforms/arm/stm32g0/boards/nucleo-g071rb/index .. platforms/arm/stm32l0/boards/nucle
writing output... [ 92%] platforms/risc-v/esp32p4/boards/esp32p4-function-ev-board/index .. platforms/risc-v/rv
writing output... [100%] reference/user/11_network .. testing/nxdart
generating indices... genindex done
writing additional pages... search done
copying images... [ 54%] platforms/risc-v/esp32c3-legacy/boards/esp32c3-legacy-devkit-rust-1/esp32c3-devkit-rus
copying images... [ 55%] platforms/risc-v/esp32c3-legacy/boards/esp32c3-legacy-devkit/ESP32-C3-DevKitC-02-v1.1.
copying images... [ 55%] platforms/risc-v/esp32c3-legacy/boards/esp32c3-legacy-devkit/ESP32-C3-DevKitM-1-v1.0.p
copying images... [ 59%] platforms/risc-v/esp32c6/boards/esp32c6-devkitc/esp32-c6-devkitc-1-v1.2-block-diagram.
copying images... [ 59%] platforms/risc-v/esp32c6/boards/esp32c6-devkitc/esp32-c6-devkitc-1-v1.2-annotated-phot
copying images... [ 61%] platforms/risc-v/esp32c6/boards/esp32c6-devkitm/esp32-c6-devkitm-1-v1-block-diagram.pn
copying images... [ 61%] platforms/risc-v/esp32c6/boards/esp32c6-devkitm/esp32-c6-devkitm-1-v1-annotated-photo.
copying images... [ 64%] platforms/risc-v/esp32h2/boards/esp32h2-devkit/ESP32-H2-DevKitM-1-v1.0-block-diagram.p
copying images... [ 64%] platforms/risc-v/esp32h2/boards/esp32h2-devkit/esp32-h2-devkitm-1-v1.2-annotated-photo
copying images... [ 65%] platforms/risc-v/esp32p4/boards/esp32p4-function-ev-board/esp32-p4-function-ev-board-i
copying images... [ 75%] platforms/xtensa/esp32/boards/esp32-ethernet-kit/esp32-ethernet-kit-v1.1-block-diagram
copying images... [ 76%] platforms/xtensa/esp32/boards/esp32-ethernet-kit/esp32-ethernet-kit-rmii-clk-from-phy.
copying images... [ 76%] platforms/xtensa/esp32/boards/esp32-ethernet-kit/esp32-ethernet-kit-rmii-clk-to-phy.pn
copying images... [ 77%] platforms/xtensa/esp32/boards/esp32-lyrat/esp32-lyrat-v4.3-layout-with-wrover-e-module
copying images... [ 77%] platforms/xtensa/esp32/boards/esp32-lyrat/esp32-lyrat-v4.3-electrical-block-diagram-wi
copying images... [ 78%] platforms/xtensa/esp32/boards/esp32-pico-kit/esp32-pico-kit-v4-functional-block-diagra
copying images... [ 83%] platforms/xtensa/esp32s2/boards/esp32s2-kaluga-1/esp32-s2-kaluga-1-v1.2-block-diagram.
copying images... [ 88%] platforms/xtensa/esp32s3/boards/esp32s3-korvo-2/esp32-s3-korvo-2-v3.0-electrical-block
copying images... [ 92%] platforms/xtensa/esp32s3/boards/esp32s3-korvo-2/esp32-s3-korvo-2-v3.0-aec-signal-colle
copying images... [ 95%] platforms/xtensa/esp32s3/boards/esp32s3-ws-lcd128/ESP32-S3-Touch-LCD-1.28-details-intr
copying images... [ 96%] platforms/xtensa/esp32s3/boards/esp32s3-ws-lcd128/ESP32-S3-Touch-LCD-1.28-details-size
copying images... [ 96%] platforms/xtensa/esp32s3/boards/esp32s3-ws-lcd128/ESP32-S3-Touch-LCD-1.28-details-size
copying images... [ 97%] platforms/xtensa/esp32s3/boards/esp32s3-ws-lcd128/ESP32-S3-Touch-LCD-1.28-details-inte
copying images... [100%] _static/images/menuconfig-debug.png
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in _build/html.

@xiaoxiang781216
xiaoxiang781216 merged commit 0cfa6f1 into apache:master May 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Documentation Improvements or additions to documentation Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Documentation: migrate pages from wiki

3 participants