mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
632bd0bb4f
docs: use custom roles to generate GitHub links This change replaces direct links to GitHub master branch with auto-generated links using docutils custom roles. These auto-generated links point to the tree or blob for the git commit ID (or tag) of the repository. This is needed to ensure that links don’t become broken when files in master branch are moved around or deleted. The following roles are introduced: ``` - :idf:`path` - points to directory inside ESP-IDF - :idf_blob:`path` - points to file inside ESP-IDF - :idf_raw:`path` - points to raw view of the file inside ESP-IDF - :component:`path` - points to directory inside ESP-IDF components dir - :component_blob:`path` - points to file inside ESP-IDF components dir - :component_raw:`path` - points to raw view of the file inside ESP-IDF components dir - :example:`path` - points to directory inside ESP-IDF examples dir - :example_blob:`path` - points to file inside ESP-IDF examples dir - :example_raw:`path` - points to raw view of the file inside ESP-IDF examples dir ``` A check is added to the CI build script, which searches RST files for presence of hard-coded links (identified by tree/master, blob/master, or raw/master part of the URL). This check can be run manually: cd docs && make gh-linkcheck Additionally, Sphinx linkcheck build type is used to create new CI test, which check for broken links. This test has to be triggered explicitly, because including it in normal build process (when the commit is not yet deployed to Github) will not work. It can be triggered in a regular fashion using a combination of cron and Curl, similar to stress tests. See merge request !455 |
||
---|---|---|
.. | ||
_static | ||
api | ||
security | ||
build-system.rst | ||
conf.py | ||
contributing.rst | ||
contributor-agreement.rst | ||
COPYRIGHT.rst | ||
core_dump.rst | ||
deep-sleep-stub.rst | ||
documenting-code.rst | ||
Doxyfile | ||
doxygen_xml_to_rst.xslt | ||
eclipse-setup.rst | ||
esp32.cfg | ||
general-notes.rst | ||
index.rst | ||
link-roles.py | ||
linux-setup.rst | ||
macos-setup.rst | ||
make-project.rst | ||
Makefile | ||
openocd.rst | ||
partition-tables.rst | ||
README.md | ||
repo_util.py | ||
requirements.txt | ||
style-guide.rst | ||
ulp.rst | ||
unit-tests.rst | ||
windows-setup.rst |
Documentation Source Folder
This folder contains source files of ESP-IDF documentation.
The sources do not render well in GitHub and some information is not visible at all.
Use actual documentation generated instantly on each commit:
- Main server: http://esp-idf.readthedocs.io/ or http://esp-idf.rtfd.io/
- Mirror: https://dl.espressif.com/doc/esp-idf/latest/