<commit_before>.. changes:

Changes
=======

5.0.0
-----

TODO
====

* In Logya create: copy content from base site first and then selected theme.
* Rename site to theme.
* Rename site option to theme or remove option and sites dir to themes. The current option name site is less clear.
* Document noindex usage for docs.

This release includes several backwards incompatible changes, most notably it drops Python 2 support.

* Rename the `deploy` directory to `public` and the attribute `dir_deploy` to `dir_public`.
* Avoid "OSError: [Errno 98] Address already in use" by allowing address reuse.
* Only rebuilt the index in serve mode when a requested URL is not in the index.
* The template to use for a file in content must be specified as the header attribute `template`.
* FIXME document breaking change from dir_*
* FIXME document special attributes: body, url, template, title

4.7.1
-----

* Only build index for directory and HTML page requests on serve mode.

4.7.0
-----

The last release in the 4.x series that adds new features.

* Call strip on given path first in ``slugify``.
* Add ``doc_index`` function in ``template.py``.<commit_msg>Add attrs to document<commit_after>.. changes:

Changes
=======

5.0.0
-----

TODO
====

* In Logya create: copy content from base site first and then selected theme.
* Rename site to theme.
* Rename site option to theme or remove option and sites dir to themes. The current option name site is less clear.
* Document noindex usage for docs.

This release includes several backwards incompatible changes, most notably it drops Python 2 support.

* Rename the `deploy` directory to `public` and the attribute `dir_deploy` to `dir_public`.
* Avoid "OSError: [Errno 98] Address already in use" by allowing address reuse.
* Only rebuilt the index in serve mode when a requested URL is not in the index.
* The template to use for a file in content must be specified as the header attribute `template`.
* FIXME document breaking change from dir_*
* FIXME document special attributes: body, url, template, title, created, updated

4.7.1
-----

* Only build index for directory and HTML page requests on serve mode.

4.7.0
-----

The last release in the 4.x series that adds new features.

* Call strip on given path first in ``slugify``.
* Add ``doc_index`` function in ``template.py``.
{'fraction_non_alphanumeric': 0.08747855917667238, 'fraction_numerical': 0.011149228130360206, 'mean_word_length': 3.840248962655602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3692728', 'n_tokens_mistral': 644, 'n_tokens_neox': 621, 'n_words': 346}