Raku / Documentable

Documentation API: caching, parsing, indexing and generating documentation
https://docs.raku.org
Artistic License 2.0
11 stars 13 forks source link

Changes are not detected when they occur outside the Pod pages #52

Open JJ opened 4 years ago

JJ commented 4 years ago

Documentable update will simply not do anything if, say, template/footer.html is changed.

antoniogamiz commented 4 years ago

So to fix this I will need to store a checksum or something of main.mustache somewhere (maybe in documentable.json). I think main.mustache is the only file right now whose modifications would affect to all HTML pages. Well, template/tg-fragment.html too.

What do you think?

JJ commented 4 years ago

I think it's probably better if you use the same mechanism, like "baking in" the HTML in a pod that is then cached. You can do that if you assign it to a variable in a BEGIN phaser, I think.

antoniogamiz commented 4 years ago

Store the main.mustache and tg-fragment.html inside a Pod and then cache that? Hum, I will need to investigate that.

JJ commented 4 years ago

It's an idea...

El vie., 24 jul. 2020 a las 13:40, Antonio (notifications@github.com) escribió:

Store the main.mustache and tg-fragment.html inside a Pod and then cache that? Hum, I will need to investigate that.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Raku/Documentable/issues/52#issuecomment-663498190, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAD5DSOMQEEIOWZL6J6XLR5FXKHANCNFSM4JA7WZPQ .

-- JJ