Commit Graph

264 Commits

Author SHA1 Message Date
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
00b648f088 Release 1.5.3 (#3392) 2023-09-18 23:23:33 +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
8353493606 Use YAML indentation width of 2 spaces (#3287) 2023-07-09 15:59:51 +02:00
Oleh Prypin
25f4ea1533 Docs: small fixes 2023-06-30 00:34:22 +02:00
Oleh Prypin
7b1bc92926 Refactor around dict key access 2023-06-23 16:36:28 +02:00
Oleh Prypin
3d1b0113c2 Release 1.4.3 (#3208) 2023-05-02 23:16:34 +02:00
Oleh Prypin
324f486adc Docs: fix broken links to pocoo.org 2023-04-21 22:24:36 +02:00
Oleh Prypin
ec7eee6ce3 Release 1.4.2 (#3032) 2022-11-01 19:23:29 +01:00
Oleh Prypin
faba3f046e Add missed entry in release notes 2022-10-15 21:29:03 +02:00
Oleh Prypin
aa9eabea1a Release 1.4.1 (#3004) 2022-10-15 21:13:41 +02:00
Oleh Prypin
4dd64a6950 Mention event priority values also in release notes 2022-09-27 20:00:35 +02:00
Oleh Prypin
927ee2684b Release 1.4.0 (#2986) 2022-09-27 19:26:54 +02:00
Oleh Prypin
6123328cbe Enforce fenced codeblocks in our docs 2022-09-19 22:22:33 +02:00
Oleh Prypin
6f3801cbd3 Lint: align the whole list item into 4 spaces, don't disregard 1st line (#2915)
In other cases, drop the multiline way of writing the list
2022-08-07 14:57:06 +02:00
Oleh Prypin
cd1135ee3e Fix remaining markdownlint issues, partly by replacing definition lists (#2914) 2022-08-07 14:46:10 +02:00
Oleh Prypin
22af92c874 Migrate docs from "admonition" to "callouts" extension (#2684)
The result is exactly equivalent, just different syntax -- one that doesn't look weird in vanilla Markdown parsers such as on GitHub.
The output HTML before/after is equivalent , other than adding `<p class="admonition-title">Block</p>` in two cases, which I hid with CSS.

This also contributes to fixing the currently-present markdownlint MD053 violations, as it can't scan inside admonitions.

Add 'markdown-callouts' to dependencies and bump Markdown dep.
2022-08-06 17:35:36 +02:00
Oleh Prypin
a17a25c60e Release 1.3.1 (#2895) 2022-07-19 09:23:14 +02:00
Oleh Prypin
d2e2a2318d Release 1.3.0 (#2806) 2022-03-26 20:51:15 +01:00
Oleh Prypin
2016004b7e Merge branch 'release/1.2' 2022-03-26 20:37:41 +01:00
Oleh Prypin
6c1eb589f4 Release 1.2.4 (#2805) 2022-03-26 20:33:54 +01:00
Nick Schonning
234fb10e54 Docs: fix relative link (#2756) 2022-01-28 00:51:23 +01:00
Oleh Prypin
7210ff7e2e Add latest members of MkDocs maintenance team (#2661) 2021-11-05 17:27:24 +01:00
Ashwin Ramaswami
aa97582400 Fix typo (#2663)
fazing -> phasing
2021-11-04 20:42:08 +01:00
Oleh Prypin
9880767940 Remove line length limit from Markdown documents (#2626)
Also try it out on some part of one document.
2021-10-26 20:40:25 +02:00
Oleh Prypin
d167eab473 Release 1.2.3 (#2614) 2021-10-12 23:27:41 +02:00
Oleh Prypin
52ed45a58c Release 1.2.2 (#2496) 2021-07-18 21:17:36 +02:00
Oleh Prypin
b12804d97e Fix some spelling typos (#2489) 2021-07-13 19:07:59 +02:00
Waylan Limberg
bd167cf3f6 Bump version to 1.2.1 2021-06-09 13:20:07 -04:00
Christian Oliff
55e1cdf6ea fix example typo in release notes 2021-06-09 08:57:25 -04:00
Waylan Limberg
2688a6d88d Ensure gh-deploy always pushes
This was a regression in behavior. I had missed that `push` and `force`
are two separate parameters of `ghp_import.ghp_import` in #2257.
2021-06-07 11:25:20 -04:00
Waylan Limberg
cd43e9a243 Bump version to 1.2 2021-06-07 09:44:23 -04:00
Waylan Limberg
80feaf03a4 Deprecate google_analytics config option.
A new replacement option (theme.analytics.gtag) was added to the built-in themes. Multiple different services could be offered under theme.analytics. At this time only support for gtag exists, but more could be added in the future.

Fixes #2252.
2021-06-02 11:02:01 -04:00
Waylan Limberg
57b5ccd7d6 Add support for Configuration Inheritance
* Support dict only markdown_extensions config
* Support dict only plugin config
* Remove explicit conversion to Unicode as PY2 is no longer supported.
* Refactor yaml_load so that is can recursively call itself.

Fixes #2218.
2021-06-01 14:50:00 -04:00
Oleh Prypin
d9b957e771 Offset the local site root to the path of the site_url 2021-05-25 13:11:41 -04:00
Oleh Prypin
a444c43474 Reimplement livereload
This discards the dependency on 'livereload' and 'tornado'. This implementation is based on stdlib http.server and is much smaller, while not being a downgrade in any way.

This fixes #2061: multiple file changes no longer cause the site to repeatedly rebuild.
It also makes reloads much more responsive; they're "instant" rather than being on a 1-second polling interval or such.

Each HTML page gets JavaScript injected into it (like before) but now, instead of connecting to WebSocket, it requests a long-polling endpoint, which blocks until a newer version ("epoch") of the site is available - then the page knows to reload itself. After a minute without events, the endpoint will just return the unchanged epoch (to avoid timeouts), then the page requests the same endpoint again. The "downtime" in between requests is not a problem because these are not events that need to be received in real time; the endpoint can instantly report that the latest version is newer than the one the page identified itself as.

The reason to replace WebSocket isn't that it's bad or something, just that stdlib doesn't have it. But long-polling works completely fine here too.
2021-05-25 10:16:31 -04:00
Waylan Limberg
5fc92b96e7 Documentation improvements
Clean up and improve the documentation following some recent changes.
Specificaly, ensure we consistantly document *two* required settings.
2021-05-18 13:13:05 -04:00
Waylan Limberg
aae31c88c9 Fix typo 2021-05-17 15:34:59 -04:00
Waylan Limberg
b89ec5792e Ensure site_url and use_directory_urls do not conflict.
The site_url config option is now required. If it is set to an empty
string, then use_directory_urls will be forced to false. Each will
issue a warning if not properly set. In a future release we may
raise an error instead.

Fixes #2189.
2021-05-17 09:44:28 -04:00
Waylan Limberg
e2a3480735 Remove hard dependency on lunr.py (#2402)
Begin deprecation of 'python' option of 'plugins.search.prebuild_index'.
2021-05-13 15:20:35 -04:00
Álvaro Mondéjar
a8ec4b64a3 Add 'es' themes translations
Document that, when a new translation is added for a theme, the documentation about the theme must be updated.
2021-05-07 09:57:19 -04:00
Ultrabug
e1b77ab66e Support theme localization
A framework for translating themes as been added, which includes:

1. Use of Jinja's `i18n` plugin for translating phrases in templates (not page content).
2. A French translation of the built-in themes (contributions in other languages are welcome).
3. A new `theme.locale` option to define the locale/language of the site.
4. The search plugin uses the value of `theme.locale` as its default 'lang'.
5. Third party themes may chose to use the framework (use is optional).
6. A documented workflow for translating MkDocs built-in themes.
7. Custom tooling for use by translators and theme devs.

The dependencies are not installed by default and are not needed to use MkDocs without translations. However, for anyone who wants to make use of the features, `pip install mkdocs[i18n]` will install all necessary dependencies.

Relates to #211.
2021-05-06 14:30:21 -04:00
Waylan Limberg
cb85d48851 Improve CLI textwrapping
* Account for user's actual terminal width
* Skip wrapping if not in a terminal
* Preserve whitespace
* Avoid breaking long words and on hyphens
2021-04-20 10:24:30 -04:00
Waylan Limberg
d038223e7a Identify homepage when use_directory_urls is False
Fixes #2363.
2021-04-14 21:35:31 -04:00
Waylan Limberg
6a694fd87b Refactor Logging and Error handling
Provide for better reporting to users, make for easier maintenance going forward, and allow future expandability. The following major changes were made:

1. The logging config is now defined in a way which will allow future expandability. For example, we could add additional levels of `strict` or `verbosity` (see  #1756) . All log messages are fed to a single log, which has two handlers (one for strict mode and one for verbosity). All level restrictions are defined per handler so that one restriction does not interfere with another. As filters do not have a level assigned to them, the previous count filter is now a nullhandler which counts all messages is receives (restricted only by level). The previous filter still exists (as a do-nothing instance) for any third-party plugins which called it. Those plugins should remove the call going forward.
2. A new exception `mkdocs.exceptions.Abort` was added. Rather than calling `SystemExit`, we now call `Abort`, which is a custom `click` exception that aborts with a readable error message and no traceback. Where appropriate, we catch errors, log them, and then call `Abort`. This allows us to remove all error handling from the CLI code and include it where errors originate from. Of course, as previously, unanticipated errors will still generate a traceback to allow debugging.
3. Log formatting has been improved. All log messages are now hard wrapped and indented for easier reading and color is used to identify each by type. Note that colors are only used to highlight errors, warnings and debug messages. Under normal operation with no issues, the user will not see any color.
2021-04-14 16:09:25 -04:00
Matthew McMillan
0da7f72478 Update lunr and lunr.js to 0.5.9 and 2.3.9 (#2359) 2021-04-10 20:04:44 -04:00
Waylan Limberg
6218e524b5 Correct docs if page template context var
Fixes #1736.
2021-04-10 19:31:14 -04:00
Waylan Limberg
d99419ac44 Ensure site_url ends with a slash
`urlparse(config['site_url']).path` can be empty if `site_url` does not end
in a slash. This ensures at least a slash is returned. Config validation
will add the slash if it is missing. Fixes #1785.
2021-04-10 18:43:13 -04:00