Zum Inhalt springen

MkDocs Release Notes

Einträge
15
Quellen
1
Zuletzt aktualisiert

Folge MkDocs, um die Release Notes in deinen Feed zu holen.

MkDocs

MkDocs 1.6.1

Behebt Build-Fehler bei bestimmten Umgebungsvariablen und leeren Konfigurationsdateien, verbessert die Kompatibilität und fügt Übersetzungen für Niederländisch und Chinesisch (vereinfacht) hinzu.

Version 1.6.1 (Friday 30th August, 2024)

Fixed

  • Fix build error when environment variable SOURCE_DATE_EPOCH=0 is set. #3795
  • Fix build error when mkdocs_theme.yml config is empty. #3700
  • Support python -W and PYTHONWARNINGS instead of overriding the configuration. #3809
  • Support running with Docker under strict mode, by removing 0.0.0.0 dev server warning. #3784
  • Drop unnecessary changefreq from sitemap.xml. #3629
  • Fix JavaScript console error when closing menu dropdown. #3774
  • Fix JavaScript console error that occur on repeated clicks. #3730
  • Fix JavaScript console error that can occur on dropdown selections. #3694

Added

  • Added translations for Dutch. #3804
  • Added and updated translations for Chinese (Simplified). #3684

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.6.0

Die lokale Vorschau reagiert nicht mehr bei vielen geöffneten Tabs, es gibt eine neue Option zum Öffnen im Browser, und die Draft-Funktion wird überarbeitet.

Local preview

  • mkdocs serve no longer locks up the browser when more than 5 tabs are open. This is achieved by closing the polling connection whenever a tab becomes inactive. Background tabs will no longer auto-reload either - that will instead happen as soon the tab is opened again. Context: #3391

  • New flag serve --open to open the site in a browser.
    After the first build is finished, this flag will cause the default OS Web browser to be opened at the home page of the local site.
    Context: #3500

Drafts

[!warning] Changed from version 1.5:

The exclude_docs config was split up into two separate concepts.

The exclude_docs config no longer has any special behavior for mkdocs serve - it now always completely excludes the listed documents from the site.

If you wish to use the "drafts" functionality like the exclude_docs key used to do in MkDocs 1.5, please switch to the new config key draft_docs.

See documentation.

Other changes:

  • Reduce warning levels when a "draft" page has a link to a non-existent file. Context: #3449

Update to deduction of page titles

MkDocs 1.5 had a change in behavior in deducing the page titles from the first heading. Unfortunately this could cause unescaped HTML tags or entities to appear in edge cases. …

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.5.3

