man page #4423
silby
started this conversation in
Ideas & suggestions
man page
#4423
Replies: 1 comment 1 reply
-
Sounds like a good idea to me! I would say that A package which defines a data structure for mdoc documents and then a function to turn it into an mdoc string would be useful. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would the project welcome a PR to start adding a man page for
gleam(1)
to Gleam? What guardrails/requirements would you have to want to maintain it? I observe that the existing CLI reference doc is generated by postprocessinggleam help
output.Some projects single-source man pages from help output like this, but that can be pretty limiting. I tend to think
--help
output should be concise and reference documentation should be thorough. Thegleam
binary should have a more detailed reference available.Some projects single-source man pages from Markdown or similar, e.g. using Pandoc. I think the main motivation for this is the unfamiliar and line-noisy appearance of
roff
andman
markup, and secondarily ease of rendition of the manual to HTML within an existing site build. Personally I think themdoc
language, which is a bit less common but supported by all relevantman
implementations, is approachable to anyone who knows HTML, and is the thing to use to write a man page from scratch. You can also get good HTML renditions out ofmandoc
and style/template them to fit in to your website of choice. A drawback of usingmdoc
is that it's not supported as an input format by very many tools and so your single-sourcing possibilities may be limited or require shelling out to things you'd prefer not to shell out to.I observe lpil is working on a Gleam website in Gleam, with Djot as the content format. Maybe the best fit for the project would be to write a
gleam
reference in Djot and write some code to render ajot.Document
asman
ormdoc
macros.Beta Was this translation helpful? Give feedback.
All reactions