I see that the install guide has
./modules/install-guide/pages/_partials/entities.adoc
with things like
:PREVVER: 33
:PRODUCT: Fedora
:PRODVER: Rawhide
:YEAR: 2021
which is pulled in by
include::{partialsdir}/entities.adoc[]
On the wiki, we have macros that can be used ... anywhere on the whole
thing. It'd be nice to have that, for example for refering to our new chat
server by URL.
Is there a way we can do that?
Also: is there a way we can make parameterized macros? Like, something where
we can say {CHATROOM:council}[Fedora Council] and it'll automatically link
that to
https://matrix.to/#/#matrix-meta-chat:fedoraproject.org?web-instance%5Bel...
?
--
Matthew Miller
<mattdm(a)fedoraproject.org>
Fedora Project Leader
I think from this we possibly could have a "fedora-docs-shared-entities"
repo which would have definitions for these, pulled in as a remote content
repository? https://docs.antora.org/antora/2.3/playbook/content-source-url/
--
Matthew Miller
<mattdm(a)fedoraproject.org>
Fedora Project Leader
Hah, nice :)
Yes, it should be possible, someone even suggested that before but it never
went anywhere. We'll have to update every repo's site.yml to pull in the
shared attributes during a local build, and include the entity file from
the shared repo on top of each page so we can use the attributes on each
page, but that shouldn't be too bad, it's a one-time effort basically.
I'll take a look at it after we release F35, I'll be pretty busy until then.
Petr
On Mon, Oct 11, 2021 at 8:07 PM Matthew Miller <mattdm(a)fedoraproject.org>
wrote: