Skip to main content

A Sh handler for mkdocstrings.

Project description

mkdocstrings-sh

ci documentation pypi version

A Sh handler for mkdocstrings.

This is a project unrelated to mkdocstrings-shell project. Naming it mkdocstrings-sh causes confusion with mkdocstrings-shell. I do not intent to compete with the project. Just my documentation goals are different then mkdocstrings-shell. The features and style by mkdocstrings-shell were not in line with what I wanted. I decided to write my own library. This is the result.

See the generated mkdocs pages in github pages for documentation. https://kamilcuk.github.io/mkdocstrings-sh/

See examples/ page in github pages. There are examples with all the syntax and reference of the available tags.

Installation

pip install mkdocstrings-sh

Usage:

With the following header file:

--8<-- "docs/examples/readme.sh"

Generate docs for this file with this instruction in one of your Markdown page:

::: path/to/script

This will generate the following HTML:

::: docs/examples/readme.sh

Single entity

It is also possible to generate only a specific function, variable or a section of the file by passing additional arguments to :::. The third argument specifies the entity type. The second argument specifies the name of the function or variable or section to gneerate documeanttion for.

::: docs/examples/readme.sh function_name function
::: docs/examples/readme.sh variable_name variable
::: docs/examples/readme.sh section_name section

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

mkdocstrings_sh-0.1.0.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

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

mkdocstrings_sh-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file mkdocstrings_sh-0.1.0.tar.gz.

File metadata

  • Download URL: mkdocstrings_sh-0.1.0.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mkdocstrings_sh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3fa6d878ae387857e525be81893f3fc1bd390c0b16058ec05003238712931aec
MD5 1eb42c0df4635086221609a5e35d74a7
BLAKE2b-256 289c9da5ae7d95126e02e4ba858e6491ef7244b6fa012e0db0a9b0af202a4a89

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocstrings_sh-0.1.0.tar.gz:

Publisher: release.yml on Kamilcuk/mkdocstrings-sh

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

File details

Details for the file mkdocstrings_sh-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocstrings_sh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 290db570394c92d756f1dccae71dd329484a17c7c7aef59d9e014c16bbd1e831
MD5 e2fd9802e7a479b4b80ea45d7ca0a9c3
BLAKE2b-256 6f9858c63a38a89b836e643f040155c6dc9da7e03aedb3268104d2386d937446

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocstrings_sh-0.1.0-py3-none-any.whl:

Publisher: release.yml on Kamilcuk/mkdocstrings-sh

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