forked from www/rdm.sfb1451.de
proof-of-principle-reusable-docs #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "proof-of-principle-reusable-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a test / demo PR. Originally, I wanted to do it against the source repository, but I lack the necessary permissions. In any case, this is merely to illustrate the general principle.
Thanks for demonstrating this with examples!
I granted you collaborator (write) access to sfb1451/rdm.sfb1451.de -- I don't have write access to www/rdm.sfb1451.de (which AFAIK is a pull mirror of the former) either.
I only spent a short time looking into it, so this is not a complete evaluation but a set of first impressions:
shortcodes/includedoes follow relearn's examples, but it confused me for a while (the intended semantics seems to be "things used by the include shortcode"; it is notlayouts/_shortcodeswhich would be for shortcode definitions, so it is fine, but it sounds similar).Thank you!
Sorry for the lack of context in this PR. It came from reading the RFD and chat messages that led to it, but all of that info was only in my head when I should have put it in the PR description. ;-)
Re placement: I recall fiddling with it and hugo's path semantics for a while in the past. I'm sure other placements would work as well, but I prefer staying close to the documentation/examples.
Re length of includes: I think it is more difficult to write entire pages in a way that they can be included. I found that often there are generic pieces that are suitable for reuse, but they need additional custom-ness from the docs at hand. Whats also difficult is that the content can only be markdown, the necessary meta data (e.g., weight, date) of hugo pages is parsed "verbatim" - I guess that would be a technical hurdle, at least for including pages via the "include" shortcode.
I'm giving this PR a ping. It was a proof-of-principle PR with only minor changes to demonstrate the "reusable documentation snippets". The actual docs have worked since and got updates also - as did the documentation snippets. This PR definitely needs to be updated before getting merged (which I'm happy to do). @msz do you have a preference whether I should update this PR and add more along the same line, or close this?
Thanks for the reminder - that required going back in time... I remember this: the proof of principle definitely worked, but I was skeptical whether replacing individual paragraphs with references to text that comes from another repo is a tangible improvement in maintainability (perhaps irrationally, because now I recall the feeling but I don't feel it now looking at the diff).
If you feel that the concept still works and want to expand it then I won't block the PR, but given that the snippets system is about maintainability and that this repo is basically static now (one commit in last 8 months) I would instead propose that we PR and that I remember it the next time a time for updates comes.
Pull request closed