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
Oleh Prypin
c71bf2429f
Refactor RelativePathExtensionTests
...
And use attribute access for configs in more places
2023-07-02 18:50:23 +02:00
Oleh Prypin
de0c913fca
Make colorful/indented output optional, decrease indent ( #3282 )
...
* These disable it: `--no-color` flag, `NOCOLOR=` var, or `| cat`.
* This force-enables it: `--color`
2023-07-02 18:04:50 +02:00
Oleh Prypin
5db6a78082
Deprecate defaults.get_schema
2023-07-01 15:43:06 +02:00
Oleh Prypin
bf7c4300ce
Refactor to eliminate wrapper Markdown extension classes
2023-07-01 15:42:40 +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
Oleh Prypin
99a9a90553
Document the !relative tag
2023-06-25 23:11:55 +02:00
Oleh Prypin
7d8483904a
Add YAML placeholder tags that resolve to current paths
...
- !relative # Obtains the directory of the currently rendered Markdown file
- !relative $docs_dir # Obtains the docs_dir
- !relative $config_dir # Obtains the directory of mkdocs.yml
2023-06-23 18:32:01 +02:00
Oleh Prypin
a59e280d80
Make config_file_path default to empty string
2023-06-23 18:30:30 +02:00
Oleh Prypin
7b1bc92926
Refactor around dict key access
2023-06-23 16:36:28 +02:00
Oleh Prypin
b162c5e824
Docs: automatically generate the list of locales ( #3272 )
2023-06-23 09:35:26 +02:00
Oleh Prypin
f784374856
get-deps: suggest 'mkdocs[i18n]' if theme.locale is used ( #3271 )
2023-06-23 09:34:35 +02:00
Philip Couling
66f8df97d2
Pass config file path through SubConfig to Config ( #3265 )
...
This ensures FilesystemObject fields in Config are correctly evaluated relative to file.
Co-authored-by: Oleh Prypin <oleh@pryp.in >
2023-06-22 21:53:41 +02:00
Oleh Prypin
ae4a639f6e
Fix types after merge
2023-06-19 22:33:30 +02:00
Oleh Prypin
ce826e94cc
Merge pull request #3268 from mkdocs/conft
...
More precise types; support stdin as the `--config-file`
2023-06-19 22:22:10 +02:00
Oleh Prypin
0440ddd247
Merge pull request #3237 from mkdocs/mjs
...
Support `<script type="module">` and other attributes
2023-06-19 07:58:46 +02:00
Oleh Prypin
9810dd485a
Rename enum members to uppercase
2023-06-18 23:00:23 +02:00
Oleh Prypin
9394d4b168
Merge remote-tracking branch 'origin/master' into mjs
2023-06-18 19:18:22 +02:00
Oleh Prypin
8b0971c4fe
Use type-safe wrappers around run_event
2023-06-18 19:09:59 +02:00
Oleh Prypin
01be507e30
Define a base class for all navigation item classes
2023-06-18 18:03:03 +02:00
Oleh Prypin
c459cd24fc
Stricter type annotations for MkDocsConfig
...
No functional change, but users of modern MkDocs that also care about type annotations should be passing correct types by now.
2023-06-18 17:55:41 +02:00
Oleh Prypin
d5bb15fa10
Properly support config_file_path being None
...
* Prevent error when the config file is a stream, to support `-` as the config.
* Fix type annotations and edge cases when `config_file_path` is None
* Properly prevent users setting `config_file_path` in mkdocs.yml - this was not intended.
2023-06-18 17:55:41 +02:00
Oleh Prypin
285461a3e7
Merge pull request #3249 from mkdocs/userc
...
Deprecate Theme-related fields that were accidentally available
2023-06-18 17:53:01 +02:00
Oleh Prypin
afb66c1bea
Add mkdocs build --no-strict that overrides strict: true ( #3254 )
2023-06-12 13:45:11 +02:00
Oleh Prypin
b6ff158d9a
Don't abort mkdocs serve for build errors during rebuilds ( #3255 )
2023-06-12 12:02:18 +02:00
Oleh Prypin
82aa8637b9
Merge pull request #3224 from mkdocs/ignore
...
New `exclude_docs` config: gitignore-like patterns of files to exclude
2023-06-11 20:40:05 +02:00
Oleh Prypin
ff68d77617
Deprecate Theme._vars but add custom_dir and other attributes
2023-06-09 21:46:21 +02:00
Oleh Prypin
96920d347f
Deprecate user_configs
2023-06-09 21:46:20 +02:00
Oleh Prypin
9d56fa21d9
Merge remote-tracking branch 'origin/master' into ignore
2023-06-09 20:18:54 +02:00
Oleh Prypin
f2d14c52a7
Merge pull request #3205 from mkdocs/getdeps
...
New `get-deps` command: infer PyPI dependencies from mkdocs.yml
2023-06-09 20:05:07 +02:00
Oleh Prypin
4f98a94f14
Fix typo in extra_javascript doc
2023-06-08 10:33:48 +02:00
Timothée Mazzucotelli
fdd30c0c34
Add DictOfItems type for configuration options ( #3242 )
2023-06-07 01:22:59 +02:00
Timothée Mazzucotelli
18c01d2e74
Add plugin logger utility ( #3245 )
2023-06-07 01:22:00 +02:00
Oleh Prypin
619f7cf898
Add tests for get_deps command + bugfix for namespacing
2023-06-07 01:06:59 +02:00
Oleh Prypin
5de1273259
Avoid effects of YAML tags in get_deps
2023-06-07 01:06:24 +02:00
Oleh Prypin
e175070243
Let plugins declare their own optional dependencies
...
This is inferred from particular config keys
The current known plugin in need of this is mkdocstrings (handlers)
2023-06-07 01:06:21 +02:00
Timothée Mazzucotelli
45c8b9669b
Add note about formatting code ( #3244 )
2023-06-07 00:43:45 +02:00