Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-pages-json-plugin-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_pages_json_plugin-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for mkdocs-pages-json-plugin-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0c20951933806ad22580fceabd67803536d74524c0f775ad65167c8077e6b1d3
MD5 d1f54c91ecb40bd64d19f0066ab788c8
BLAKE2b-256 873baac6aedeb92ca40c2faeda6ba749f1b69f2ede49f5f83f82e14f220d15cf

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_pages_json_plugin-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_pages_json_plugin-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03e3fff210540c3becb068174997289b985a403df597520e1729ed3a618bdf41
MD5 96c69a84c0e1ff1a2df4786ad1a62e76
BLAKE2b-256 4cf8d82f8bc88accb8aab5bb2be31a2234c0a57b9404393fd9d8616d009375bb

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page