From 12954841c9c60197e8eb4594ade39b23d35f71dc Mon Sep 17 00:00:00 2001 From: Alex Iribarren Date: Sat, 25 Jul 2026 20:02:26 +0200 Subject: [PATCH 1/3] Reorganize elections pages --- docs/.vuepress/config.js | 31 +++++++++++++++++-- .../elections/2022.md} | 2 +- .../elections/2023.md} | 2 +- .../elections/2025.md} | 2 +- docs/foundation/elections/README.md | 6 ++-- 5 files changed, 34 insertions(+), 9 deletions(-) rename docs/{Election2022.md => foundation/elections/2022.md} (99%) rename docs/{election2023.md => foundation/elections/2023.md} (99%) rename docs/{Election2025.md => foundation/elections/2025.md} (99%) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 932201abd..88b1c4dc3 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,3 +1,12 @@ +// Redirects for pages that have moved, so old external links keep working. +// Key = old URL (as it used to be served, case-sensitive), value = new URL. +// Add an entry here whenever you relocate or rename a page. +const redirects = { + "/Election2022.html": "/foundation/elections/2022.html", + "/election2023.html": "/foundation/elections/2023.html", + "/Election2025.html": "/foundation/elections/2025.html", +}; + module.exports = { title: "AlmaLinux Wiki", description: "AlmaLinux OS Documentation", @@ -36,6 +45,22 @@ module.exports = { }, }, ], + // Generate a lightweight redirect page for each entry in `redirects`. + // Each stub does an instant meta-refresh to the new location (GitHub + // Pages can't do server-side redirects) and is marked noindex. + (options, ctx) => ({ + name: "redirect-moved-pages", + additionalPages: Object.entries(redirects).map(([from, to]) => ({ + path: from, + content: + "---\n" + + "meta:\n" + + ` - http-equiv: refresh\n content: "0; url=${to}"\n` + + " - name: robots\n content: noindex\n" + + "---\n\n" + + `This page has moved to [${to}](${to}).\n`, + })), + }), ], themeConfig: { lastUpdated: true, @@ -360,10 +385,10 @@ module.exports = { title: "Elections", path: "/foundation/elections/", children: [ - "/Election2022", - "/election2023", - "/Election2025", "/foundation/elections/processesandterms", + "/foundation/elections/2022", + "/foundation/elections/2023", + "/foundation/elections/2025", ], }, "/policies/expense_policy", diff --git a/docs/Election2022.md b/docs/foundation/elections/2022.md similarity index 99% rename from docs/Election2022.md rename to docs/foundation/elections/2022.md index 544633db3..22b195522 100644 --- a/docs/Election2022.md +++ b/docs/foundation/elections/2022.md @@ -1,5 +1,5 @@ --- -title: "Election 2022" +title: "2022" --- # AlmaLinux Board of Directors Election 2022 diff --git a/docs/election2023.md b/docs/foundation/elections/2023.md similarity index 99% rename from docs/election2023.md rename to docs/foundation/elections/2023.md index 17b77ea23..7736cf051 100644 --- a/docs/election2023.md +++ b/docs/foundation/elections/2023.md @@ -1,5 +1,5 @@ --- -title: "Election 2023" +title: "2023" --- # AlmaLinux Board of Directors Election 2023 diff --git a/docs/Election2025.md b/docs/foundation/elections/2025.md similarity index 99% rename from docs/Election2025.md rename to docs/foundation/elections/2025.md index d51aa1add..17d1dbd8c 100644 --- a/docs/Election2025.md +++ b/docs/foundation/elections/2025.md @@ -1,5 +1,5 @@ --- -title: "Election 2025 - Rescheduled" +title: "2025 - Rescheduled" --- # AlmaLinux Board of Directors Election 2025 - RESCHEDULED diff --git a/docs/foundation/elections/README.md b/docs/foundation/elections/README.md index a405b0f3b..f7d3c7ca5 100644 --- a/docs/foundation/elections/README.md +++ b/docs/foundation/elections/README.md @@ -22,9 +22,9 @@ Information about the nominations and the election status are tracked on the ele | Election year | Tracking page | Election status | Link to announcements | | ------------- | ----------------------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | -| 2022 | [Election 2022](/Election2022.html) | Complete | [First AlmaLinux Board Election Announces 7 New Seats](https://almalinux.org/blog/first-almalinux-board-election-announces-7-new-seats/) | -| 2023 | [Election 2023](/election2023.html) | Complete | [Meet our two new board members!](https://almalinux.org/blog/2023-12-19-jun-and-alex-join-board/) | -| 2025 | [Election 2025](/Election2025.html) | Rescheduled - 2026 | [Election rescheduled for March 2026](https://almalinux.org/blog/2025-09-30-election-update/) (blog) | +| 2022 | [Election 2022](/foundation/elections/2022.html) | Complete | [First AlmaLinux Board Election Announces 7 New Seats](https://almalinux.org/blog/first-almalinux-board-election-announces-7-new-seats/) | +| 2023 | [Election 2023](/foundation/elections/2023.html) | Complete | [Meet our two new board members!](https://almalinux.org/blog/2023-12-19-jun-and-alex-join-board/) | +| 2025 | [Election 2025](/foundation/elections/2025.html) | Rescheduled - 2026 | [Election rescheduled for March 2026](https://almalinux.org/blog/2025-09-30-election-update/) (blog) | ## FAQ From c5cd9be7dd89d5c4345822e5b87a9594a9bc6437 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 25 Jul 2026 18:02:59 +0000 Subject: [PATCH 2/3] Apply Prettier format --- docs/foundation/elections/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/foundation/elections/README.md b/docs/foundation/elections/README.md index f7d3c7ca5..cba89cf58 100644 --- a/docs/foundation/elections/README.md +++ b/docs/foundation/elections/README.md @@ -20,8 +20,8 @@ The AlmaLinux bylaws were set up to include regular elections, to ensure AlmaLin Information about the nominations and the election status are tracked on the election specific pages: -| Election year | Tracking page | Election status | Link to announcements | -| ------------- | ----------------------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | +| Election year | Tracking page | Election status | Link to announcements | +| ------------- | ------------------------------------------------ | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | | 2022 | [Election 2022](/foundation/elections/2022.html) | Complete | [First AlmaLinux Board Election Announces 7 New Seats](https://almalinux.org/blog/first-almalinux-board-election-announces-7-new-seats/) | | 2023 | [Election 2023](/foundation/elections/2023.html) | Complete | [Meet our two new board members!](https://almalinux.org/blog/2023-12-19-jun-and-alex-join-board/) | | 2025 | [Election 2025](/foundation/elections/2025.html) | Rescheduled - 2026 | [Election rescheduled for March 2026](https://almalinux.org/blog/2025-09-30-election-update/) (blog) | From 21e0254d6948ff99290a553d8879b2d82f9631a9 Mon Sep 17 00:00:00 2001 From: Alex Iribarren Date: Mon, 27 Jul 2026 19:00:52 +0200 Subject: [PATCH 3/3] Document the redirects --- docs/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/README.md b/docs/README.md index 39f70b87b..8151ddc93 100644 --- a/docs/README.md +++ b/docs/README.md @@ -46,6 +46,10 @@ There are many ways to contribute to the wiki! To see how, check out the [Contributing to Documentation](https://wiki.almalinux.org/Contribute-to-Documentation.html) guide. Before submitting pull requests, always make sure that your updates will build and display correctly, by testing in your local environment using `yarn docs:dev`. +### Redirections + +Because the wiki is served from GitHub Pages, there is no server-side rewrite available, so moved or renamed pages are handled by a small VuePress plugin that generates a redirect stub for every old URL. The mapping lives in the `redirects` object at the top of [`docs/.vuepress/config.js`](https://github.com/AlmaLinux/wiki/blob/master/docs/.vuepress/config.js), where each key is the old URL exactly as it used to be served (case-sensitive, including the `.html` suffix) and each value is the new URL — for example `"/Election2022.html": "/foundation/elections/2022.html"`. At build time the plugin emits one page per entry containing a `0; url=…` meta refresh plus a `robots: noindex` tag, so visitors following an old external link land on the new page instantly and search engines are not left indexing the stub. To use it, whenever you relocate or rename a page, add one line to that object mapping the old path to the new one, update any in-wiki links to point at the new location directly, and check both the old and the new URL with `yarn docs:dev` before opening your pull request. + ### Transparency Statement - We are community-owned, which requires transparency. Here is our [progress toward that goal](Transparency.md).