mkdocs-toggle-sidebar-plugin 0.0.9__tar.gz → 0.1.0__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 (17) hide show
  1. {mkdocs_toggle_sidebar_plugin-0.0.9/src/mkdocs_toggle_sidebar_plugin.egg-info → mkdocs_toggle_sidebar_plugin-0.1.0}/PKG-INFO +11 -2
  2. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/README.md +10 -0
  3. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/setup.cfg +1 -3
  4. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin/__init__.py +11 -5
  5. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0/src/mkdocs_toggle_sidebar_plugin.egg-info}/PKG-INFO +11 -2
  6. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin.egg-info/SOURCES.txt +0 -1
  7. mkdocs_toggle_sidebar_plugin-0.0.9/src/mkdocs_toggle_sidebar_plugin.egg-info/requires.txt +0 -1
  8. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/LICENSE +0 -0
  9. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/MANIFEST.in +0 -0
  10. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/pyproject.toml +0 -0
  11. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin/material.js +0 -0
  12. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin/mkdocs.js +0 -0
  13. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin/readthedocs.js +0 -0
  14. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin/toggle-sidebar.js +0 -0
  15. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin.egg-info/dependency_links.txt +0 -0
  16. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin.egg-info/entry_points.txt +0 -0
  17. {mkdocs_toggle_sidebar_plugin-0.0.9 → mkdocs_toggle_sidebar_plugin-0.1.0}/src/mkdocs_toggle_sidebar_plugin.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mkdocs-toggle-sidebar-plugin
3
- Version: 0.0.9
3
+ Version: 0.1.0
4
4
  Summary: Add keybindings to toggle the navigation and table of contents sidebars
5
5
  Home-page: https://github.com/six-two/mkdocs-toggle-sidebar-plugin
6
6
  Author: six-two
@@ -17,7 +17,6 @@ Classifier: Programming Language :: Python :: 3.13
17
17
  Requires-Python: >=3.9
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: mkdocs>=1.5.0
21
20
  Dynamic: license-file
22
21
 
23
22
  # mkdocs-toggle-sidebar-plugin
@@ -38,6 +37,10 @@ The settings are stored using the `localStorage` object, so that it will persist
38
37
  I wrote it after getting frustrated by the browser's `Find in page` function matching way to many links in the navigation sidebar instead of searching in the actual page's content.
39
38
 
40
39
 
