You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix typo.
- Update the `.vscode/settings.json` example in `CONTRIBUTING.md`.
[Venv][venv-doc] uses `bin` on POSIX, but `Scripts` on Windows.
- Some tests won't pass without `requirements/documentation.txt`.
See also:
[4b1cfd](4b1cfdc)
adds `documentation.txt` into GitHub Actions.
For example, `test_simple_build` in `tests/test_build.py` builds
`mkdocs.yml`,
and its theme (mkdocs-bootswatch/united) is not covered in
`requirements/development.txt`.
```yaml
theme:
name: united
```
[venv-doc]:
https://docs.python.org/3.11/library/venv.html#how-venvs-work
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,8 +62,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
62
63
63
### Changed
64
64
65
-
* Minor improvments: clean unused imports, lines length and use fstrings in logging by @Guts in <https://github.com/Guts/mkdocs-rss-plugin/pull/143>
66
-
*Improvment: more granular fallback to build timestamp by @Guts in <https://github.com/Guts/mkdocs-rss-plugin/pull/144>
65
+
* Minor improvements: clean unused imports, lines length and use fstrings in logging by @Guts in <https://github.com/Guts/mkdocs-rss-plugin/pull/143>
66
+
*Improvement: more granular fallback to build timestamp by @Guts in <https://github.com/Guts/mkdocs-rss-plugin/pull/144>
67
67
68
68
## 1.3.0 - 2022-10-07
69
69
@@ -100,7 +100,7 @@ So, no feature in this release, just focusing on quality and code cleanliness.
100
100
### Fixed
101
101
102
102
* Minor bugs fixes
103
-
* Minor documentation improvments
103
+
* Minor documentation improvements
104
104
105
105
----
106
106
@@ -157,7 +157,7 @@ So, no feature in this release, just focusing on quality and code cleanliness.
157
157
158
158
### Added
159
159
160
-
* option to get the full page content into thed. Contributed by [liang2kl](https://github.com/liang2kl) with [PR 88](https://github.com/Guts/mkdocs-rss-plugin/pull/88). See the [related documentation section](https://guts.github.io/mkdocs-rss-plugin/configuration/#item-description-length).
160
+
* option to get the full page content into thread. Contributed by [liang2kl](https://github.com/liang2kl) with [PR 88](https://github.com/Guts/mkdocs-rss-plugin/pull/88). See the [related documentation section](https://guts.github.io/mkdocs-rss-plugin/configuration/#item-description-length).
161
161
162
162
### Changed
163
163
@@ -333,7 +333,7 @@ So, no feature in this release, just focusing on quality and code cleanliness.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Make sure your code *roughly* follows [PEP-8](https://www.python.org/dev/peps/pe
17
17
- docstrings: [sphinx-style](https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html#the-sphinx-docstring-format) is used to write technical documentation.
18
18
- formatting: [black](https://black.readthedocs.io/) is used to automatically format the code without debate.
19
19
- sorted imports: [isort](https://pycqa.github.io/isort/) is used to sort imports
20
-
- static analisis: [flake8](https://flake8.pycqa.org/en/latest/) is used to catch some dizziness and keep the source code healthy.
20
+
- static analysis: [flake8](https://flake8.pycqa.org/en/latest/) is used to catch some dizziness and keep the source code healthy.
21
21
22
22
----
23
23
@@ -30,6 +30,8 @@ Feel free to use the IDE you love. Here come configurations for some popular IDE
Copy file name to clipboardExpand all lines: docs/configuration.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ To produce a valid RSS feed, the plugin uses:
27
27
|[`site_name`](https://www.mkdocs.org/user-guide/configuration/#site_name)|**required**|[`title`](https://www.w3schools.com/xml/rss_tag_title_link_description_channel.asp) and also as [`source` URL label](https://www.w3schools.com/xml/rss_tag_source.asp) for each feed item |
|[`locale` or `theme/locale` or `theme/language`](https://github.com/squidfunk/mkdocs-material/issues/1350#issuecomment-559095892)|*optional*|[`language`](https://www.w3schools.com/xml/rss_tag_language.asp)|
@@ -51,7 +51,7 @@ Basically, each page is an item element in the RSS feed.
51
51
|[`page.canonical_url`](https://github.com/mkdocs/mkdocs/blob/master/mkdocs/structure/pages.py#L97-L105)|**required** and *optional*| mandatory item element [`link`](https://www.w3schools.com/xml/rss_tag_title_link_description_item.asp) and also used as [`guid`](https://www.w3schools.com/xml/rss_tag_guid.asp)|
|[`page.meta.description`](https://www.mkdocs.org/user-guide/writing-your-docs/#yaml-style-meta-data) if present, else extract headlines from the content. See below the [item_description_length option](/configuration/#item-description-length). |**required**|[`description`](https://www.w3schools.com/xml/rss_tag_title_link_description_item.asp)|
54
-
| creation or last update datetime according git log. Can be overridden by dates in page.meta. If not, then it uses [MkDcos build date](https://github.com/mkdocs/mkdocs/blob/master/mkdocs/utils/__init__.py#L111-L118)|**recomended**|[`pubDate`](https://www.w3schools.com/xml/rss_tag_pubdate_item.asp)|
54
+
| creation or last update datetime according git log. Can be overridden by dates in page.meta. If not, then it uses [MkDocs build date](https://github.com/mkdocs/mkdocs/blob/master/mkdocs/utils/__init__.py#L111-L118)|**recommended**|[`pubDate`](https://www.w3schools.com/xml/rss_tag_pubdate_item.asp)|
55
55
|[`page.meta.image`](https://www.mkdocs.org/user-guide/writing-your-docs/#yaml-style-meta-data)|*optional*| item element [`enclosure`](https://www.w3schools.com/xml/rss_tag_enclosure.asp). Some HTTP requests can be performed to retrieve remote images length. |
56
56
|[`page.meta.authors`](https://www.mkdocs.org/user-guide/writing-your-docs/#yaml-style-meta-data) or `page.meta.author`. Accepted value types: `str``list`, `tuple`. <br />To comply with the standard, the page writer is responsible to fill this field following this syntax: `[email protected] (John Doe)` ([read this SO](https://stackoverflow.com/a/6079731/2556577)). |*optional*|[`author`](https://www.w3schools.com/XML/rss_tag_author.asp)|
57
57
|[`page.meta.tags`](https://www.mkdocs.org/user-guide/writing-your-docs/#yaml-style-meta-data) or any tags value (for example `page.meta.categories`...). Accepted value types: `str``list`. |*optional*|[`category`](https://www.w3schools.com/xml/rss_tag_category_item.asp)|
@@ -219,7 +219,7 @@ To fill each [item description element](https://www.w3schools.com/xml/rss_tag_ti
219
219
220
220
- If this value is set to `-1`, then the articles' full HTML content will be filled into the description element.
221
221
- Otherwise, the plugin first tries to retrieve the value of the keyword `description` from the [page metadata].
222
-
- If the value is non-negative and no `description` meta is found, then the plugin retrieves the first number of characters of the page content defined by this setting. Retrieved content is the raw markdown converted rougthly into HTML.
222
+
- If the value is non-negative and no `description` meta is found, then the plugin retrieves the first number of characters of the page content defined by this setting. Retrieved content is the raw markdown converted roughly into HTML.
223
223
224
224
`abstract_chars_count`: number of characters to use as item description.
225
225
@@ -299,7 +299,7 @@ So, it's possible to use the dates manually specified into the [page metadata] t
299
299
-`as_update`: meta tag name to use as update date. Default to `False`.
300
300
-`datetime_format`: datetime format. Default to `"%Y-%m-%d %H:%M"`.
301
301
-`default_timezone`: timezone to use by default to make aware datetimes. Default to `UTC`. Introduced in version 1.3.0 with [PR 142](https://github.com/Guts/mkdocs-rss-plugin/pull/142).
302
-
-`default_time`: time to use if page contains only a date. Useful to avoid the 'midnight syndrom' or have to specify hour in every single page. Default to `None`. 24h-clock format is expected: `%H:%M`. Example: `"14:20"`. Introduced in version 1.4.0 with [PR 145](https://github.com/Guts/mkdocs-rss-plugin/pull/145).
302
+
-`default_time`: time to use if page contains only a date. Useful to avoid the 'midnight syndrome' or have to specify hour in every single page. Default to `None`. 24h-clock format is expected: `%H:%M`. Example: `"14:20"`. Introduced in version 1.4.0 with [PR 145](https://github.com/Guts/mkdocs-rss-plugin/pull/145).
303
303
304
304
#### Example
305
305
@@ -417,7 +417,7 @@ Default: `None`.
417
417
418
418
### Reference RSS feeds in HTML meta-tags
419
419
420
-
To facilitate the discovery of RSS feeds, it's recomended to add relevant meta-tags into the pages `<head>`, through template customization in `main.html` :
420
+
To facilitate the discovery of RSS feeds, it's recommended to add relevant meta-tags into the pages `<head>`, through template customization in `main.html` :
0 commit comments