Oleh Prypin
ad73366e52
Fix tests on Windows
2023-10-16 22:32:28 +02:00
Oleh Prypin
b3992222b1
Move forward with some deprecations ( #3425 )
2023-10-16 22:32:08 +02:00
Oleh Prypin
44e6536060
Update CI to be consistent with deploy-release.yml
2023-10-14 13:35:26 +02:00
Oleh Prypin
79ae55e0cb
Fix typo
2023-10-14 12:45:02 +02:00
Martin Donath
a6fef567bf
Improve editing experience when using --livereload ( #3391 )
...
The livereload server connection is cancelled when the tab becomes inactive.
Once a tab becomes active, the livereload connection is immediately established again.
2023-10-14 12:27:16 +02:00
Oleh Prypin
00b648f088
Release 1.5.3 ( #3392 )
1.5.3
2023-09-18 23:23:33 +02:00
Oleh Prypin
63b50450fb
Change PyPI deploy to rely on "trusted publishers" ( #3400 )
2023-09-18 18:13:47 +02:00
Oleh Prypin
abb133fbb1
Fix new lint warnings
2023-09-18 17:52:05 +02:00
Martin Donath
8c79426844
Abort livereload request before navigation ( #3390 )
2023-09-14 20:41:53 +02:00
Peter Dave Hello
f94ab3f62d
Add zh_TW locale for built-in themes ( #3370 )
2023-09-13 18:21:59 +02:00
Oleh Prypin
0d6fc286fa
Merge pull request #3383 from mkdocs/breadcrumbs
...
Fix breadcrumb display in readthedocs theme
2023-09-13 18:21:00 +02:00
Oleh Prypin
4bd896c8f2
Fix linkified breadcrumb items in readthedocs theme
...
A doc can never have a `link` attribute so this branch never kicked in.
Actually even now, this branch will still not kick in, only mkdocs-section-index makes this state possible.
2023-09-11 00:03:04 +02:00
Oleh Prypin
c070dd0202
Fix broken styling of breadcrumbs in readthedocs theme
...
Commit 3c3670d92c left it half way between the old and new style
2023-09-11 00:03:04 +02:00
Oleh Prypin
347c3a91dd
Apply automatic fixes from ruff, show diff in CI
2023-09-11 00:02:51 +02:00
Oleh Prypin
759e1e3bae
Keep the prior behavior of overwriting File.page ( #3381 )
...
unless the page value is a *strict* subclass of Page
2023-09-10 13:05:28 +02:00
Martin Donath
3db7b8c9c2
Allow plugins to provide their own Page ( #3367 )
...
Co-authored-by: Oleh Prypin <oleh@pryp.in >
2023-09-07 22:17:35 +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
94e9f17cd7
Prevent a stacktrace for theme: foo when theme is not installed ( #3351 )
...
This happens because the `theme` option fails validation (being not installed) but then validation of `plugins` option fatally fails because that option is invalid. Maybe in the future it would be better to change validation so it stops after the first error, because there can be countless such combinations of interactions.
2023-08-26 18:33:50 +02:00
Ultrabug
9cc8f24981
Add new supported languages by updating lunr-languages to 1.12.0
...
Bump from 1.4.0 to 1.12.0
This adds support for:
- hi
- hy
- kn
- ko
- sa
- ta
- te
- zh
2023-08-18 15:51:45 +02:00
Martin Donath
c8bd1aff53
Merge pull request #3340 from mkdocs/feature/page-subclassing
...
Improve debug output for subclasses of navigation elements
2023-08-18 15:37:33 +02:00
squidfunk
b83dc350ce
Improve debug output for subclasses of navigation elements
2023-08-17 11:55:59 +02:00
Oleh Prypin
79f17b4b71
Release 1.5.2 ( #3330 )
1.5.2
2023-08-02 16:51:14 +02:00
Oleh Prypin
91e37aea5e
Change extra_javascript items to usually be strings again ( #3324 )
...
In 1.5.0 `extra_javascript` was changed to become a `list[ExtraScriptValue]`, but strings could sneak in anyway, although MkDocs would never put them there anymore.
Let's change it to officially be `list[ExtraScriptValue | str]` but typically these items will be strings once again, unless specified as a dictionary in the config in the first place. This will guard plugins that aren't updated yet from a breakages unless users actually use `mjs` files.
2023-08-02 12:11:53 +02:00
Ultrabug
4944c9fe35
Drop obsolete readthedocs config, we switched to gh-pages ( #3326 )
2023-08-02 12:06:30 +02:00
Oleh Prypin
63052bc1be
Correct detection of dropping anchorlink from page title ( #3325 )
2023-08-02 11:45:35 +02:00
Oleh Prypin
fcb2da399f
Restore functionality of --no-livereload ( #3320 )
...
and nearby refactor
2023-08-01 18:57:57 +02:00
Oleh Prypin
2865b0fcc4
Release 1.5.1 ( #3315 )
1.5.1
2023-07-28 00:42:51 +02:00
Oleh Prypin
ea549e6177
Make it possible to treat ExtraScriptValue as a path
...
This lets some plugins still work despite the breaking change
Fixes #3310
2023-07-28 00:13:48 +02:00
Jake Carter
86cde7b7be
Catch ValueErrors thrown when attempting to remove a file twice ( #3314 )
2023-07-27 23:57:49 +02:00
Oleh Prypin
0d9e3414e1
Release 1.5.0 ( #3296 )
1.5.0
2023-07-26 22:30:55 +02:00
Oleh Prypin
0f8ab6bd6f
Fix livereload shutdown sequence - crash on Windows
...
Fixes #3305
Regressed in commit d4d483c779
2023-07-26 21:12:17 +02:00
Oleh Prypin
bfb52a30ac
Create FUNDING.yml ( #3295 )
2023-07-19 20:44:38 +02:00
Oleh Prypin
189faf03c1
Merge pull request #3297 from mkdocs/regr
...
Regression fixes
2023-07-19 20:42:02 +02:00
Oleh Prypin
bb00d4cebb
Add a test for relative link without dot in filename
2023-07-19 00:11:29 +02:00
Oleh Prypin
c3d4ff7b69
Fix unescaping of Markdown titles
...
Currently this is a regression in unreleased code. Extensions such as 'inlinehilite' and 'smarty' were pasting `wzxhzdk:1` due to their use of htmlStash
2023-07-19 00:11:29 +02:00
Oleh Prypin
d8bc90f113
Always set inclusion_level so static-i18n plugin keeps working
2023-07-18 23:49:46 +02:00
Oleh Prypin
80254454d2
Revert "Check types against older Click that still has correct types"
...
This reverts commit 21c618a1c6 .
2023-07-18 23:22:25 +02:00
Oleh Prypin
b1624b5ce8
Add blockquote styling for mkdocs theme ( #3291 )
2023-07-16 21:11:16 +02:00
Oleh Prypin
41de1dd04b
The new !relative tag also needs to be ignored in get-deps
2023-07-09 20:35:16 +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
Oleh Prypin
ba6d23e721
More rigorous suggestions and tests for relative links in Markdown
2023-07-08 13:32:54 +02:00
Oleh Prypin
fad2926760
Update Hatch matrix specification, properly add Python 3.11
2023-07-07 15:17:40 +02:00
Dominique Fober
65c0590e22
Upgrade jQuery in mkdocs theme ( #3286 )
2023-07-07 14:42:24 +02:00
Oleh Prypin
21c618a1c6
Check types against older Click that still has correct types
...
https://github.com/pallets/click/issues/2558
2023-07-07 14:27:18 +02:00
Ultrabug
fe80d58dd4
Merge pull request #3285 from C3pa/patch-1
...
Fix some grammar errors on Choosing Your Theme page.
2023-07-06 17:07:56 +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
ca5160af27
Add suggestions for malformed links in Markdown
...
Guess what existing page might have been meant based on the provided link, and mention it in the log message.
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