Skip to main content

Publishing plugins for MkDocs

Project description


date: 2023-02-28 12:30:18 update: 2023-06-12 23:52:23

Publisher plugin for MkDocs

PyPI version License type PyPI Downloads last month Python versions GitHub last commit

Publishing platform plugins for MkDocs that include:

  • pub-blog – adds blogging capability,
  • pub-social – creates social cards for social media sharing using document metadata,
  • pub-obsidian - bindings for Obsidina.md that allows you to use:
    • wikilinks,
    • backlinks,
    • callouts,
    • vega-charts (plugin),
  • pub-minifier – file size optimization (good for SEO and overall page size optimization),
  • pub-meta - support for documentation metadata (slug, dates, publication status, directories publication status, automatic navigation building, etc.).

Installation

pip install mkdocs-publisher

Basic usage

Note As a base for any development, mkdocs-material theme was used. If you are willing to use any other theme, you may (or may not) face some issues. If this happens, please submit an issue.

Warning Consider this plugin as a beta, so before any use make sure you have a backup of your data.

If you have found any issue, have an idea for a feature, please submit an issue.

Features

List of included features (more documentation is needed):

  • automatic blog post index page generation with blog post teasers based on delimiter inside a blog post and own template (delimiter can be changed in plugin config in mkdocs.yaml),
  • blog post/page update date based on blog post metadata,
  • separate directory for blog post documents with auto-generated separate navigation (blog posts are sorted from newest to oldest based on blog post metadata),
  • home page set to blog post index with possibility to rename,
  • auto-adding link to full blog post from blog post index file (under each post that has teaser delimiter, if delimiter is not present, then full post is inside post index file, but is preserved in blog post navigation and site map),
  • added sub-pages for blog posts: archive, categories, tags,
  • minification plugin for graphics and documentation files,
  • social cards metadata injection based on document metadata (no need to edit any template).

How To

More detailed information on how to set up, configure and write a blog posts and/or documentation can be found in documentation .

Planned features

A full list of planned developments can be found on this documentation page. I'm planning to move it to the project GitHub issues with proper badges and longer descriptions, but it's time-consuming and at this stage I'd rather spend it to develop a project.

Version history

This section becomes too big and hard to navigate. Also it's harder to maintain the same changelog in 2 places. The entire version history can be found in the project version history document and on inside project GitHub releases.

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_publisher-1.0.0.tar.gz (31.6 kB view hashes)

Uploaded Source

Built Distribution

mkdocs_publisher-1.0.0-py3-none-any.whl (44.9 kB view hashes)

Uploaded Python 3

Supported by

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