-
Notifications
You must be signed in to change notification settings - Fork 5
Integration with Collection #67
Comments
@finanalyst ^ is the list of things where Documentable API is used directly. |
Did you go from what the API can offer to create a system around it? Or did you have an input that you wanted for your system?
These data are available for each file, and for the whole collection. So, what seems to be needed as well, but which is not provided by Collection yet, is some sort of data structure to mark key words, such as role/sub/method/class etc. This I haven't thought of before. What would be best for you? A separate html file for each occurence, or a snippet of html? Also, suppose a key word exists in the label line of a =HEAD block, then the relevant text could be the header and the section associated with the block. I could go to Documentable and reverse engineer it, but perhaps there is stuff you would like or the data would be best presented in another form. |
Both are true, I believe.
The input for this case are Pod documents, the rest of the pipeline (that is, converting to HTML) is done by This is what Documentable can do, it can create HTML files, but it does not require you to ask it to create them. So say I do |
I have refactored Collection considerably in the last few days.
The return object can be obtained from the At present, I have not written a plugin to split the Pod6 primary files into secondary ones. That is on my TODO list. Collection takes 176 seconds to cache all the Raku documents. That should be the same as Documentable, which uses a Module called Pod::To::Cache that I wrote, and it uses the same technique as Pod::From::Cache, which Collection uses. Collection processes all the Raku documentation into html from cached status to fully rendered html in 50seconds. I believe it takes (or used to take) Documentable 2 minutes to process them all. |
Those are great news, I'll look at if I can replace at least some calls when time allows, likely next week. |
Collection is quite big so there's a learning curve. It my be a good idea to try set up some small repo with few files from doc, Collection, and then some plugins to show how it all fits together. |
I have just reworked PodRender & Collection and it took 2 minutes to render the whole site. Is there an online site using your implementation? The Collection version is at https://raku.finanalyst.org The colours are still not so good. I'm now working on the css. |
|
I just looked at the site from a smartphone. Really nice.
I'm going to see how to imitate the site with Collection.
Do I understand that the site is dynamic rather than static? If so in what
way is it dynamic?
I will be looking at the code on your site soon.
I have still some things I want to get right in Collection / PodRender.
There is a pod block called config. It should be used to propogate meta
data (such as item numbering) to other blocks in lexical scope.
This will allow for other things like defining language templates.
Regards
Richard
…On Mon, 28 Nov 2022, 10:30 Altai-man, ***@***.***> wrote:
Is there an online site using your implementation?
http://164.90.207.89:10010/
—
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACYZHG5LV65VNU5MPC6AUTWKSCSZANCNFSM53DTSTIQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi, Richard. I believe we had this conversation long time ago, and we are repeating it again and again over time. Can that be true that some things are forgotten? I thought, before creating this ticket, when we had a meeting, we agreed that the way to "combine" the work is to provide a drop-in (or almost) replacement API of what Documentable does, but via Collection. But not it sounds like your intention is to start working on re-inventing all the frontend from scratch. You also doesn't appear to remember the website is dynamic (you was rather disliking this a year or so ago), and I remember you writing the design doesn't match Raku, in your opinion. Can there be some misunderstanding happening? |
we did have the conversation a long time ago!!! It's not that I have forgotten. On the contrary. So I went back to look at my work, found it deficient. Fixed some things, refactored, and got it to where I wanted it to be. |
So I now have your site working with Collection. https://new-raku.finanalyst.org I have mostly used your javascript and css. I use your search. There is a slight difference on the 'language' page as I wanted to use a simpler flex arrangement for all the category blocks. But that looks ugly with too much white space. I'm changing that. I have added a REPL bar, and removed the evaluation from each code snippet. The extended search page is not complete yet, and the Types and Routines page do not match your version. To be honest I think Types and Routines need to be redesigned. Secondary files are generated using the same algorithm as Documentable, but with only a single parse of the primary documents, not two. The whole site is generated in about two minutes. |
Great.
Please no, it breaks the UX. If you want to have a REPL too, along with the Run button, it can be done, but it needs a better UI then. Just borrow/copypaste the look, no need to invent anything, you already done lots of effort to make all the backend going.
Fair enough, but I am not sure if we have time to mull on it for a long time, we already wasted years. Can you please make it as it is now and then maybe have a separate ticket to improve it, while the website is actually deployed and working for people to work with? |
|
I can suggest something later, but let's sort it out when the thing is finally deployed, people (you and me included!) have waited years for it. |
Places where Documentable is used:
Documentable::Search
- https://github.com/Altai-man/docs.raku.org/blob/master/lib/Docky/Search.pm6Documentable::Config
(can be replaced with a custom object of a similar structure)Documentable::Registry
Documentable::DocPage
Main questions to check after a migration PR is done:
The text was updated successfully, but these errors were encountered: