Replies: 3 comments
-
Indeed, documentation is also something that I really appreciate. Currently Ordenada only exposes the modules options via Then, I'm importing this Some of the solutions that I came across in the Nix ecosystem before going for this solution this were:
At the end of the day, they are all some sort of static site generators. I went with a custom solution because I wanted to keep using Haunt so that I could use Org to eventually write the project documentation. However, at the moment it only displays the README + the options from the I don't want to have to include the modules documentation inside the README, so my suggested approach would be to create a Honestly, I'd like to go with B because I'd rather not write the docs in Markdown, and I don't want to deal with Org to Markdown exports quirks, or having to specify site settings in YAML/TOML/etc, but I can't properly estimate how much effort it would take. Using the org-mode-reader + Haunt would also allow us to not have to use JS to syntax highlight code blocks, since everything is done at build time by Emacs. Either way, we could also totally detach the Ordenada page from my personal site and create a separate site with a domain hosted on GitHub pages. |
Beta Was this translation helpful? Give feedback.
-
With the approaches you mentioned, would we write the documentation for a module separated from the module code? There doesn't seem to be a default for function parameter documentation (like JSDoc for JS) in the nix language (AFAIK). The approach I'd aim for would be to generate the documentation for a module directly from the code, if possible. IDK how difficult it'd be but maybe we can place a multiline comment in a module with special syntax and parse it to create the docs for a module (ideally export it into one file, following with the options docs for the same module). Maybe like
But I don't know how difficult that would be, maybe there is an easier approach. In any case, I'd like to (somehow) include all documentation for a module inside the With the new sub folders I created in my last PR we could also introduce a hierarchy for the module documentation. E.g. in Again, IDK how feasible this would be, but leaving technicalities to one side, this would be the end goal IMO in terms of documentation. |
Beta Was this translation helpful? Give feedback.
-
I could easily write a parser for that using JS, that creates a folder with .md files that we can then post-process with your approach to create .org files. But idk if we want to introduce JS just for that, but I think doing it in nix itself would be a daunting task for me :D |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
One thing that always bothered me about RDE was the lack of documentation. You'd have to browse the source code to actually understand how a feature works and what it is doing.
I think this (https://migalmoreno.com/projects/ordenada.html#configuration-options) is already solving half the issue. However, I feel like this doesn't cover everything there is to know. For example, the screenshot/video capture scripts you added in the sway module are not documented that way.
I feel like it'll be nice to either have a manual (markdown/pdf/html/latex/wiki/whatever) that covers each module, that it provides and how it may interact with other modules
Beta Was this translation helpful? Give feedback.
All reactions