Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.
/ shelldoc Public archive

A simple utility for creating Tomdoc style documentation for bash script.

License

Notifications You must be signed in to change notification settings

Alimektor/shelldoc

Repository files navigation

Shelldoc

A simple utility for creating Tomdoc style documentation for bash script.

Installation

git clone --recurse-submodules https://github.com/Alimektor/shelldoc.git

Usage

Example Doc

Shelldoc Usage in Tomdoc style

Help message

./shelldoc -h

Quick Start

Use the following template for commenting your bash functions:

# Public: Short description
#
# [Optional] Long description.
#
# `$1` - The first argument.
# `$2` - The second argument.
# `$3` - The third argument.
# 
# **Examples**
#
#   example_code_with_3_spaces_intend
#
# **Returns**
#
# `0` - If success.
# `1` - If fail.
function func() {}

Use the following template for commenting your bash variables:

# Public: Short description.
#
# Export in environment.
export SHELLDOC="/home/test/shelldoc"

Examples

./shelldoc --in shelldoc --out shelldoc.md --header "shelldoc docs" --desc "A simple utility for creating [Tomdoc](http://tomdoc.org/) style documentation for bash script." --access "Public"

Limitations

The github-markdown-toc module requires a connection to the GitHub API to create the table of contents.

License

MIT

About

A simple utility for creating Tomdoc style documentation for bash script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages