Re: macro for matrix room links?

Petr Bokoc <[email protected]> Wed, 13 Oct 2021 15:39:31 +0000
Newsgroups gmane.linux.redhat.fedora.documentation
Message-ID <CAAObbsunp6sZHKcRwpHXbeVTbm1B--XQeBNaWhWKVZsuns4fqg@mail.gmail.com>
--===============8116603111071057505==
Content-Type: multipart/alternative; boundary="000000000000ce519a05ce3dc68c"

--000000000000ce519a05ce3dc68c
Content-Type: text/plain; charset="UTF-8"

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 <[email protected]>
wrote:

> On Mon, Oct 11, 2021 at 10:40:49AM -0400, Matthew Miller wrote:
> > 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%5Belement.io%5D=chat.fedoraproject.org
> <https://matrix.to/#/%23matrix-meta-chat:fedoraproject.org?web-instance%5Belement.io%5D=chat.fedoraproject.org>
>
> So I found
> https://www.magnolia-cms.com/blog/tips-for-writing-antora-macros.html,
> which
> links back to a Fedora docs example. :)
>
> --
> Matthew Miller
> <[email protected]>
> Fedora Project Leader
> _______________________________________________
> docs mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/[email protected]
> Do not reply to spam on the list, report it:
> https://pagure.io/fedora-infrastructure
>

--000000000000ce519a05ce3dc68c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hah, nice :)<br><br></div><div>Yes, it should be poss=
ible, someone even suggested that before but it never went anywhere. We&#39=
;ll have to update every repo&#39;s site.yml to pull in the shared attribut=
es during a local build, and include the entity file from the shared repo o=
n top of each page so we can use the attributes on each page, but that shou=
ldn&#39;t be too bad, it&#39;s a one-time effort basically.<br></div><div><=
br></div><div>I&#39;ll take a look at it after we release F35, I&#39;ll be =
pretty busy until then.</div><div>Petr<br></div></div><br><div class=3D"gma=
il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Oct 11, 2021 at 8:0=
7 PM Matthew Miller &lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt; wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex">On Mon, Oct 11, 2021 at 10:40:49AM -040=
0, Matthew Miller wrote:<br>
&gt; Also: is there a way we can make parameterized macros? Like, something=
 where<br>
&gt; we can say {CHATROOM:council}[Fedora Council] and it&#39;ll automatica=
lly link<br>
&gt; that to<br>
&gt; <br>
&gt; <a href=3D"https://matrix.to/#/%23matrix-meta-chat:fedoraproject.org?w=
eb-instance%5Belement.io%5D=3Dchat.fedoraproject.org" rel=3D"noreferrer" ta=
rget=3D"_blank">https://matrix.to/#/#matrix-meta-chat:fedoraproject.org?web=
-instance%5Belement.io%5D=3Dchat.fedoraproject.org</a><br>
<br>
So I found<br>
<a href=3D"https://www.magnolia-cms.com/blog/tips-for-writing-antora-macros=
.html" rel=3D"noreferrer" target=3D"_blank">https://www.magnolia-cms.com/bl=
og/tips-for-writing-antora-macros.html</a>, which<br>
links back to a Fedora docs example. :)<br>
<br>
-- <br>
Matthew Miller<br>
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">mattdm@fe=
doraproject.org</a>&gt;<br>
Fedora Project Leader<br>
_______________________________________________<br>
docs mailing list -- <a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a><br>
To unsubscribe send an email to <a href=3D"mailto:[email protected]=
oject.org" target=3D"_blank">[email protected]</a><br>
Fedora Code of Conduct: <a href=3D"https://docs.fedoraproject.org/en-US/pro=
ject/code-of-conduct/" rel=3D"noreferrer" target=3D"_blank">https://docs.fe=
doraproject.org/en-US/project/code-of-conduct/</a><br>
List Guidelines: <a href=3D"https://fedoraproject.org/wiki/Mailing_list_gui=
delines" rel=3D"noreferrer" target=3D"_blank">https://fedoraproject.org/wik=
i/Mailing_list_guidelines</a><br>
List Archives: <a href=3D"https://lists.fedoraproject.org/archives/list/doc=
[email protected]" rel=3D"noreferrer" target=3D"_blank">https://lis=
ts.fedoraproject.org/archives/list/[email protected]</a><br>
Do not reply to spam on the list, report it: <a href=3D"https://pagure.io/f=
edora-infrastructure" rel=3D"noreferrer" target=3D"_blank">https://pagure.i=
o/fedora-infrastructure</a><br>
</blockquote></div>

--000000000000ce519a05ce3dc68c--

--===============8116603111071057505==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZG9jcyBtYWls
aW5nIGxpc3QgLS0gZG9jc0BsaXN0cy5mZWRvcmFwcm9qZWN0Lm9yZwpUbyB1bnN1YnNjcmliZSBz
ZW5kIGFuIGVtYWlsIHRvIGRvY3MtbGVhdmVAbGlzdHMuZmVkb3JhcHJvamVjdC5vcmcKRmVkb3Jh
IENvZGUgb2YgQ29uZHVjdDogaHR0cHM6Ly9kb2NzLmZlZG9yYXByb2plY3Qub3JnL2VuLVVTL3By
b2plY3QvY29kZS1vZi1jb25kdWN0LwpMaXN0IEd1aWRlbGluZXM6IGh0dHBzOi8vZmVkb3JhcHJv
amVjdC5vcmcvd2lraS9NYWlsaW5nX2xpc3RfZ3VpZGVsaW5lcwpMaXN0IEFyY2hpdmVzOiBodHRw
czovL2xpc3RzLmZlZG9yYXByb2plY3Qub3JnL2FyY2hpdmVzL2xpc3QvZG9jc0BsaXN0cy5mZWRv
cmFwcm9qZWN0Lm9yZwpEbyBub3QgcmVwbHkgdG8gc3BhbSBvbiB0aGUgbGlzdCwgcmVwb3J0IGl0
OiBodHRwczovL3BhZ3VyZS5pby9mZWRvcmEtaW5mcmFzdHJ1Y3R1cmUK

--===============8116603111071057505==--