Skip to content

Commit 93285b8

Browse files
authored
fix: Render ASF policy links in static HTML footer (apache#1303)
The Lucene.NET website already has all required ASF policy links defined in docfx.json and toc.yml, but they're only rendered via client-side JavaScript. The ASF compliance scanner (https://whimsy.apache.org/site/) cannot execute JavaScript, so it reports 7 of 9 checks as failing. This PR: - Adds a footer.tmpl.partial that renders the ASF links as static HTML in the page footer (using the existing template variables) - Fixes "Apache feather logo" → "Apache logo" in trademark text (ASF rebranded in September 2025) - Updates license link to canonical https://www.apache.org/licenses/ See: https://www.apache.org/foundation/marks/pmcs Checker: https://whimsy.apache.org/site/
1 parent 1c95ddc commit 93285b8

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

websites/site/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"_appFaviconPath": "logo/favicon.ico",
4242
"_enableSearch": false,
4343
"_appLogoPath": "logo/lucene-net-color.png",
44-
"_appFooter": "Copyright &copy; 2025 The Apache Software Foundation, Licensed under the <a href='http://www.apache.org/licenses/LICENSE-2.0' target='_blank'>Apache License, Version 2.0</a><br/> <small>Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation. <br/>All other marks mentioned may be trademarks or registered trademarks of their respective owners.</small>",
44+
"_appFooter": "Copyright &copy; 2025 The Apache Software Foundation, Licensed under the <a href='https://www.apache.org/licenses/' target='_blank'>Apache License, Version 2.0</a><br/> <small>Apache Lucene.Net, Lucene.Net, Apache, the Apache logo, and the Apache Lucene.Net project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</small>",
4545
"_gitContribute": {
4646
"repo": "https://github.com/apache/lucenenet",
4747
"branch": "master"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<footer>
2+
<div class="container">
3+
<span class="pull-left">
4+
{{{_appFooter}}}{{^_appFooter}}Copyright &copy; 2025 The Apache Software Foundation{{/_appFooter}}
5+
</span>
6+
<div class="asf-links text-center">
7+
<a href="{{_asfFoundationHref}}">{{_asfFoundationText}}</a> |
8+
<a href="{{_asfEventsHref}}">{{_asfEventsText}}</a> |
9+
<a href="{{_asfLicenseHref}}">{{_asfLicenseText}}</a> |
10+
<a href="{{_asfSecurityHref}}">{{_asfSecurityText}}</a> |
11+
<a href="{{_asfSponsorshipHref}}">{{_asfSponsorshipText}}</a> |
12+
<a href="{{_asfThanksHref}}">{{_asfThanksText}}</a> |
13+
<a href="{{_asfPrivacyHref}}">{{_asfPrivacyText}}</a>
14+
</div>
15+
</div>
16+
</footer>

0 commit comments

Comments
 (0)