Sujet : Re: Sample markup documentation file for a Tcl/Tk package
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tclDate : 23. Jan 2025, 15:54:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmtl7h$1h979$2@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
Hi Rolf,
I also tried it.
All the special syntax like [string]{.optarg} does not render for me.
But anyway, it is done.
For me, it looks better without style sheet, as the style sheet changes some fonts, and some not.
I have added horizontal lines to avoid the strange spacing.
Anyway, early beginner...
Here is the result.
https://github.com/oehhar/zxing-cpp-wrapper-tcl/tree/master/wrappers/tcl/docTo get the stylesheet version, just put "main.css" beside it ;-).
Thanks for all,
Harald
Am 22.01.2025 um 16:19 schrieb Rolf Ade:
Harald Oehlmann writes:
Dear Tcl/Tk group,
I would love to author the documentation of my latest package in
markup (following TIP700 ;-) ).
To get a feeling what TIP 700 [1] mean in praxis some weeks ago I
started to transfer the ooxml documentation into the markdown variant
proposed by the TIP (note to myself: I should pick this up again and
finish it).
What I have done so far is [2].
As you I looked for examples and found [3], which has versions of
automatically from troff to md converted man pages of all Tcl (and Tk)
commands and C API functions.
Having the documentation as md source is only the start. To get the
man and HTML documentation from your new documentation sources you may
peek how I did [4] (which is far away from being canonical, just a fast
scribbled way for my simple case).
For the HTML you need some css. To have one I just picked up [5]
although I think someone™ should give some love to that.
rolf
[1] https://core.tcl-lang.org/tips/doc/trunk/tip/700.md
[2] https://fossil.sowaswie.de/ooxml/file?name=doc/ooxml.md&ci=tip&txt=1
[3] https://github.com/ShaunKulesa/Docs-Maker/tree/main/docs
[4] https://fossil.sowaswie.de/ooxml/file?udc=1&ln=65-72&ci=tip&name=Makefile.in
[5] https://github.com/ShaunKulesa/Docs-Maker/tree/main/css
>
Here is the package
https://github.com/oehhar/zxing-cpp-wrapper-tcl
>
Is there any example how to author the documentation in markup ?
>