40
+ ## Note on Zensical, MkDocs 1.x, ProperDocs, etc
41
+
42
+ To make it easy to keep it up to date for all my plugins, I hosted my [intentions of what platforms to support](https://six-two.dev/plugin-support-for-mkdocs-and-forks/) on my website.
43
+
41
44
  ## Usage
42
45
 
43
46
  ### Setup
@@ -151,6 +154,7 @@ Theme | Theme version | Plugin version | Status
151
154
  --- | --- | --- | ---
152
155
  mkdocs-ansible | 25.6.0 | 0.0.6 | works
153
156
  mkdocs-material | 9.6.14 | 0.0.4+ | works
157
+ mkdocs-materialx | 10.1.5 | 0.1.0 | works
154
158
  mkdocs (default) | 1.6.1 | 0.0.4+ | works
155
159
  readthedocs | 1.6.1 | 0.0.4+ | works
156
160
 
@@ -187,6 +191,11 @@ docker run --rm -it -v "$PWD:/share" -w "/share" -p 8000:8000 --entrypoint=bash
187
191
 
188
192
  ## Notable changes
189
193
 
194
+ ### Version 0.1.0
195
+
196
+ - Added autodetection for [MaterialX](https://github.com/jaywhj/mkdocs-materialx) theme.
197
+ - Removed dependency declaration of `mkdocs`
198
+
190
199
  ### Version 0.0.9
191
200
 
192
201
  - Added `button_toggle_both_tooltip`, `button_toggle_nav_tooltip`, `button_toggle_toc_tooltip` and `button_toggle_icon` options for customizing the toggle button (see #12)
@@ -16,6 +16,10 @@ The settings are stored using the `localStorage` object, so that it will persist
16
16
  I wrote it after getting frustrated by the browser's `Find in page` function matching way to many links in the navigation sidebar instead of searching in the actual page's content.
17
17
 
18
18
 
19
+ ## Note on Zensical, MkDocs 1.x, ProperDocs, etc
20
+
21
+ To make it easy to keep it up to date for all my plugins, I hosted my [intentions of what platforms to support](https://six-two.dev/plugin-support-for-mkdocs-and-forks/) on my website.
22
+
19
23
  ## Usage
20
24
 
21
25
  ### Setup
@@ -129,6 +133,7 @@ Theme | Theme version | Plugin version | Status
129
133
  --- | --- | --- | ---
130
134
  mkdocs-ansible | 25.6.0 | 0.0.6 | works
131
135
  mkdocs-material | 9.6.14 | 0.0.4+ | works
136
+ mkdocs-materialx | 10.1.5 | 0.1.0 | works
132
137
  mkdocs (default) | 1.6.1 | 0.0.4+ | works
133
138
  readthedocs | 1.6.1 | 0.0.4+ | works
134
139
 
@@ -165,6 +170,11 @@ docker run --rm -it -v "$PWD:/share" -w "/share" -p 8000:8000 --entrypoint=bash
165
170
 
166
171
  ## Notable changes
167
172
 
173
+ ### Version 0.1.0
174
+
175
+ - Added autodetection for [MaterialX](https://github.com/jaywhj/mkdocs-materialx) theme.
176
+ - Removed dependency declaration of `mkdocs`
177
+
168
178
  ### Version 0.0.9
169
179
 
170
180
  - Added `button_toggle_both_tooltip`, `button_toggle_nav_tooltip`, `button_toggle_toc_tooltip` and `button_toggle_icon` options for customizing the toggle button (see #12)
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = mkdocs-toggle-sidebar-plugin
3
- version = 0.0.9
3
+ version = 0.1.0
4
4
  author = six-two
5
5
  author_email = pip@six-two.dev
6
6
  description = Add keybindings to toggle the navigation and table of contents sidebars
@@ -25,8 +25,6 @@ package_dir =
25
25
  packages = find:
26
26
  python_requires = >=3.9
27
27
  scripts =
28
- install_requires =
29
- mkdocs>=1.5.0
30
28
 
31
29
  [options.entry_points]
32
30
  mkdocs.plugins =
@@ -3,11 +3,16 @@ import os
3
3
  import urllib.parse
4
4
  import xml.etree.ElementTree as ET
5
5
  # pip dependency
6
- from mkdocs.plugins import BasePlugin, get_plugin_logger
7
- from mkdocs.config.defaults import MkDocsConfig
8
- from mkdocs.config.base import Config
9
- from mkdocs.config.config_options import Type
10
- from mkdocs.exceptions import PluginError
6
+ try:
7
+ from mkdocs.plugins import BasePlugin, get_plugin_logger
8
+ from mkdocs.config.defaults import MkDocsConfig
9
+ from mkdocs.config.base import Config
10
+ from mkdocs.config.config_options import Type
11
+ from mkdocs.exceptions import PluginError
12
+ except ImportError as ex:
13
+ print("[-] Error importing 'mkdocs'. Please install 'properdocs' (recommended) or 'mkdocs<=1.6.1' (deprecated) with pip")
14
+ exit(1)
15
+
11
16
 
12
17
  LOGGER = get_plugin_logger(__name__)
13
18
  SCRIPT_DIR = os.path.dirname(__file__)
@@ -15,6 +20,7 @@ ALLOWED_TOGGLE_BUTTON_VALUES = ["none", "navigation", "toc", "all"]
15
20
  # This is a map of compatible themes. For example 'ansible' inherits from 'material', so the material javascript will work for the ansible theme too
16
21
  THEME_COMPATIBILITY = {
17
22
  "ansible": "material",
23
+ "materialx": "material",
18
24
  }
19
25
  # May not always be accurate, this is just for a more helpful error message
20
26
  KNOWN_THEME_NAMES = ["material", "mkdocs", "readthedocs"] + list(THEME_COMPATIBILITY.keys())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mkdocs-toggle-sidebar-plugin
3
- Version: 0.0.9
3
+ Version: 0.1.0
4
4
  Summary: Add keybindings to toggle the navigation and table of contents sidebars
5
5
  Home-page: https://github.com/six-two/mkdocs-toggle-sidebar-plugin
6
6
  Author: six-two
@@ -17,7 +17,6 @@ Classifier: Programming Language :: Python :: 3.13
17
17
  Requires-Python: >=3.9
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: mkdocs>=1.5.0
21
20
  Dynamic: license-file
22
21
 
23
22
  # mkdocs-toggle-sidebar-plugin
@@ -38,6 +37,10 @@ The settings are stored using the `localStorage` object, so that it will persist
38
37
  I wrote it after getting frustrated by the browser's `Find in page` function matching way to many links in the navigation sidebar instead of searching in the actual page's content.
39
38
 
40
39
 
40
+ ## Note on Zensical, MkDocs 1.x, ProperDocs, etc
41
+
42
+ To make it easy to keep it up to date for all my plugins, I hosted my [intentions of what platforms to support](https://six-two.dev/plugin-support-for-mkdocs-and-forks/) on my website.
43
+
41
44
  ## Usage
42
45
 
43
46
  ### Setup
@@ -151,6 +154,7 @@ Theme | Theme version | Plugin version | Status
151
154
  --- | --- | --- | ---
152
155
  mkdocs-ansible | 25.6.0 | 0.0.6 | works
153
156
  mkdocs-material | 9.6.14 | 0.0.4+ | works
157
+ mkdocs-materialx | 10.1.5 | 0.1.0 | works
154
158
  mkdocs (default) | 1.6.1 | 0.0.4+ | works
155
159
  readthedocs | 1.6.1 | 0.0.4+ | works
156
160
 
@@ -187,6 +191,11 @@ docker run --rm -it -v "$PWD:/share" -w "/share" -p 8000:8000 --entrypoint=bash
187
191
 
188
192
  ## Notable changes
189
193
 
194
+ ### Version 0.1.0
195
+
196
+ - Added autodetection for [MaterialX](https://github.com/jaywhj/mkdocs-materialx) theme.
197
+ - Removed dependency declaration of `mkdocs`
198
+
190
199
  ### Version 0.0.9
191
200
 
192
201
  - Added `button_toggle_both_tooltip`, `button_toggle_nav_tooltip`, `button_toggle_toc_tooltip` and `button_toggle_icon` options for customizing the toggle button (see #12)
@@ -12,5 +12,4 @@ src/mkdocs_toggle_sidebar_plugin.egg-info/PKG-INFO
12
12
  src/mkdocs_toggle_sidebar_plugin.egg-info/SOURCES.txt
13
13
  src/mkdocs_toggle_sidebar_plugin.egg-info/dependency_links.txt
14
14
  src/mkdocs_toggle_sidebar_plugin.egg-info/entry_points.txt
15
- src/mkdocs_toggle_sidebar_plugin.egg-info/requires.txt
16
15
  src/mkdocs_toggle_sidebar_plugin.egg-info/top_level.txt