mkdocs-recently-updated-docs 1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mkdocs_recently_updated_docs-1.3/LICENSE +22 -0
- mkdocs_recently_updated_docs-1.3/PKG-INFO +85 -0
- mkdocs_recently_updated_docs-1.3/README.md +68 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs/__init__.py +0 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs/plugin.py +62 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs/templates/recently_updated_card.html +48 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs/templates/recently_updated_list.html +42 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs.egg-info/PKG-INFO +85 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs.egg-info/SOURCES.txt +13 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs.egg-info/dependency_links.txt +1 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs.egg-info/entry_points.txt +2 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs.egg-info/requires.txt +2 -0
- mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs.egg-info/top_level.txt +1 -0
- mkdocs_recently_updated_docs-1.3/pyproject.toml +32 -0
- mkdocs_recently_updated_docs-1.3/setup.cfg +4 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Aaron Wang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mkdocs-recently-updated-docs
|
|
3
|
+
Version: 1.3
|
|
4
|
+
Summary: A MkDocs plugin to show recently updated documents
|
|
5
|
+
Author-email: Aaron Wang <aaronwqt@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/jaywhj/mkdocs-recently-updated-docs
|
|
8
|
+
Project-URL: Documentation, https://jaywhj.netlify.app/document-dates-en
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: mkdocs>=1.1.0
|
|
15
|
+
Requires-Dist: mkdocs_document_dates>=3.5
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# mkdocs-recently-updated-docs
|
|
19
|
+
|
|
20
|
+
English | [简体中文](README_zh.md)
|
|
21
|
+
|
|
22
|
+
<br />
|
|
23
|
+
|
|
24
|
+
Display a list of recently updated documents anywhere on your MkDocs site with a single line of code. This is ideal for sites with a large number of documents, so that readers can quickly see what's new.
|
|
25
|
+
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
- Display recently updated documents in descending order of update time
|
|
29
|
+
- Support exclude specified files or folders
|
|
30
|
+
- Support custom display quantity
|
|
31
|
+
- Support custom rendering template
|
|
32
|
+
- Works well for any environment (no-Git, Git, Docker, all CI/CD build systems, etc.)
|
|
33
|
+
|
|
34
|
+
## Preview
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install mkdocs-recently-updated-docs
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Configuration
|
|
45
|
+
|
|
46
|
+
Just add the plugin to your `mkdocs.yml`:
|
|
47
|
+
|
|
48
|
+
```yaml
|
|
49
|
+
plugins:
|
|
50
|
+
- recently-updated
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or, full configuration:
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
plugins:
|
|
57
|
+
- recently-updated:
|
|
58
|
+
limit: 10 # Limit the number of docs displayed
|
|
59
|
+
exclude: # List of excluded files
|
|
60
|
+
- index.md # Exclude specific file
|
|
61
|
+
- blog/* # Exclude all files in blog folder, including subfolders
|
|
62
|
+
template: templates/recently_updated_list.html # Custom rendering template
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Usage
|
|
66
|
+
|
|
67
|
+
Simply write this line anywhere in your md document:
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
<!-- RECENTLY_UPDATED_DOCS -->
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Custom template
|
|
74
|
+
|
|
75
|
+
See [templates](https://github.com/jaywhj/mkdocs-recently-updated-docs/tree/main/mkdocs_recently_updated_docs/templates) directory
|
|
76
|
+
|
|
77
|
+
<br />
|
|
78
|
+
|
|
79
|
+
## Other plugins
|
|
80
|
+
|
|
81
|
+
[mkdocs-document-dates](https://github.com/jaywhj/mkdocs-document-dates)
|
|
82
|
+
|
|
83
|
+
A new generation MkDocs plugin for displaying exact **creation date, last updated date, authors, email** of documents
|
|
84
|
+
|
|
85
|
+

|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# mkdocs-recently-updated-docs
|
|
2
|
+
|
|
3
|
+
English | [简体中文](README_zh.md)
|
|
4
|
+
|
|
5
|
+
<br />
|
|
6
|
+
|
|
7
|
+
Display a list of recently updated documents anywhere on your MkDocs site with a single line of code. This is ideal for sites with a large number of documents, so that readers can quickly see what's new.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- Display recently updated documents in descending order of update time
|
|
12
|
+
- Support exclude specified files or folders
|
|
13
|
+
- Support custom display quantity
|
|
14
|
+
- Support custom rendering template
|
|
15
|
+
- Works well for any environment (no-Git, Git, Docker, all CI/CD build systems, etc.)
|
|
16
|
+
|
|
17
|
+
## Preview
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install mkdocs-recently-updated-docs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Configuration
|
|
28
|
+
|
|
29
|
+
Just add the plugin to your `mkdocs.yml`:
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
plugins:
|
|
33
|
+
- recently-updated
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Or, full configuration:
|
|
37
|
+
|
|
38
|
+
```yaml
|
|
39
|
+
plugins:
|
|
40
|
+
- recently-updated:
|
|
41
|
+
limit: 10 # Limit the number of docs displayed
|
|
42
|
+
exclude: # List of excluded files
|
|
43
|
+
- index.md # Exclude specific file
|
|
44
|
+
- blog/* # Exclude all files in blog folder, including subfolders
|
|
45
|
+
template: templates/recently_updated_list.html # Custom rendering template
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
Simply write this line anywhere in your md document:
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
<!-- RECENTLY_UPDATED_DOCS -->
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Custom template
|
|
57
|
+
|
|
58
|
+
See [templates](https://github.com/jaywhj/mkdocs-recently-updated-docs/tree/main/mkdocs_recently_updated_docs/templates) directory
|
|
59
|
+
|
|
60
|
+
<br />
|
|
61
|
+
|
|
62
|
+
## Other plugins
|
|
63
|
+
|
|
64
|
+
[mkdocs-document-dates](https://github.com/jaywhj/mkdocs-document-dates)
|
|
65
|
+
|
|
66
|
+
A new generation MkDocs plugin for displaying exact **creation date, last updated date, authors, email** of documents
|
|
67
|
+
|
|
68
|
+

|
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
from jinja2 import Environment, FileSystemLoader, select_autoescape
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from mkdocs.plugins import BasePlugin
|
|
4
|
+
from mkdocs.config import config_options
|
|
5
|
+
from mkdocs_document_dates.utils import load_git_last_updated_date, get_recently_updated_files
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RecentlyUpdatedPlugin(BasePlugin):
|
|
9
|
+
config_scheme = (
|
|
10
|
+
('limit', config_options.Type(int, default=10)),
|
|
11
|
+
('exclude', config_options.Type(list, default=[])),
|
|
12
|
+
('template', config_options.Type(str, default=''))
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
def __init__(self):
|
|
16
|
+
super().__init__()
|
|
17
|
+
|
|
18
|
+
self.recent_docs_html = None
|
|
19
|
+
|
|
20
|
+
def on_env(self, env, config, files):
|
|
21
|
+
limit = self.config.get('limit')
|
|
22
|
+
exclude_list = self.config.get('exclude')
|
|
23
|
+
template_path = self.config.get('template')
|
|
24
|
+
|
|
25
|
+
docs_dir = Path(config['docs_dir'])
|
|
26
|
+
git_updated_dates = load_git_last_updated_date(docs_dir)
|
|
27
|
+
recently_updated_data = get_recently_updated_files(git_updated_dates, files, exclude_list, limit, True)
|
|
28
|
+
|
|
29
|
+
# 渲染HTML
|
|
30
|
+
self.recent_docs_html = self._render_recently_updated_html(docs_dir, template_path, recently_updated_data)
|
|
31
|
+
|
|
32
|
+
return env
|
|
33
|
+
|
|
34
|
+
def _render_recently_updated_html(self, docs_dir, template_path, recently_updated_data):
|
|
35
|
+
# 获取自定义模板路径
|
|
36
|
+
if template_path:
|
|
37
|
+
user_full_path = docs_dir / template_path
|
|
38
|
+
|
|
39
|
+
# 选择模板路径
|
|
40
|
+
if template_path and user_full_path.is_file():
|
|
41
|
+
template_dir = user_full_path.parent
|
|
42
|
+
template_file = user_full_path.name
|
|
43
|
+
else:
|
|
44
|
+
# 默认模板路径
|
|
45
|
+
default_template_path = Path(__file__).parent / 'templates' / 'recently_updated_list.html'
|
|
46
|
+
template_dir = default_template_path.parent
|
|
47
|
+
template_file = default_template_path.name
|
|
48
|
+
|
|
49
|
+
# 加载模板
|
|
50
|
+
env = Environment(
|
|
51
|
+
loader = FileSystemLoader(str(template_dir)),
|
|
52
|
+
autoescape = select_autoescape(["html", "xml"])
|
|
53
|
+
)
|
|
54
|
+
template = env.get_template(template_file)
|
|
55
|
+
|
|
56
|
+
# 渲染模板
|
|
57
|
+
return template.render(recent_docs=recently_updated_data)
|
|
58
|
+
|
|
59
|
+
def on_post_page(self, output, page, config):
|
|
60
|
+
if '\n<!-- RECENTLY_UPDATED_DOCS -->' in output:
|
|
61
|
+
output = output.replace('\n<!-- RECENTLY_UPDATED_DOCS -->', self.recent_docs_html or '')
|
|
62
|
+
return output
|
mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs/templates/recently_updated_card.html
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
.recently-modified {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
5
|
+
gap: 10px;
|
|
6
|
+
margin: 20px 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
.recently-modified-item {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
padding: 0.5rem 0.75rem;
|
|
14
|
+
border: 1px solid rgba(142, 142, 142, 0.15);
|
|
15
|
+
border-radius: 8px;
|
|
16
|
+
min-height: 40px;
|
|
17
|
+
transition: box-shadow 0.2s ease;
|
|
18
|
+
}
|
|
19
|
+
.recently-modified-item:hover {
|
|
20
|
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
21
|
+
}
|
|
22
|
+
.recently-modified-item a {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
height: 100%;
|
|
27
|
+
flex: 1;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
word-break: break-word;
|
|
30
|
+
color: #0077cc;
|
|
31
|
+
}
|
|
32
|
+
.recently-modified-item span {
|
|
33
|
+
flex: 0 0 90px;
|
|
34
|
+
text-align: right;
|
|
35
|
+
color: rgba(142, 142, 142, 0.5);
|
|
36
|
+
font-size: 0.85rem;
|
|
37
|
+
}
|
|
38
|
+
.md-main .recently-modified-item span {
|
|
39
|
+
font-size: 0.7rem;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
42
|
+
<div class="recently-modified">
|
|
43
|
+
{%- for mtime, rel_path, title, url in recent_docs %}
|
|
44
|
+
<div class="recently-modified-item">
|
|
45
|
+
<a href="{{ url }}" target="_blank">{{ title }} <span>{{ mtime[:10] }}</span></a>
|
|
46
|
+
</div>
|
|
47
|
+
{%- endfor %}
|
|
48
|
+
</div>
|
mkdocs_recently_updated_docs-1.3/mkdocs_recently_updated_docs/templates/recently_updated_list.html
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
.recently-updated {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
5
|
+
gap: 10px;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 16px;
|
|
8
|
+
border: 1px solid rgba(142, 142, 142, 0.15);
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
font-family: system-ui, sans-serif;
|
|
11
|
+
}
|
|
12
|
+
.recently-updated-item {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
.recently-updated-item span {
|
|
17
|
+
font-size: 0.84em;
|
|
18
|
+
color: rgba(142, 142, 142, 0.5);
|
|
19
|
+
margin-right: 4px;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
width: 90px;
|
|
22
|
+
}
|
|
23
|
+
.recently-updated-item a {
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
color: #0077cc;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
transition: color 0.2s ease;
|
|
30
|
+
}
|
|
31
|
+
.recently-updated-item a:hover {
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
35
|
+
<div class="recently-updated">
|
|
36
|
+
{%- for mtime, rel_path, title, url in recent_docs %}
|
|
37
|
+
<div class="recently-updated-item">
|
|
38
|
+
<span>{{ mtime[:10] }}</span>
|
|
39
|
+
<a href="{{ url }}" target="_blank">{{ title }}</a>
|
|
40
|
+
</div>
|
|
41
|
+
{%- endfor %}
|
|
42
|
+
</div>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mkdocs-recently-updated-docs
|
|
3
|
+
Version: 1.3
|
|
4
|
+
Summary: A MkDocs plugin to show recently updated documents
|
|
5
|
+
Author-email: Aaron Wang <aaronwqt@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/jaywhj/mkdocs-recently-updated-docs
|
|
8
|
+
Project-URL: Documentation, https://jaywhj.netlify.app/document-dates-en
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: mkdocs>=1.1.0
|
|
15
|
+
Requires-Dist: mkdocs_document_dates>=3.5
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# mkdocs-recently-updated-docs
|
|
19
|
+
|
|
20
|
+
English | [简体中文](README_zh.md)
|
|
21
|
+
|
|
22
|
+
<br />
|
|
23
|
+
|
|
24
|
+
Display a list of recently updated documents anywhere on your MkDocs site with a single line of code. This is ideal for sites with a large number of documents, so that readers can quickly see what's new.
|
|
25
|
+
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
- Display recently updated documents in descending order of update time
|
|
29
|
+
- Support exclude specified files or folders
|
|
30
|
+
- Support custom display quantity
|
|
31
|
+
- Support custom rendering template
|
|
32
|
+
- Works well for any environment (no-Git, Git, Docker, all CI/CD build systems, etc.)
|
|
33
|
+
|
|
34
|
+
## Preview
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install mkdocs-recently-updated-docs
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Configuration
|
|
45
|
+
|
|
46
|
+
Just add the plugin to your `mkdocs.yml`:
|
|
47
|
+
|
|
48
|
+
```yaml
|
|
49
|
+
plugins:
|
|
50
|
+
- recently-updated
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or, full configuration:
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
plugins:
|
|
57
|
+
- recently-updated:
|
|
58
|
+
limit: 10 # Limit the number of docs displayed
|
|
59
|
+
exclude: # List of excluded files
|
|
60
|
+
- index.md # Exclude specific file
|
|
61
|
+
- blog/* # Exclude all files in blog folder, including subfolders
|
|
62
|
+
template: templates/recently_updated_list.html # Custom rendering template
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Usage
|
|
66
|
+
|
|
67
|
+
Simply write this line anywhere in your md document:
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
<!-- RECENTLY_UPDATED_DOCS -->
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Custom template
|
|
74
|
+
|
|
75
|
+
See [templates](https://github.com/jaywhj/mkdocs-recently-updated-docs/tree/main/mkdocs_recently_updated_docs/templates) directory
|
|
76
|
+
|
|
77
|
+
<br />
|
|
78
|
+
|
|
79
|
+
## Other plugins
|
|
80
|
+
|
|
81
|
+
[mkdocs-document-dates](https://github.com/jaywhj/mkdocs-document-dates)
|
|
82
|
+
|
|
83
|
+
A new generation MkDocs plugin for displaying exact **creation date, last updated date, authors, email** of documents
|
|
84
|
+
|
|
85
|
+

|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
mkdocs_recently_updated_docs/__init__.py
|
|
5
|
+
mkdocs_recently_updated_docs/plugin.py
|
|
6
|
+
mkdocs_recently_updated_docs.egg-info/PKG-INFO
|
|
7
|
+
mkdocs_recently_updated_docs.egg-info/SOURCES.txt
|
|
8
|
+
mkdocs_recently_updated_docs.egg-info/dependency_links.txt
|
|
9
|
+
mkdocs_recently_updated_docs.egg-info/entry_points.txt
|
|
10
|
+
mkdocs_recently_updated_docs.egg-info/requires.txt
|
|
11
|
+
mkdocs_recently_updated_docs.egg-info/top_level.txt
|
|
12
|
+
mkdocs_recently_updated_docs/templates/recently_updated_card.html
|
|
13
|
+
mkdocs_recently_updated_docs/templates/recently_updated_list.html
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mkdocs_recently_updated_docs
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=42", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mkdocs-recently-updated-docs"
|
|
7
|
+
version = "1.3"
|
|
8
|
+
authors = [
|
|
9
|
+
{name = "Aaron Wang", email = "aaronwqt@gmail.com"},
|
|
10
|
+
]
|
|
11
|
+
description = "A MkDocs plugin to show recently updated documents"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.7"
|
|
14
|
+
license = {text = "MIT"}
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
]
|
|
19
|
+
dependencies = [
|
|
20
|
+
"mkdocs>=1.1.0",
|
|
21
|
+
"mkdocs_document_dates>=3.5",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.entry-points."mkdocs.plugins"]
|
|
25
|
+
"recently-updated" = "mkdocs_recently_updated_docs.plugin:RecentlyUpdatedPlugin"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.package-data]
|
|
28
|
+
"mkdocs_recently_updated_docs" = ["templates/*"]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
"Homepage" = "https://github.com/jaywhj/mkdocs-recently-updated-docs"
|
|
32
|
+
"Documentation" = "https://jaywhj.netlify.app/document-dates-en"
|