-
Hello, hopefully we can have the new docs site set up really soon, and I found a ticket regarding the use of Collection - the way I read it at least - as opposed to Documentable. To be honest, I know very little about Documentable itself, I'm mostly asking people who know more about it and/or know about Collection. @Altai-man @finanalyst please feel addressed. :)
Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I don't know about
|
Beta Was this translation helpful? Give feedback.
-
Documentable and Collection? From my point of view: Collection is a tool like Doxygen for Raku, on steroids and with comics superpowers. It takes Pod documents and does a highly configurable with plugins and middleware process of converting this Pod to a set of documents in some other format (be it HTML or something else if configured so). Documentable is a library and a tool in one package. The library gives you API to obtain structured Pod out of a collection of files. You can initialize with a directory of pod files and then ask "Ok, give me all documents marked as types" or "Ok, give me pod of this subroutine" or "Give me pod document of this type, but with methods of ancestors included". Then you can use this API to render the pages and serve them or write them on the disk. And the tool I mentioned does the "writes them on the disk" part: it's a rather hardcoded algorithm of how to convert a set of pod files in As from my website perspective, because I base it around API the Documentable gives, I don't really care who is the provider, if Collection can provide the same runtime API (rather than just generating files), I can use it too.
This is where the sad parts begin. As I wrote, they do two different things, so Collection cannot be a drop-in replacement for Documentable as it is now. We have a ticket opened for @finanalyst to work on (Altai-man/docs.raku.org#67) what API should be provided for it to be compatible, but he has plenty of $life things going on I believe and so it is not actively worked on. |
Beta Was this translation helpful? Give feedback.
-
Hi. I am working on Collection quite actively. But I also have a day job. The stack at present is: The Collection stack is ProcessedPod uses templates that can be changed without changing the software. In addition, we should be able to have translations of the Documentation and to make it easy to synchronise the translations. This is not possible using Documentable. Documentable is heavily dependent on Pod::To::HTML. I am trying to show how Altai-man's work can be based on Collection, but only I am doing the work. So it is slow. |
Beta Was this translation helpful? Give feedback.
Documentable and Collection? From my point of view:
Collection is a tool like Doxygen for Raku, on steroids and with comics superpowers. It takes Pod documents and does a highly configurable with plugins and middleware process of converting this Pod to a set of documents in some other format (be it HTML or something else if configured so).
Documentable is a library and a tool in one package. The library gives you API to obtain structured Pod out of a collection of files. You can initialize with a directory of pod files and then ask "Ok, give me all documents marked as types" or "Ok, give me pod of this subroutine" or "Give me pod document of t…