Skip to content

Commit 0584bde

Browse files
authored
Rollup merge of #109229 - DaniPopes:link-references, r=notriddle
Fix invalid markdown link references Fixes invalid link references in librustdoc's template documentation. `[text](link)` was interpreted as a relative path to the file, making the link invalid, while `[text][label]` references a label defined in the file itself: <https://www.markdownguide.org/basic-syntax/#reference-style-links>
2 parents a530f72 + 7a1a02e commit 0584bde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/librustdoc/html/templates/STYLE.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Style for Templates
22

3-
This directory has templates in the [Tera templating language](teradoc), which is very
4-
similar to [Jinja2](jinjadoc) and [Django](djangodoc) templates, and also to [Askama](askamadoc).
3+
This directory has templates in the [Tera templating language][teradoc], which is very
4+
similar to [Jinja2][jinjadoc] and [Django][djangodoc] templates, and also to [Askama][askamadoc].
55

66
[teradoc]: https://tera.netlify.app/docs/#templates
7-
[jinjadoc]: https://jinja.palletsprojects.com/en/3.0.x/templates/
8-
[djangodoc]: https://docs.djangoproject.com/en/3.2/topics/templates/
9-
[askamadoc]: https://docs.rs/askama/0.10.5/askama/
7+
[jinjadoc]: https://jinja.palletsprojects.com/en/3.1.x/templates/
8+
[djangodoc]: https://docs.djangoproject.com/en/4.1/topics/templates/
9+
[askamadoc]: https://docs.rs/askama/latest/askama/
1010

1111
We want our rendered output to have as little unnecessary whitespace as
1212
possible, so that pages load quickly. To achieve that we use Tera's
@@ -30,8 +30,8 @@ contents don't necessarily need a new line.
3030

3131
Askama templates support quite sophisticated control flow. To keep our templates
3232
simple and understandable, we use only a subset: `if` and `for`. In particular
33-
we avoid [assignments in the template logic](assignments) and [Askama
34-
macros](macros). This also may make things easier if we switch to a different
33+
we avoid [assignments in the template logic][assignments] and [Askama
34+
macros][macros]. This also may make things easier if we switch to a different
3535
Jinja-style template system, like Askama, in the future.
3636

3737
[assignments]: https://djc.github.io/askama/template_syntax.html#assignments

0 commit comments

Comments
 (0)