Skip to content

Commit b6494bd

Browse files
committed
Add links to automatically built page. Updated depenencies.
1 parent 262aa41 commit b6494bd

File tree

5 files changed

+37
-29
lines changed

5 files changed

+37
-29
lines changed

mkdocs.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ plugins:
2020
# nav:
2121
# - index.md
2222

23-
theme: material
23+
theme:
24+
name: material
25+
features:
26+
- content.code.copy
27+
2428
site_url: https://mkdocs-extract-listings-plugin.six-two.dev/test/123/456/7890
2529

2630
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks/

redirect.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>Demo listing pages</h1>
1515
<ul>
1616
<script>
1717
for (theme of ["mkdocs", "readthedocs", "material"]) {
18-
document.write(`<li>${theme}: <a href="${theme}/plugin/listing-search/">search page</a>, <a href="${theme}/plugin/all-listings/">all listings page</a></li>`)
18+
document.write(`<li>${theme}: <a href="${theme}/plugin/listing-search/">search page</a>, <a href="${theme}/plugin/all-listings/">all listings page</a>, <a href="${theme}/plugin/">automatically added search page</a></li>`)
1919
}
2020
</script>
2121
</ul>
@@ -24,7 +24,7 @@ <h1>Demo listing pages</h1>
2424
<ul>
2525
<script>
2626
for (theme of ["mkdocs", "readthedocs", "material"]) {
27-
document.write(`<li>${theme}: <a href="${theme}-no-dir/plugin/listing-search.html">search page</a>, <a href="${theme}-no-dir/plugin/all-listings.html">all listings page</a></li>`)
27+
document.write(`<li>${theme}: <a href="${theme}-no-dir/plugin/listing-search.html">search page</a>, <a href="${theme}-no-dir/plugin/all-listings.html">all listings page</a>, <a href="${theme}/plugin/index.html">automatically added search page</a></li>`)
2828
}
2929
</script>
3030
</ul>

requirements.txt

+30-23
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,94 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.12
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# pip-compile
66
#
7-
babel==2.15.0
7+
babel==2.16.0
88
# via mkdocs-material
99
beautifulsoup4==4.12.3
1010
# via -r requirements.in
11-
certifi==2024.6.2
11+
certifi==2024.12.14
1212
# via requests
13-
charset-normalizer==3.3.2
13+
charset-normalizer==3.4.0
1414
# via requests
15-
click==8.1.7
15+
click==8.1.8
1616
# via mkdocs
1717
colorama==0.4.6
1818
# via mkdocs-material
1919
ghp-import==2.1.0
2020
# via mkdocs
21-
idna==3.7
21+
idna==3.10
2222
# via requests
23-
jinja2==3.1.4
23+
importlib-metadata==8.5.0
24+
# via
25+
# markdown
26+
# mkdocs
27+
# mkdocs-get-deps
28+
jinja2==3.1.5
2429
# via
2530
# mkdocs
2631
# mkdocs-material
27-
markdown==3.6
32+
markdown==3.7
2833
# via
2934
# mkdocs
3035
# mkdocs-material
3136
# pymdown-extensions
32-
markupsafe==2.1.5
37+
markupsafe==3.0.2
3338
# via
3439
# jinja2
3540
# mkdocs
3641
mergedeep==1.3.4
3742
# via
3843
# mkdocs
3944
# mkdocs-get-deps
40-
mkdocs==1.6.0
45+
mkdocs==1.6.1
4146
# via
4247
# -r requirements.in
4348
# mkdocs-material
4449
mkdocs-get-deps==0.2.0
4550
# via mkdocs
46-
mkdocs-material==9.5.27
51+
mkdocs-material==9.5.49
4752
# via -r requirements.in
4853
mkdocs-material-extensions==1.3.1
4954
# via mkdocs-material
50-
packaging==24.1
55+
packaging==24.2
5156
# via mkdocs
52-
paginate==0.5.6
57+
paginate==0.5.7
5358
# via mkdocs-material
5459
pathspec==0.12.1
5560
# via mkdocs
56-
platformdirs==4.2.2
61+
platformdirs==4.3.6
5762
# via mkdocs-get-deps
5863
pygments==2.18.0
5964
# via mkdocs-material
60-
pymdown-extensions==10.8.1
65+
pymdown-extensions==10.12
6166
# via mkdocs-material
6267
python-dateutil==2.9.0.post0
6368
# via ghp-import
64-
pyyaml==6.0.1
69+
pyyaml==6.0.2
6570
# via
6671
# mkdocs
6772
# mkdocs-get-deps
6873
# pymdown-extensions
6974
# pyyaml-env-tag
7075
pyyaml-env-tag==0.1
7176
# via mkdocs
72-
regex==2024.5.15
77+
regex==2024.11.6
7378
# via mkdocs-material
7479
requests==2.32.3
7580
# via mkdocs-material
76-
six==1.16.0
81+
six==1.17.0
7782
# via python-dateutil
78-
soupsieve==2.5
83+
soupsieve==2.6
7984
# via beautifulsoup4
80-
types-beautifulsoup4==4.12.0.20240511
85+
types-beautifulsoup4==4.12.0.20241020
8186
# via -r requirements.in
82-
types-html5lib==1.1.11.20240228
87+
types-html5lib==1.1.11.20241018
8388
# via types-beautifulsoup4
84-
urllib3==2.2.2
89+
urllib3==2.3.0
8590
# via requests
86-
watchdog==4.0.1
91+
watchdog==6.0.0
8792
# via mkdocs
93+
zipp==3.21.0
94+
# via importlib-metadata

src/mkdocs_extract_listings_plugin/all_listings_page.py

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ def update_all_listings_page(page_data_list: list[PageData], plugin_config: List
2626

2727
def get_listings_html(page_data_list: list[PageData], plugin_config: ListingsConfig, config: MkDocsConfig, relative_path_to_markdown_file: str) -> str:
2828
html = ""
29-
path_to_html_page_dir = os.path.dirname(markdown_path_to_html_path(config, relative_path_to_markdown_file))
30-
3129
if plugin_config.default_css:
3230
html += '<style>a.url { color: gray; font-size: small; display: block; }</style>'
3331

src/mkdocs_extract_listings_plugin/search_page.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22
import os
3-
from urllib.parse import urlparse
43
# pip
54
from mkdocs.config.defaults import MkDocsConfig
65
# local

0 commit comments

Comments
 (0)