coreboot/Documentation/getting_started
Nicholas Chin 49219f1ce1 Docs: Use markdown autolinks instead of Sphinx doc directive
Several files use embedded reStructuredText blocks in order to use the
:doc: directive to reference other markdown files using a relative path.
MyST Parser supports a similar feature using the standard Markdown
autolink (angled bracket) syntax, so use this instead as it is cleaner.
Both methods use the first heading of the linked file as the text shown
in the reference, though MyST Parser also supports the standard [link
text](../path/to/file.md) syntax to explicitly set the link text.

Note that when using the autolink syntax, `project:` must be prepended
to the relative path as it expects a URI scheme for all autolinks. This
is not required when using the separate text and URI syntax.

Before:
    ```{eval-rst}
    Example text :doc:`../relative/path`.
    ```

After:
    Example text <project:../relative/path.md>

Using the Markdown syntax also avoids formatting issues if any plain
text in the eval-rst block uses Markdown formatting syntax where they
would unintentionally be parsed differently due to text being parsed as
reStructuredText.

Some :doc: instances still remain as they are used within reST style
tables in an eval-rst block, so these were left as is since the Markdown
syntax would be invalid in that context.

[1]: https://myst-parser.readthedocs.io/en/latest/syntax/cross-referencing.html#autolinks

Change-Id: I8828bf7efe13de6d6f628f6b64151fbd25289fa5
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88618
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
2025-08-02 16:47:10 +00:00
..
architecture.md Documentation: Fix a few spelling issues 2022-05-30 04:24:57 +00:00
build_system.md Docs: Use markdown autolinks instead of Sphinx doc directive 2025-08-02 16:47:10 +00:00
cbmem.md Documentation: Update cbmem.md with more information 2025-07-07 14:31:12 +00:00
comparison_coreboot_uefi.dia Docs/architecture: Fix filename for coreboot architecture diagram 2022-10-10 07:25:19 +00:00
comparison_coreboot_uefi.svg Docs/architecture: Fix filename for coreboot architecture diagram 2022-10-10 07:25:19 +00:00
devicetree.md Documentation: fix link to Driver Devicetree Entries page 2023-06-09 15:43:18 +00:00
faq.md Docs/getting-started/faq: Remove line break in URL breaking link 2024-08-14 08:19:48 +00:00
gpio.md Docs: Replace Recommonmark with MyST Parser 2024-03-21 16:11:56 +00:00
index.md Documentation/getting_started/cbmem.md: Add cbmem documentation 2025-04-06 15:44:01 +00:00
kconfig.md Docs: Convert bare URLs into hyperlinks 2024-12-14 06:23:13 +00:00
submodules.md Documentation: Update index.md and move files 2018-05-30 09:14:48 +00:00
writing_documentation.md docs/getting-started: Update guide for writing docs 2025-04-14 13:56:11 +00:00