This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch acevent
in repository https://gitbox.apache.org/repos/asf/attic.git

commit e5f7a36c226ce4cd322b0d49f84e280d8c43ae68
Author: Sebb <s...@apache.org>
AuthorDate: Tue May 6 01:20:19 2025 +0100

    Move acevent to just after Events
---
 .asf.yaml                        | 5 +++++
 _config.yml                      | 4 ++++
 _includes/nav_footer_custom.html | 2 --
 _plugins/setup.rb                | 9 +++++++++
 4 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 1da4e2c..061fdc7 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -42,3 +42,8 @@ notifications:
   jira_options: link label worklog
   jobs: general@attic.apache.org
   discussions: general@attic.apache.org
+
+# temporary section for testing acevent
+staging:
+  profile: acevent
+  whoami: acevent
\ No newline at end of file
diff --git a/_config.yml b/_config.yml
index fafeccd..ed72739 100644
--- a/_config.yml
+++ b/_config.yml
@@ -52,6 +52,10 @@ nav_external_links:
       url: https://events.apache.org/
       opens_in_new_tab: true
       hide_icon: true
+    - title: ~
+      # Dummy entry for acevent
+      url: 'http://localhost/#acevent'
+      hide_icon: true
 
 # For Callouts, see 
https://just-the-docs.github.io/just-the-docs/docs/configuration/#callouts
 callouts:
diff --git a/_includes/nav_footer_custom.html b/_includes/nav_footer_custom.html
index 27bcb43..8cf0848 100644
--- a/_includes/nav_footer_custom.html
+++ b/_includes/nav_footer_custom.html
@@ -23,7 +23,5 @@ limitations under the License.
 <nav aria-label="Main" id="site-nav-custom" class="site-nav">
 <ul class="nav-list">
        <li class="nav-list-item"><button class="btn"><a href="{{ site.repo 
}}/edit/main/{{ path }}" id="edit-this-page">Improve this page</a></button></li>
-       <li class="nav-list-item">&nbsp;</li>
-       <li class="nav-list-item"><a class="acevent" data-format="square"> 
</a></li>
 </ul>
 </nav>
diff --git a/_plugins/setup.rb b/_plugins/setup.rb
index f0e0446..aa72125 100644
--- a/_plugins/setup.rb
+++ b/_plugins/setup.rb
@@ -47,4 +47,13 @@ module Setup
       end
     end
   end
+  # Massage page to insert acevent class
+  Jekyll::Hooks.register :pages, :post_render do |page|
+    if page.relative_path =~ %r{\.(md|html)$}
+      page.output.gsub!(
+        %r{<a href="http://localhost/#acevent"; class="nav-list-link external"},
+        '<a class="nav-list-link acevent" data-format="square"'
+      )
+    end
+  end
 end
\ No newline at end of file

Reply via email to