An MkDocs plugin that generates a pages.json file with page metadata.
Project description
Pages json generator
A terrible plugin for mkdocs to generate a pages.json file for sites that have a reviewdate field on pages
Makes a json file like
[
{
"title": "Aqua Page 1",
"url": "http://127.0.0.1:8000/security/aqua/aqua-page-1/",
"review_by": "2022-01-01"
},
{
"title": "Aqua Page 2",
"url": "http://127.0.0.1:8000/security/aqua/aqua-page-2/",
"review_by": "2022-01-01"
},
{
"title": "Aqua partnership notes",
"url": "http://127.0.0.1:8000/security/aqua/partnership-info/",
"review_by": "2022-01-01"
}
]
Install
pip3 install git+https://github.com/userbradley/mkdocs-pages-json-plugin.git
This is until I can figure out how to put this on PyPi or what ever
plugins:
- pages-json:
output_file: 'api/pages.json'
Using
You should now be able to go to your site, and the path you chose (for example api/pages.json) and see the file.
An example of this in action: https://documentation.breadnet.co.uk/api/pages.json
Built by Bradley, with love in the UK. Licensed under MIT so you can do what ever you want with this
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs-pages-json-plugin-0.0.2.tar.gz.
File metadata
- Download URL: mkdocs-pages-json-plugin-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c20951933806ad22580fceabd67803536d74524c0f775ad65167c8077e6b1d3
|
|
| MD5 |
d1f54c91ecb40bd64d19f0066ab788c8
|
|
| BLAKE2b-256 |
873baac6aedeb92ca40c2faeda6ba749f1b69f2ede49f5f83f82e14f220d15cf
|
Provenance
The following attestation bundles were made for mkdocs-pages-json-plugin-0.0.2.tar.gz:
Publisher:
upload-pypi.yaml on userbradley/mkdocs-pages-json-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_pages_json_plugin-0.0.2.tar.gz -
Subject digest:
0c20951933806ad22580fceabd67803536d74524c0f775ad65167c8077e6b1d3 - Sigstore transparency entry: 390622857
- Sigstore integration time:
-
Permalink:
userbradley/mkdocs-pages-json-plugin@ff07d5d08584d819a7ead7898e249df2b3e6de19 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/userbradley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-pypi.yaml@ff07d5d08584d819a7ead7898e249df2b3e6de19 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkdocs_pages_json_plugin-0.0.2-py3-none-any.whl.
File metadata
- Download URL: mkdocs_pages_json_plugin-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03e3fff210540c3becb068174997289b985a403df597520e1729ed3a618bdf41
|
|
| MD5 |
96c69a84c0e1ff1a2df4786ad1a62e76
|
|
| BLAKE2b-256 |
4cf8d82f8bc88accb8aab5bb2be31a2234c0a57b9404393fd9d8616d009375bb
|
Provenance
The following attestation bundles were made for mkdocs_pages_json_plugin-0.0.2-py3-none-any.whl:
Publisher:
upload-pypi.yaml on userbradley/mkdocs-pages-json-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_pages_json_plugin-0.0.2-py3-none-any.whl -
Subject digest:
03e3fff210540c3becb068174997289b985a403df597520e1729ed3a618bdf41 - Sigstore transparency entry: 390622882
- Sigstore integration time:
-
Permalink:
userbradley/mkdocs-pages-json-plugin@ff07d5d08584d819a7ead7898e249df2b3e6de19 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/userbradley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-pypi.yaml@ff07d5d08584d819a7ead7898e249df2b3e6de19 -
Trigger Event:
push
-
Statement type: