Skip to main content

Library to dynamically document sh scripts

Project description

Dynamic Doc SH

A dynamic documentation generator to be invoked, using inline tags inspired by Swagger's approach to API documentation.

Overview

When writing shell scripts, documenting them properly can be tedious and often gets overlooked. Dynamic Doc SH solves this problem by allowing you to embed documentation tags directly in your shell scripts, then automatically generating clean, readable Markdown documentation.

Similar to how Swagger generates API documentation from code annotations, this tool parses special tags in your shell scripts and creates comprehensive documentation that stays in sync with your code.

Features

  • Tag-based Documentation: Use simple tags to mark functions, variables, and script sections
  • Automatic Markdown Generation: Generates clean .md files from your tagged shell scripts
  • Dynamic Updates: Documentation stays current with your code changes
  • Multiple Tag Types: Support for different documentation elements
  • Template Generation: Creates consistent documentation structure

How It Works

  • Add tags, place documentation tags directly above the code elements you want to document
  • Run generator, execute the script to parse your shell files
  • Get documentation, lean Markdown documentation is generated/updated automatically

How to run it

dynamicdoc --script_path /tmp/testing_dynamic_doc/default.sh --previous_hash_path /tmp/testing_dynamic_doc
/default_previous_hash_path.txt --output_path /tmp/testing_dynamic_doc/output
  • --script_path, where the script to document is located
  • --previous_hash_path, where the hash history file is located
  • --script_language, specifies which language has been used by the script for the library to be able to use the correct jinja template, bash is the default choice
  • --output_path, where to put the newly created documentation

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

dynamic_doc_sh-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

dynamic_doc_sh-1.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file dynamic_doc_sh-1.0.0.tar.gz.

File metadata

  • Download URL: dynamic_doc_sh-1.0.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for dynamic_doc_sh-1.0.0.tar.gz
Algorithm Hash digest
SHA256 09bb6366cf4533dcc8a723cd857dc287a71cac2f5399d444085e2a22c68be37b
MD5 27be24d2c5f681a4971776f970ad34d1
BLAKE2b-256 0e1ed7c2ca3ec0ea6a1b491f3001596638a759b0850fe7fd78e7bb4cb0dd5dc3

See more details on using hashes here.

File details

Details for the file dynamic_doc_sh-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dynamic_doc_sh-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for dynamic_doc_sh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de9a90f2b679b5971b9a5159afdafbb59e5a3264e29d17d4acf725a9c31ed5a0
MD5 93a15a75b308b48d614348c926d11d01
BLAKE2b-256 c90a589f549dee7e560e53954067ad4d1241ba12ad217f0d471e4fbdd3e4e739

See more details on using hashes here.

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