The documentation situation #69
Labels
documentation
Regarding documentation
enhancement
New feature or request
important
A decision is needed
This issue tracks the progress of the current chaotic state of documentation for rbxmk.
Program
Documentation from within the program is currently expressed through "fragments", which are snippets of content embedded into the executable. They currently live here:
https://github.com/Anaminus/rbxmk/tree/imperative/fragments
Work here is still very much in progress. Further iteration is on-hold while the documentation website is developed.
Website
A work-in-progress website for documentation currently lives here:
https://anaminus.github.io/RBXMK_DOC_TEMPORARY_DO_NOT_USE_OR_YOU_WILL_BE_FIRED/
Unified theory
Currently, the program and website source their content separately, even though they contain mostly the same information. It would be much better if a single, unified source were used instead. For now, they will continue to be worked on separately until a common system emerges.
Working draft
<section name="...">...</section>
<section format="...">
. Format name is a file extension.<stem>.<ext>
of a fragment file name maps to<section name="stem" format="ext">
.<section>
tags. Only the name attribute is retained.frag
template function.<toc>
element hints at an appropriate location to place a table of contents.<toc>
if it's only rendering a subsection. Or, if it's rendering a whole document, replaces the hint with an actual ToC.Several inputs are provided by the user. The combination of these inputs determine the strategy used to generate the output. Some examples:
In the last example, the raw content is dumped. This can be passed to a "translator" that converts the content into a format suitable for a documentation site. Because there are an endless number of ways to produce a website, the translator lives next to the website instead of near or within rbxmk.
The current documentation website is a static site generated by Hugo with the Shadocs theme. The translator is a program that receives the raw content from rbxmk and formats it for this configuration of static-site generator and theme.
For fun, here's a graph:
The text was updated successfully, but these errors were encountered: