fix(docs): update documentation for clarity and structure

- Revised the `getting-started.md` and `documentation-layout.md` files to improve clarity and organization of content.
- Enhanced descriptions and added tables for better readability in the `getting-started.md` file.
- Updated the `greg-hooks-registry.md` to reflect changes in the hook mapping and clarify the role of `greg_hooks.json`.
- Adjusted the `fmf-hook-naming.md` and `fmf-hooks-catalog.md` to emphasize the transition from legacy naming conventions to the new `greg.*` format.

This commit aims to improve the overall clarity and usability of the documentation, ensuring users have a better understanding of the framework and its components.
This commit is contained in:
Marvin
2026-04-10 04:34:18 +02:00
parent 58c0df760b
commit 9605741570
9 changed files with 143 additions and 216 deletions

View File

@@ -77,8 +77,12 @@ const config = {
return [`/wiki/mods/extensions/${slug}`, `/wiki/mods/mods/${slug}`];
}
if (existingPath.startsWith('/wiki/')) {
const legacyPath = existingPath.replace('/wiki', '');
if (existingPath.startsWith('/wiki')) {
const legacyPath = existingPath.slice('/wiki'.length) || '/';
// Never map site root (/) onto /wiki — that would override the homepage.
if (legacyPath === '/' || legacyPath === '') {
return undefined;
}
// Avoid shadowing static pages and explicit redirects in `redirects` below
if (
legacyPath === '/mods' ||