-
Notifications
You must be signed in to change notification settings - Fork 289
Cache generated documentation #717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I thought about it for some time, so if my description above is good enough, I'm ready to assign myself for this issue. |
Is there a way to do it cleanly, though? For example, I see /todo.html page is generated during build and it's not a separate file in the source. So, if we add the cache and I go and modify |
I suppose - no. But plain hash system(without dynamic pages) will cover many cases when you just want to change, for example, Operators.pod and re-generate only Operators.html, not all in the world types/exceptions/etc. If someone willing to help with dependency graph, it's great, of course. |
Sounds like a good start. |
Basic implementation can be seen and tested here - #725 |
#725 was rejected. Is this going to to proceed in any way? |
Not sure about this one. The main idea is that you do not want to re-generate all pages if you fixed a typo in a single one. |
We do have #1823. This kind of thing would have to go through that.
|
Re-open if needed. |
I'm reopening this since, as part of the #2392 , this is probably one of the most important things to do. |
See also #2542 |
@JJ the Pod is already cached with help of Documentable++, I am somehow sure this can be closed now. Is there anything preventing closing? |
Let me check and find a suitable thing to do so that it can be closed from a commit. |
Figure out a way to cache and update the documentation registry, and when to or not to regenerate individual pages.
This seems not so hard. We can just take a hash(even simple will be fine, faster is better) for every file, gather it in something like
hashes.txt
, then while building we check every page for a change of hash and re-generate/pass. We must, of course, updatehashes.txt
if some page was re-generated.This issue is a part of TODO.
The text was updated successfully, but these errors were encountered: