Skip to main content

No project description provided

Project description

mksync

MkSync replaces directives in a Markdown file with corresponding content. It's a useful tool to add nice features to your project's README.md file, such as a table of contents, without the manual upkeep.

Example

Say this is your README.md:

# My Project

<!-- toc -->

## Installation

## Documentation

Then running mksync README.md will update the file in-place to:

# My Project

<!-- toc -->
* [Installation](#installation)
* [Documentation](#documentation)
<!-- end toc -->

## Installation

## Documentation

Available Directives

  • toc or table of contents: Produce an unordered list of links to all headers in the document after the directive.
  • include <path>: Include the contents of the file at the given path. You can optionally specify a language name to wrap the content in a code block, e.g. include code:python <path>.
  • runcmd <command>: Run the given command and include the output in the document. You can optionally specify a language name to wrap the output in a code block, e.g. runcmd code:python <command>.

Synopsis

usage: mksync [-h] [--inplace] [--verbose] file

MkSync is a utility to update Markdown files in-place to automate some common upkeep tasks, such as inling
example code and updating table of contents.

positional arguments:
  file           the file to process

options:
  -h, --help     show this help message and exit
  --inplace, -i  update the file in-place
  --verbose, -v  enable verbose logging

Changelog

0.1.3 (2023-06-29)

TypeDescriptionPRIssuesAuthor
Fix

Fix parsing of include directives

@NiklasRosenstein

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

mksync-0.1.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

mksync-0.1.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file mksync-0.1.3.tar.gz.

File metadata

  • Download URL: mksync-0.1.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11

File hashes

Hashes for mksync-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d4d35d159089f332a9d6eb071db71acd6a33178060ecf4b5ed3ede2e1a1bae3b
MD5 88b6e20435ef5867d32442d32d19707a
BLAKE2b-256 04c0e22d82aa3285a3f91156a58dae9365c660935171121cecd3ade4637e874b

See more details on using hashes here.

File details

Details for the file mksync-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mksync-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11

File hashes

Hashes for mksync-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ea9ba6a65efdd46830974768beb295f0ed3f326f653af421931d90d531e603c7
MD5 1386acf4a7776ad9c56a06a5c062342b
BLAKE2b-256 368780272561fb8764e9cd7d6a33f7f28f1f2ee3e188193b7b0e3a28c5fabd7c

See more details on using hashes here.

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