Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion docs/Election2022.md → docs/foundation/elections/2022.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Election 2022"
title: "2022"
---

# AlmaLinux Board of Directors Election 2022
Expand Down
2 changes: 1 addition & 1 deletion docs/election2023.md → docs/foundation/elections/2023.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Election 2023"
title: "2023"
---

# AlmaLinux Board of Directors Election 2023
Expand Down
2 changes: 1 addition & 1 deletion docs/Election2025.md → docs/foundation/elections/2025.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Election 2025 - Rescheduled"
title: "2025 - Rescheduled"
---

# AlmaLinux Board of Directors Election 2025 - RESCHEDULED
Expand Down
10 changes: 5 additions & 5 deletions docs/foundation/elections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ 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 |
| ------------- | ----------------------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| 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) |
| 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) |

## FAQ

Expand Down
Loading