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.0.4.tar.gz (43.4 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.0.4-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkdocstrings_sh-0.0.4.tar.gz
  • Upload date:
  • Size: 43.4 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.0.4.tar.gz
Algorithm Hash digest
SHA256 02a8dd09502628936e280f4a4c7f18ef0fb66342ead099bd12d8c03343e2dd4a
MD5 94da7ac0866fc6b548a6268c918e2466
BLAKE2b-256 2689d7fe2815d945430d9219ed69b921ae7a98651826e4fcee9ece32e5de420f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocstrings_sh-0.0.4.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.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocstrings_sh-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9da24c0072dd85487715693d89654d60b1bb8b734c34824b238b933bce96ef6b
MD5 8e7177b0c4b59f68c3d35f5da2b73daf
BLAKE2b-256 664cfa0560a4dbbfc852bfba952ab538dbe585f213479a35bd094cdf576854ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocstrings_sh-0.0.4-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