627 Commits

Author SHA1 Message Date
Jasper J.F. van den Bosch
26212481ad Documentation... add missing trailing slash to table for use_directory_urls (#4042) 2025-10-20 14:16:09 +01:00
Matthew Strawbridge
7e4892ab2d Fix documentation of draft_docs and exclude_docs, add tests (#3859) 2024-11-06 16:31:45 +01:00
Tom Christie
bb7e8b6218 Version 1.6.1. (#3819) 2024-08-30 13:21:48 +01:00
Tom Christie
695d8ed4a9 Merge pull request #3808 from razorblack/master
Remove redundant quotes in navigation part of writing-your-docs.md
2024-08-28 14:07:17 +01:00
gesslar
200f6f98b0 Update configuration.md
Very minor grammar issue.
2024-08-27 22:07:29 -04:00
Avinash Maurya
c722a0f005 Update docs/user-guide/writing-your-docs.md
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2024-08-17 17:09:20 +05:30
Avinash Maurya
7285c75ad1 Remove redundant quotes in navigation part of writing-your-docs.md 2024-08-17 12:00:44 +05:30
Ronny Zulaikha
f12315d78f Updated description of use_directory_urls (#3798)
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2024-08-07 12:53:18 +02:00
Trần Nhật Minh Đặng
62a4e3c213 Docs: Dead links at types of GitHub Pages sites. (#3764) 2024-07-11 13:19:18 +02:00
Segev Finer
9cc623b8f0 Fix Developer Guide -> User Guide in User Guide README (#3762) 2024-07-02 16:20:01 +02:00
Manuel Kaufmann
53fec50e57 Docs: update "Read the Docs hosting" (#3683) 2024-04-26 01:03:35 +02:00
Oleh Prypin
0998fec7eb Release 1.6.0 (#3631) 2024-04-20 19:49:39 +02:00
Oleh Prypin
59a295f5f9 Merge pull request #3493 from waylan/2248
Update mkdocs theme to bootstrap 5.3 and add support for dark mode.
2024-04-12 21:38:53 +02:00
Oleh Prypin
70384792e6 Re-generate localization files 2024-04-09 16:14:53 +02:00
Oleh Prypin
a793da267b Add the hook file's directory to sys.path (#3568)
Also clean sys.path after the hook is done, for some semblance of isolation
2024-03-16 16:05:17 +01:00
Waylan Limberg
a836155549 Add support for a 'dark mode' to mkdocs theme
Also add an optional toggle button for it.

Three new config options have been added:

1. 'color_mode' which can be set to one of 'light', 'dark', or 'auto'.
   Default is 'light' for backward compatability. The 'auto' color mode
   will check the system settings and automaticaly switch to light or
   dark mode on page load or when the system's color mode changes.
2. 'hljs_style_dark': the Highlight.js theme to use in 'dark_mode'.
   Default is 'github-dark' which matches the light mode default of
   'github'. The preexisting config option 'hljs_style' is used for
   'light' mode.
3. 'user_color_mode_toggle':
   Allow users to select their prefered color mode (light, dark, auto) from
   within the browser and save their preference for future page loads. The
   new config option 'user_color_mode_toggle' (default: 'False') can be
   enabled to display a toggle menu in the nav bar. The default value of the
   toggle menu on first load is the value set to 'color_mode'.

MkDocs' own documentation is now configured with 'color_mode: auto'.

Co-authored-by: Oleh Prypin <oleh@pryp.in>
2024-03-16 15:16:48 +01:00
Waylan Limberg
351b87939d Update mkdocs theme to Bootstrap/Bootswatch 5.3.2
Javascript has been updated to Bootstrap version 5.3.2 and CSS has been
updated to the the Bootswatch Cerulean theme version 5.3.2. Adding support
for a dark mode to the mkdocs theme is now possible.

All local colors (in base.css, extra.css, etc.) are now defined using
Bootstrap variables so that any future color modes (such as dark mode)
will be consistent.

Admonition styles have also been fully fleshed out with all colors being
Bootstrap colors (via variables) rather than our own custom colors.

Note that while Bootstrap version 5 dropped a dependency on jQuery, the
mkdocs theme is still making use of jQuery at this time. However, future
changes could remove the need for this dependency.

Co-authored-by: Oleh Prypin <oleh@pryp.in>
2024-03-16 15:16:34 +01:00
Oleh Prypin
53ff03aad2 Consistently use ```text in Markdown 2024-03-16 14:49:04 +01:00
Oleh Prypin
953839f1e3 Switch to an explicit markdownlint config
Based on https://github.com/DavidAnson/markdownlint/blob/v0.33.0/schema/.markdownlint.yaml
2024-01-29 22:14:24 +01:00
Oleh Prypin
369dcc0aa1 Apply new markdownlint rule table-pipe-style 2024-01-29 21:56:36 +01:00
Andre_601
7186f4ce9c Remove mention of site_url being required option (#3525) 2023-12-23 13:59:57 +01:00
Oleh Prypin
8833edcc94 Fix some broken links 2023-12-15 21:56:25 +01:00
Oleh Prypin
7245a636cc Also make 'relative_to_docs' work for nav validation 2023-12-11 23:51:56 +01:00
Oleh Prypin
a42ab62311 Validation of absolute links relative to docs root 2023-12-11 23:51:50 +01:00
Oleh Prypin
9e443d2120 For validation, pick up anchors also from raw HTML (#3505) 2023-12-11 23:49:10 +01:00
Oleh Prypin
03cc0fa457 Merge pull request #3511 from mkdocs/contributing
Update CONTRIBUTING.md
2023-12-11 23:43:35 +01:00
Allison Thackston
3e809b6bd6 Add additional 'drafts' level to inclusion (#3476)
Co-authored-by: Oleh Prypin <oleh@pryp.in>
2023-12-11 22:36:36 +01:00
Oleh Prypin
9af473c71c Let's use pymdownx.snippets for the move 2023-12-10 14:10:01 +01:00
Oleh Prypin
f40f3bfe92 Move CONTRIBUTING.md doc to the root 2023-12-10 10:41:22 +01:00
Oleh Prypin
1910381516 Merge pull request #3463 from mkdocs/anch
Implement validation of anchors in links to other pages
2023-12-09 18:08:16 +01:00
Oleh Prypin
9ff9bb10bf Docs: warn about installing third-party plugins 2023-11-11 16:50:48 +01:00
Oleh Prypin
04cca3bff7 Implement validation of anchors in links to other pages
Example message:

    WARNING -  Doc file 'dev-guide/themes.md' contains a link '../user-guide/configuration.md#google_analytics', but the doc 'user-guide/configuration.md' does not contain an anchor '#google>

It is not enabled by default. To enable, use config `validation: {anchors: warn}`

The implementation only detects Markdown anchors, not raw HTML anchors. As such it may have false positives.

```markdown
<a id="undetectable-anchor"></a>

## Detectable anchor
```

There are plans to improve that in the future.

But that's just about user-authored HTML.
As for HTML that Markdown extensions insert: it will also work correctly if they insert the HTML as etree elements and will never work if they insert it via `htmlStash`. Basically the same rules as for what `toc_tokens` is able to detect.
2023-11-11 16:07:25 +01:00
Oleh Prypin
3f7c5ca129 Update docs about logging in plugins 2023-11-11 16:07:25 +01:00
Oleh Prypin
7c3c3981b8 Docs: fix or drop broken anchor links 2023-11-11 14:28:14 +01:00
Oleh Prypin
dc45916aa1 Allow adding event handlers at multiple priorities (#3448)
-within one plugin.
2023-11-08 18:33:38 +01:00
Vedran Miletić
0bf4963090 Quote pip arguments containing square brackets (#3456)
This is strictly necessary when using non-bash shells (e.g. tcsh).
2023-11-01 17:20:14 +01:00
Oleh Prypin
7ab01c24ff Add an enabled setting for all plugins (#3395)
For every plugin, the user can set `enabled: false` (or something based on an environment variable) and it will not kick in at all.

If the plugin has its own `enabled` config, there's no change for it in that case.
2023-10-30 01:58:27 +01:00
Oleh Prypin
d107e6d32c When nav config is not specified, apply file inclusion
to decide whether a file in included when generating the implicit nav.

Fixes #3336
2023-10-28 17:40:15 +02:00
Oleh Prypin
00b648f088 Release 1.5.3 (#3392) 2023-09-18 23:23:33 +02:00
Oleh Prypin
b0915b4697 Switch to "ruff" linter, enable many of its rules (#3368)
Co-authored-by: Ultrabug <ultrabug@ultrabug.net>
2023-09-04 10:02:38 +02:00
Oleh Prypin
79f17b4b71 Release 1.5.2 (#3330) 2023-08-02 16:51:14 +02:00
Oleh Prypin
2865b0fcc4 Release 1.5.1 (#3315) 2023-07-28 00:42:51 +02:00
Oleh Prypin
0d9e3414e1 Release 1.5.0 (#3296) 2023-07-26 22:30:55 +02:00
Oleh Prypin
89c7aa69ac Merge pull request #3283 from mkdocs/warnc
Expand link validation, add configs for it
2023-07-09 16:04:37 +02:00
Oleh Prypin
8353493606 Use YAML indentation width of 2 spaces (#3287) 2023-07-09 15:59:51 +02:00
C3pa
c99465a4d8 Update choosing-your-theme.md
Fixes some grammar errors on Choosing your theme page
2023-07-06 14:12:35 +02:00
Oleh Prypin
aef55990b9 Propagate 1st-level validation keys to the 2nd-level sub-dicts 2023-07-02 18:50:23 +02:00
Oleh Prypin
4150d2b8ce Configurable diagnostics around broken links to docs
Expand the situations where logs about broken links are produced, make the logging levels fully configurable
2023-07-02 18:50:23 +02:00
Oleh Prypin
efe5bfbc47 Merge pull request #3258 from mkdocs/dirtag
Add YAML placeholder tags that resolve to current paths
2023-07-01 15:42:29 +02:00
Oleh Prypin
25f4ea1533 Docs: small fixes 2023-06-30 00:34:22 +02:00