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.
Files changed (27) hide show
  1. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/PKG-INFO +10 -10
  2. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/README.md +9 -9
  3. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/plugin.py +2 -2
  4. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/PKG-INFO +10 -10
  5. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/setup.py +1 -1
  6. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/LICENSE +0 -0
  7. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/__init__.py +0 -0
  8. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/hooks/pre-commit +0 -0
  9. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/hooks_installer.py +0 -0
  10. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/__init__.py +0 -0
  11. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ar.py +0 -0
  12. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/de.py +0 -0
  13. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/en.py +0 -0
  14. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/es.py +0 -0
  15. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/fr.py +0 -0
  16. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ja.py +0 -0
  17. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ko.py +0 -0
  18. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/ru.py +0 -0
  19. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/zh.py +0 -0
  20. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/lang/zh_tw.py +0 -0
  21. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates/styles.py +0 -0
  22. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/SOURCES.txt +0 -0
  23. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/dependency_links.txt +0 -0
  24. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/entry_points.txt +0 -0
  25. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/requires.txt +0 -0
  26. {mkdocs_document_dates-2.3.1 → mkdocs_document_dates-2.3.2}/mkdocs_document_dates.egg-info/top_level.txt +0 -0
  27. {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.1
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
- - Used a cache file `.dates_cache.json` to solve this problem
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
- - run: pip install mkdocs-document-dates
118
- - run: mkdocs gh-deploy --force
115
+ - run: pip install mkdocs-document-dates
116
+ - run: mkdocs gh-deploy --force
119
117
  ```
120
- - Then update your Markdown files in MkDocs as normal, execute commands such as mkdocs build or directly git add, commit, and push
121
- - Make sure you have installed python3 ahead of time and set environment variables
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
- - `Front Matter` > `Cache file` > `Filesystem timestamp`
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
- - Used a cache file `.dates_cache.json` to solve this problem
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
- - run: pip install mkdocs-document-dates
96
- - run: mkdocs gh-deploy --force
93
+ - run: pip install mkdocs-document-dates
94
+ - run: mkdocs gh-deploy --force
97
95
  ```
98
- - Then update your Markdown files in MkDocs as normal, execute commands such as mkdocs build or directly git add, commit, and push
99
- - Make sure you have installed python3 ahead of time and set environment variables
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
- - `Front Matter` > `Cache file` > `Filesystem timestamp`
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>"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mkdocs-document-dates
3
- Version: 2.3.1
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
- - Used a cache file `.dates_cache.json` to solve this problem
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
- - run: pip install mkdocs-document-dates
118
- - run: mkdocs gh-deploy --force
115
+ - run: pip install mkdocs-document-dates
116
+ - run: mkdocs gh-deploy --force
119
117
  ```
120
- - Then update your Markdown files in MkDocs as normal, execute commands such as mkdocs build or directly git add, commit, and push
121
- - Make sure you have installed python3 ahead of time and set environment variables
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
- - `Front Matter` > `Cache file` > `Filesystem timestamp`
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
@@ -7,7 +7,7 @@ try:
7
7
  except FileNotFoundError:
8
8
  long_description = "A MkDocs plugin for displaying accurate document creation and last modification dates."
9
9
 
10
- VERSION = '2.3.1'
10
+ VERSION = '2.3.2'
11
11
 
12
12
  setup(
13
13
  name="mkdocs-document-dates",