Behebt ein Problem, bei dem der lokale Server alle Browser-Tabs blockierte, und fügt viele neue Sprachen für die Suche hinzu.

  • Fix mkdocs serve sometimes locking up all browser tabs when navigating quickly (#3390)

  • Add many new supported languages for "search" plugin - update lunr-languages to 1.12.0 (#3334)

  • Bugfix (regression in 1.5.0): In "readthedocs" theme the styling of "breadcrumb navigation" was broken for nested pages (#3383)

  • Built-in themes now also support Chinese (Traditional, Taiwan) language (#3370)

  • Plugins can now set File.page to their own subclass of Page. There is also now a warning if File.page is set to anything other than a strict subclass of Page. (#3367, #3381)

    Note that just instantiating a Page sets the file automatically, so care needs to be taken not to create an unneeded Page.

Other small improvements; see commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.5.2

Stellt die Funktion der Option '--no-livereload' wieder her und behebt einen Fehler bei der Erkennung von Seitentiteln.

  • Bugfix (regression in 1.5.0): Restore functionality of --no-livereload. (#3320)

  • Bugfix (regression in 1.5.0): The new page title detection would sometimes be unable to drop anchorlinks - fix that. (#3325)

  • Partly bring back pre-1.5 API: extra_javascript items will once again be mostly strings, and only sometimes ExtraStringValue (when the extra script functionality is used).

    Plugins should be free to append strings to config.extra_javascript, but when reading the values, they must still make sure to read it as str(value) in case it is an ExtraScriptValue item. For querying the attributes such as .type you need to check isinstance first. Static type checking will guide you in that. (#3324)

See commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.5.1

Behebt einen Fehler, der einige Plugins nach der Umstellung auf ExtraScriptValue betraf, und verhindert Fehler bei bestimmten Dateikonflikten.

  • Bugfix (regression in 1.5.0): Make it possible to treat ExtraScriptValue as a path. This lets some plugins still work despite the breaking change.

  • Bugfix (regression in 1.5.0): Prevent errors for special setups that have 3 conflicting files, such as index.html, index.md and README.md (#3314)

See commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.5.0

Führt Befehle zur Abhängigkeitserkennung ein, ermöglicht Spenden und enthält vielseitige Verbesserungen, einschließlich neuer Konfigurationsoptionen.

New: MkDocs now accepts donations. Please consider supporting the current maintainer at my new GitHub sponsorship page.

MkDocs has been a totally free project since the beginning and wasn't accepting funds. MkDocs will remain free of paywalls, but now you can show your support with donations (one-time and/or recurring).

Donate for MkDocs - @oprypin sponsors page

And please also consider these other individuals who have been contributing to the ecosystem for a long time and check out their donations pages:

@facelessuser @pawamoy @Ultrabug


Release 1.5.0

New command mkdocs get-deps

This command guesses the Python dependencies that a MkDocs site requires in order to build. It simply prints the PyPI packages that need to be installed. In the terminal it can be combined directly with an installation command as follows:

pip install $(mkdocs get-deps)

The idea is that right after running this command, you can directly follow it up with mkdocs build and it will almost always "just work", without needing to think which dependencies to install.

The way it works is by scanning mkdocs.yml for themes:, plugins:, markdown_extensions: items and doing a reverse lookup based on a large list of known projects (catalog, see below). …

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.4.3

Behebt Probleme mit Hooks und leeren Sitemap-Einträgen, verbessert die Barrierefreiheit des Read-the-Docs-Themes und fügt indonesische Übersetzungen hinzu.

  • Bugfix: for the hooks feature, modules no longer fail to load if using some advanced Python features like dataclasses (#3193)

  • Bugfix: Don't create None sitemap entries if the page has no populated URL - affects sites that exclude some files from navigation (07a297b)

  • "readthedocs" theme:

    • Accessibility: add aria labels to Home logo (#3129) and search inputs (#3046)
    • "readthedocs" theme now supports hljs_style: config, same as "mkdocs" theme (#3199)
  • Translations:

    • Built-in themes now also support Indonesian language (#3154)
    • Fixed zh_CN translation (#3125)
    • tr_TR translation becomes just tr - usage should remain unaffected (#3195)

See commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.4.2

Offizielle Unterstützung für Python 3.11, mehrere Instanzen desselben Plugins sind möglich, und relative Links erhalten immer einen abschließenden Schrägstrich.

  • Officially support Python 3.11 (#3020)

    Note: Simply upgrading to Python 3.11 can cut off 10-15% of your site's build time.

  • Support multiple instances of the same plugin (#3027)

    If a plugin is specified multiple times in the list under the plugins: config, that will create 2 (or more) instances of the plugin with their own config each.

    Previously this case was unforeseen and, as such, bugged.

    Now even though this works, by default a warning will appear from MkDocs anyway, unless the plugin adds a class variable supports_multiple_instances = True.

  • Bugfix (regression in 1.4.1): Don't error when a plugin puts a plain string into warnings (#3016)

  • Bugfix: Relative links will always render with a trailing slash (#3022)

    Previously under use_directory_urls, links from a sub-page to the main index page rendered as e.g. <a href="../.."> even though in all other cases the links look like <a href="../../">. This caused unwanted behavior on some combinations of Web browsers and servers. Now this special-case bug was removed.

  • Built-in "mkdocs" theme now also supports Norwegian language (#3024)

  • Plugin-related warnings look more readable (#3016)

See commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.4.1

Unterstützt theme-namespaced Plugins, korrigiert Probleme mit nicht-ASCII-Pfaden im lokalen Server und verbessert die Plugin-Konfigurationsvalidierung.

  • Support theme-namespaced plugin loading (#2998)

    Plugins' entry points can be named as 'sometheme/someplugin'. That will have the following outcome:

    • If the current theme is 'sometheme', the plugin 'sometheme/someplugin' will always be preferred over 'someplugin'.
    • If the current theme isn't 'sometheme', the only way to use this plugin is by specifying plugins: [sometheme/someplugin].

    One can also specify plugins: ['/someplugin'] instead of plugins: ['someplugin'] to definitely avoid the theme-namespaced plugin.

  • Bugfix: mkdocs serve will work correctly with non-ASCII paths and redirects (#3001)

  • Windows: 'colorama' is now a dependency of MkDocs, to ensure colorful log output (#2987)

  • Plugin-related config options have more reliable validation and error reporting (#2997)

  • Translation sub-commands of setup.py were completely dropped. See documentation [1] [2] for their new replacements (#2990)

  • The 'mkdocs' package (wheel and source) is now produced by Hatch build system and pyproject.toml instead of setup.py (#2988)

Other small improvements; see commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.4.0 mit Hooks und edit_uri_template

MkDocs 1.4.0 führt die Konfiguration hooks: für plugin-ähnliche Event-Handler aus lokalen Python-Dateien ein und erweitert die Flexibilität von edit_uri durch die neue Option edit_uri_template.

Feature upgrades

Hooks (#2978)

The new hooks: config allows you to add plugin-like event handlers from local Python files, without needing to set up and install an actual plugin.

See documentation.

edit_uri flexibility (#2927)

There is a new edit_uri_template: config.
It works like edit_uri but more generally covers ways to construct an edit URL.
See documentation.

Additionally, the edit_uri functionality will now fully work even if repo_url is omitted (#2928)

Upgrades for plugin developers

Note: this release has big changes to the implementation of plugins and their configs. But, the intention is to have zero breaking changes in all reasonably common use cases. Or at the very least if a code fix is required, there should always be a way to stay compatible with older MkDocs versions. Please report if this release breaks something.

Customize event order for plugin event handlers (#2973)

Plugins can now choose to set a priority value for their event handlers. This can override the old behavior where for each event type, the handlers are called in the order that their plugins appear in the plugins config. …

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.3.1 behebt Fehler und schränkt Markdown-Version ein

MkDocs 1.3.1 fixiert die Python-Markdown-Version auf <3.4, verbessert die Fehlerausgabe bei nicht ladbaren Erweiterungen, behebt Bugs im readthedocs-Theme und erkennt nun auch Dateien wie readme.md korrekt, zusätzlich wird Italienisch unterstützt.

  • Pin Python-Markdown version to <3.4, thus excluding its latest release that breaks too many external extensions (#2893)

  • When a Markdown extension fails to load, print its name and traceback (#2894)

  • Bugfix for "readthedocs" theme (regression in 1.3.0): add missing space in breadcrumbs (#2810)

  • Bugfix: don't complain when a file "readme.md" (lowercase) exists, it's not recognized otherwise (#2852)

  • Built-in themes now also support these languages:

    • Italian (#2860)

Other small improvements; see commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.3.0 mit Theme-Updates und neuen Optionen

MkDocs 1.3.0 aktualisiert das ReadTheDocs-Theme auf v1.0.0 mit neuen Optionen wie logo und anonymize_ip, unterstützt Deutsch und Persisch, erlaubt benutzerdefinierte Verzeichnisse für mkdocs serve und behebt eine XSS-Sicherheitslücke.

Feature upgrades

  • ReadTheDocs theme updated from v0.4.1 to v1.0.0 according to upstream (#2585)

    The most notable changes:

    • New option logo: Rather than displaying the site_name in the title, one can specify a path to an image to display instead.
    • New option anonymize_ip for Google Analytics.
    • Dependencies were upgraded: jQuery upgraded to 3.6.0, Modernizr.js dropped, and others.

    See documentation of config options for the theme

  • Built-in themes now also support these languages:

    • German (#2633)
    • Persian (Farsi) (#2787)
  • Support custom directories to watch when running mkdocs serve (#2642)

    MkDocs by default watches the docs directory and the config file. Now there is a way to add more directories to watch for changes, either via the YAML watch key or the command line flag --watch.

    Normally MkDocs never reaches into any other directories (so this feature shouldn't be necessary), but some plugins and extensions may do so.

    See documentation.

  • New --no-history option for gh_deploy (#2594)

    Allows to discard the history of commits when deploying, and instead replace it with one root commit

Bug fixes

  • An XSS vulnerability when using the search function in built-in themes was fixed (#2791) …

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.2.4 für Jinja2-Kompatibilität

MkDocs 1.2.4 stellt die Kompatibilität mit Jinja2 3.1.0 her und behebt damit den Absturz mit der Fehlermeldung AttributeError: module 'jinja2' has no attribute 'contextfilter'.

  • Compatibility with Jinja2 3.1.0 (#2800)

    Due to a breaking change in Jinja2, MkDocs would crash with the message AttributeError: module 'jinja2' has no attribute 'contextfilter'

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.2.3 mit Sprachverbesserungen

MkDocs 1.2.3 unterstützt neue Sprachen wie Chinesisch, Japanisch, Portugiesisch und Spanisch, lässt Drittanbieter-Plugins Vorrang vor eingebauten haben und behebt mehrere Fehlerbehebungen.

MkDocs 1.2.3 is a bugfix release for MkDocs 1.2.

Aside: MkDocs has a new chat room on Gitter/Matrix. More details.

Improvements:

  • Built-in themes now also support these languages:

    • Simplified Chinese (#2497)
    • Japanese (#2525)
    • Brazilian Portuguese (#2535)
    • Spanish (#2545, previously #2396)
  • Third-party plugins will take precedence over built-in plugins with the same name (#2591)

  • Bugfix: Fix ability to load translations for some languages: core support (#2565) and search plugin support with fallbacks (#2602)

  • Bugfix (regression in 1.2): Prevent directory traversal in the dev server (#2604)

  • Bugfix (regression in 1.2): Prevent webserver warnings from being treated as a build failure in strict mode (#2607)

  • Bugfix: Correctly print colorful messages in the terminal on Windows (#2606)

  • Bugfix: Python version 3.10 was displayed incorrectly in --version (#2618)

Other small improvements; see commit log.

Originalquelle(öffnet in neuem Tab)Problem melden

MkDocs

MkDocs 1.2.2 mit Bugfixes für 1.2

MkDocs 1.2.2 behebt Regressionen aus Version 1.2, darunter Probleme mit Unicode-Pfaden, Dateiüberwachung, site_url-Anforderungen und Breadcrumb-Darstellung, und verbessert die Build-Leistung.

MkDocs 1.2.2 is a bugfix release for MkDocs 1.2 -- make sure you've seen the "major" release notes as well.

  • Bugfix (regression in 1.2): Fix serving files/paths with Unicode characters (#2464)

  • Bugfix (regression in 1.2): Revert livereload file watching to use polling observer (#2477)

    This had to be done to reasonably support usages that span virtual filesystems such as non-native Docker and network mounts.

    This goes back to the polling approach, very similar to that was always used prior, meaning most of the same downsides with latency and CPU usage.

  • Revert from 1.2: Remove the requirement of a site_url config and the restriction on use_directory_urls (#2490)

  • Bugfix (regression in 1.2): Don't require trailing slash in the URL when serving a directory index in mkdocs serve server (#2507)

    Instead of showing a 404 error, detect if it's a directory and redirect to a path with a trailing slash added, like before.

  • Bugfix: Fix gh_deploy with config-file in the current directory (#2481)

  • Bugfix: Fix reversed breadcrumbs in "readthedocs" theme (#2179)

  • Allow "mkdocs.yaml" as the file name when '--config' is not passed (#2478)

  • Stop treating ";" as a special character in URLs: urlparse -> urlsplit (#2502)

  • Improve build performance for sites with many pages (partly already done in 1.2) (#2407)

Originalquelle(öffnet in neuem Tab)Problem melden