Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatablity ? and ?shdoc.md! #43

Open
dubiouscript opened this issue Dec 14, 2021 · 3 comments
Open

compatablity ? and ?shdoc.md! #43

dubiouscript opened this issue Dec 14, 2021 · 3 comments

Comments

@dubiouscript
Copy link

dubiouscript commented Dec 14, 2021

shdoc is a documentation generator for bash/zsh/sh for generating API documentation in Markdown from shell scripts source.

shdoc parses annotations in the beginning of a given file and alongside function definitions, and creates a markdown file with ready to use documentation.

give the above quote from readme.md it appears that any language supporting '# comment '
should work

unless some other reason exist making ssb exclusive to bash/zsh/sh?

... with the above in mind has any consideration been given to

  • documenting the shdoc awk script !
  • expanding the stated compatibility to "any language supporting '# comment ' " ?
@kovetskiy
Copy link
Member

I'm not sure I've understood your question.

shdoc does support comments starting with #, and it doesn't support documenting awk scripts.

@dubiouscript
Copy link
Author

dubiouscript commented Dec 15, 2021

I'm not sure I've understood your question.

(it would help me clarify if you could explain) what is unclear ?

shdoc does support comments starting with #

it doesn't support documenting awk scripts.

if awk scripts use '#' comment ( AFAIK it dose )
for what reason(s?) do you consider awk script's unsupported ?

eg
you have no interest in supporting other lang with # comment
or no time to support other lang with # comment

something technical ( i have not thought of )


edit
while reading through https://github.com/reconquest/shdoc/blob/master/README.md i considered it might have been created in part from https://github.com/reconquest/shdoc/blob/master/shdoc

probably because in the past i read through https://github.com/bashup/mdsh ( Multi-lingual, Markdown-based Literate Programming)

which notes
# This file is automatically generated from mdsh.md

and thought that perhaps shdoc/readme.md
might be (inpart) composed of comments from ./shdoc

after finding

  • this is not the case
  • shdoc is written in awk

i wandered if some technical reason exists it was not possible/practical to use shdoc outside of bash/zsh/sh
...
"hashdoc" , only adds an extra 2 char :p

@kovetskiy
Copy link
Member

I have not tested it on awk, may be it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants