[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-docs-list
Subject: "latest version" links at the top of pages (for docs that are versioned?)
From: Matthew Miller <mattdm () fedoraproject ! org>
Date: 2021-11-29 21:38:16
Message-ID: 20211129213816.GA4568 () mattdm ! org
[Download RAW message or body]
Can we do this?
https://gitlab.com/antora/antora/-/issues/612
That includes:
{{#unless (eq page.componentVersion page.component.latest)}}
<div class="article-banner">
{{#if page.componentVersion.prerelease}}
<p>You are viewing the documentation for a prerelease version.</p>
{{else}}
<p>A newer version of this documentation is available.</p>
{{/if}}
<a class="btn" href="{{relativize page.latest.url}}">View Latest</a>
</div>
{{/unless}}
... but I'm not quite sure where that would go!
Also, is it possible to have a stable link to the latest non-rawhide version
of something? (Like, the release notes?)
--
Matthew Miller
<mattdm@fedoraproject.org>
Fedora Project Leader
_______________________________________________
docs mailing list -- docs@lists.fedoraproject.org
To unsubscribe send an email to docs-leave@lists.fedoraproject.org
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/docs@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic