Commit Graph

8 Commits

Author SHA1 Message Date
Oleh Prypin
90e85f9fae Enforce 'mypy' type checker, add py.typed (#2941) 2022-08-21 18:51:17 +02:00
Oleh Prypin
54db3df2e7 Fix deprecated field in setuptools (#2933)
> The license_file parameter is deprecated, use license_files instead.
2022-08-15 17:36:48 +02:00
Oleh Prypin
a66a7ba474 Enforce 'isort' formatter 2022-08-08 21:42:39 +02:00
Oleh Prypin
58a99e5b38 Enforce Black formatter 2022-08-07 20:25:35 +02: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
fef8a89ba2 Ensure bdist_wheel no longer creates a universal wheel
MkDocs no longer suports Python 2. Therefore, a universal wheel would be
innapropriate as it results in `py2.py3`.
2020-03-11 09:40:19 -04:00
Jon Dufresne
a2d4241658 Include license file in the generated wheel package
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:

https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file

Helps project comply with its own license:

> Redistributions in binary form must reproduce the above copyright
> notice, this list of conditions and the following disclaimer in the
> documentation and/or other materials provided with the distribution.

Additionally, rename [wheel] section to [bdist_wheel] as the former is
legacy. For additional details, see:

3dc261abc9/wheel/bdist_wheel.py (L127-L133)

http://pythonwheels.com/
2018-09-18 09:33:27 -04:00
Dougal Matthews
727905e5a5 Add universal = 1 for wheels 2015-04-21 16:57:32 +01:00