by programbreeding · 5y ago · 0 comments
I suppose if the actual source file changes then the page would be updated as well which is neat, but if you're specifying certain lines to read from then that could easily become a problem.
Considering how few shortcodes you're using I just felt like there must be a good reason to use it in this way and I was curious why.
More interesting are the doxysnippet shortcode[1] that provides the extraction from the source code or the custom rendering of links[2] that allows this sort of markdown links: [Overlay](docs:kirigami2;OverlayDrawer)
[0]: https://invent.kde.org/documentation/develop-kde-org/-/archi...
[1]: https://invent.kde.org/documentation/develop-kde-org/-/blob/...
[2]: https://invent.kde.org/documentation/develop-kde-org/-/blob/...