forked from astral-sh/ruff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In 28c9263 I introduced automatic linkification of option references in rule documentation, which automatically converted the following: ## Options * `namespace-packages` to: ## Options * [`namespace-packages`] [`namespace-packages`]: ../../settings#namespace-packages While the above is a correct CommonMark[1] link definition, what I was missing was that we used mkdocs for our documentation generation, which as it turns out uses a non-CommonMark-compliant Markdown parser, namely Python-Markdown[2], which contrary to CommonMark doesn't support link definitions containing code tags.[3] Mkdocs doesn't support CommonMark[4][5]. This commit therefore switches our documentation to use mdbook[6] instead, which uses the pulldown-cmark[7] CommonMark implementation, sparing us from having to deal with such parser idiosyncracies. [1]: https://commonmark.org/ [2]: https://github.com/Python-Markdown/markdown/ [3]: Python-Markdown/markdown#280 [4]: mkdocs/mkdocs#361 [5]: mkdocs/mkdocs#1835 [6]: https://github.com/rust-lang/mdBook [7]: https://github.com/raphlinus/pulldown-cmark
- Loading branch information
1 parent
11b51fc
commit 72ff5b9
Showing
12 changed files
with
58 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
* | ||
!assets | ||
!requirements.txt | ||
book | ||
src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Summary | ||
|
||
- [Overview](./index.md) | ||
- [Installation And Usage](./installation-and-usage.md) | ||
- [Configuration](./configuration.md) | ||
- [Rules](./rules.md) | ||
- [Settings](./settings.md) | ||
- [Editor Integrations](./editor-integrations.md) | ||
- [FAQ](./faq.md) | ||
- [Contributing](./contributing.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[book] | ||
authors = ["The Ruff Developers"] | ||
language = "en" | ||
multilingual = false | ||
src = "src" | ||
title = "Ruff Documentation" | ||
|
||
[output.html] | ||
git-repository-url = "https://github.com/charliermarsh/ruff" | ||
|
||
[output.html.fold] | ||
enable = true | ||
level = 0 |
This file was deleted.
Oops, something went wrong.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<script src="https://cdn.usefathom.com/script.js" data-site="DUAEBFLB" defer></script> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters