mkdocs-document-dates 2.3.1__tar.gz → 2.3.2__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_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/PKG-INFO +10 -10
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/README.md +9 -9
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/plugin.py +2 -2
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/PKG-INFO +10 -10
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/setup.py +1 -1
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/LICENSE +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/__init__.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/hooks/pre-commit +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/hooks_installer.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/__init__.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ar.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/de.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/en.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/es.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/fr.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ja.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ko.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ru.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/zh.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/zh_tw.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/styles.py +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/SOURCES.txt +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/dependency_links.txt +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/entry_points.txt +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/requires.txt +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/top_level.txt +0 -0
- {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: mkdocs-document-dates
|
3
|
-
Version: 2.3.
|
3
|
+
Version: 2.3.2
|
4
4
|
Summary: A MkDocs plugin for displaying accurate document creation and last modification dates.
|
5
5
|
Home-page: https://github.com/jaywhj/mkdocs-document-dates
|
6
6
|
Author: Aaron Wang
|
@@ -107,18 +107,18 @@ modified: 2025-02-23
|
|
107
107
|
|
108
108
|
## Notes
|
109
109
|
|
110
|
-
- It still works when using CI/CD build systems (e.g. Github Actions)
|
111
|
-
|
112
|
-
- You can configure it like this in your .github/workflows/ci.yml:
|
113
|
-
|
110
|
+
- It still works when using CI/CD build systems (e.g. Github Actions), used a cache file `.dates_cache.json` to solve this problem:
|
111
|
+
1. First, you can configure the workflow like this (penultimate line) in your .github/workflows/ci.yml:
|
114
112
|
```
|
115
113
|
...
|
116
114
|
|
117
|
-
|
118
|
-
|
115
|
+
- run: pip install mkdocs-document-dates
|
116
|
+
- run: mkdocs gh-deploy --force
|
119
117
|
```
|
120
|
-
|
121
|
-
|
118
|
+
2. Then update your Markdown document in MkDocs as normal
|
119
|
+
3. After running git add and git commit, you will see the auto-generated cache file .dates_cache.json (hidden by default) in the `docs` folder under MkDocs
|
120
|
+
- Make sure you have installed python3 ahead of time and set environment variables
|
121
|
+
4. Finally, run git push, and you can see that there are also .dates_cache.json files in the docs directory in the GitHub repository, which means success
|
122
122
|
- Priority of time reads:
|
123
|
-
|
123
|
+
- `Front Matter` > `Cache file` > `Filesystem timestamp`
|
124
124
|
- If you are using MkDocs on a Linux system, the modification time is used as the creation time because of system limitations. If you need the exact creation time, you can specify it manually in Front Matter
|
@@ -85,18 +85,18 @@ modified: 2025-02-23
|
|
85
85
|
|
86
86
|
## Notes
|
87
87
|
|
88
|
-
- It still works when using CI/CD build systems (e.g. Github Actions)
|
89
|
-
|
90
|
-
- You can configure it like this in your .github/workflows/ci.yml:
|
91
|
-
|
88
|
+
- It still works when using CI/CD build systems (e.g. Github Actions), used a cache file `.dates_cache.json` to solve this problem:
|
89
|
+
1. First, you can configure the workflow like this (penultimate line) in your .github/workflows/ci.yml:
|
92
90
|
```
|
93
91
|
...
|
94
92
|
|
95
|
-
|
96
|
-
|
93
|
+
- run: pip install mkdocs-document-dates
|
94
|
+
- run: mkdocs gh-deploy --force
|
97
95
|
```
|
98
|
-
|
99
|
-
|
96
|
+
2. Then update your Markdown document in MkDocs as normal
|
97
|
+
3. After running git add and git commit, you will see the auto-generated cache file .dates_cache.json (hidden by default) in the `docs` folder under MkDocs
|
98
|
+
- Make sure you have installed python3 ahead of time and set environment variables
|
99
|
+
4. Finally, run git push, and you can see that there are also .dates_cache.json files in the docs directory in the GitHub repository, which means success
|
100
100
|
- Priority of time reads:
|
101
|
-
|
101
|
+
- `Front Matter` > `Cache file` > `Filesystem timestamp`
|
102
102
|
- If you are using MkDocs on a Linux system, the modification time is used as the creation time because of system limitations. If you need the exact creation time, you can specify it manually in Front Matter
|
@@ -51,9 +51,9 @@ class DocumentDatesPlugin(BasePlugin):
|
|
51
51
|
return (
|
52
52
|
f"<div class='document-dates-plugin-wrapper'>"
|
53
53
|
f"<div class='document-dates-plugin'>"
|
54
|
-
f"<span title='{t['created_time']}'><span class='material-icons'>add_circle</span>"
|
54
|
+
f"<span title='{t['created_time']}: {created.strftime(self.config['date_format'])}'><span class='material-icons'>add_circle</span>"
|
55
55
|
f"{self._get_formatted_date(created)}</span>"
|
56
|
-
f"<span title='{t['modified_time']}'><span class='material-icons'>update</span>"
|
56
|
+
f"<span title='{t['modified_time']}: {modified.strftime(self.config['date_format'])}'><span class='material-icons'>update</span>"
|
57
57
|
f"{self._get_formatted_date(modified)}</span>"
|
58
58
|
f"</div>"
|
59
59
|
f"</div>"
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: mkdocs-document-dates
|
3
|
-
Version: 2.3.
|
3
|
+
Version: 2.3.2
|
4
4
|
Summary: A MkDocs plugin for displaying accurate document creation and last modification dates.
|
5
5
|
Home-page: https://github.com/jaywhj/mkdocs-document-dates
|
6
6
|
Author: Aaron Wang
|
@@ -107,18 +107,18 @@ modified: 2025-02-23
|
|
107
107
|
|
108
108
|
## Notes
|
109
109
|
|
110
|
-
- It still works when using CI/CD build systems (e.g. Github Actions)
|
111
|
-
|
112
|
-
- You can configure it like this in your .github/workflows/ci.yml:
|
113
|
-
|
110
|
+
- It still works when using CI/CD build systems (e.g. Github Actions), used a cache file `.dates_cache.json` to solve this problem:
|
111
|
+
1. First, you can configure the workflow like this (penultimate line) in your .github/workflows/ci.yml:
|
114
112
|
```
|
115
113
|
...
|
116
114
|
|
117
|
-
|
118
|
-
|
115
|
+
- run: pip install mkdocs-document-dates
|
116
|
+
- run: mkdocs gh-deploy --force
|
119
117
|
```
|
120
|
-
|
121
|
-
|
118
|
+
2. Then update your Markdown document in MkDocs as normal
|
119
|
+
3. After running git add and git commit, you will see the auto-generated cache file .dates_cache.json (hidden by default) in the `docs` folder under MkDocs
|
120
|
+
- Make sure you have installed python3 ahead of time and set environment variables
|
121
|
+
4. Finally, run git push, and you can see that there are also .dates_cache.json files in the docs directory in the GitHub repository, which means success
|
122
122
|
- Priority of time reads:
|
123
|
-
|
123
|
+
- `Front Matter` > `Cache file` > `Filesystem timestamp`
|
124
124
|
- If you are using MkDocs on a Linux system, the modification time is used as the creation time because of system limitations. If you need the exact creation time, you can specify it manually in Front Matter
|
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/__init__.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/hooks/pre-commit
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/hooks_installer.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/__init__.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ar.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/de.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/en.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/es.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/fr.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ja.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ko.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ru.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/zh.py
RENAMED
File without changes
|
{mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/zh_tw.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|