1.3.0
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 thesite_namein the title, one can specify a path to an image to display instead. - New option
anonymize_ipfor Google Analytics. - Dependencies were upgraded: jQuery upgraded to 3.6.0, Modernizr.js dropped, and others.
- New option
-
Built-in themes now also support these languages:
-
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
watchkey 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-historyoption forgh_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)
-
Setting the
edit_urioption no longer erroneously adds a trailing slash torepo_url(#2733)
Miscellaneous
-
Breaking change: the
pagesconfig option that was deprecated for a very long time now causes an error when used (#2652)To fix the error, just change from
pagestonav. -
Performance optimization: during startup of MkDocs, code and dependencies of other commands will not be imported (#2714)
The most visible effect of this is that dependencies of
mkdocs servewill not be imported whenmkdocs buildis used. -
Recursively validate
nav(#2680)Validation of the nested
navstructure has been reworked to report errors early and reliably. Some edge cases have been declared invalid.
Other small improvements; see commit log.