refactor: update project branding and structure for gregFramework

- Changed project title and tagline in docusaurus.config.js to reflect the new branding.
- Updated package.json and package-lock.json to rename the project to gregwiki-docs-site.
- Adjusted sidebar and documentation files to align with the new project structure and naming conventions.
- Enhanced documentation content for clarity and consistency across various sections.
- Added Prettier as a development dependency for code formatting.

This commit aligns the project with the new branding and improves overall documentation quality.
This commit is contained in:
Marvin
2026-04-10 01:20:22 +02:00
parent 31cd24b462
commit ea92a0baf8
295 changed files with 835 additions and 34708 deletions

View File

@@ -25,10 +25,10 @@ function walk(dir) {
}
const roots = [
path.resolve(import.meta.dirname, '../docs/wiki-import'),
path.resolve(import.meta.dirname, '../docs/legacy/wiki-import'),
path.resolve(
import.meta.dirname,
'../i18n/de/docusaurus-plugin-content-docs/current/wiki-import',
'../i18n/de/docusaurus-plugin-content-docs/current/legacy/wiki-import',
),
];
for (const r of roots) {

View File

@@ -1,9 +1,9 @@
/**
* Split legacy wiki-import pairs (Base.md = DE, Base-en.md = EN) into:
* - docs/wiki-import/** → default locale (en), Docusaurus
* - wiki/i18n/de/docusaurus-plugin-content-docs/current/wiki-import/** → Deutsch
* - docs/legacy/wiki-import/** → default locale (en), Docusaurus
* - i18n/de/.../current/legacy/wiki-import/** → Deutsch
*
* German-only pages (no Base-en.md) → DE in i18n/de, EN stub in docs/wiki-import.
* German-only pages (no Base-en.md) → DE in i18n/de, EN stub in docs/legacy/wiki-import.
*
* Usage (from gregWiki repo root):
* node scripts/normalize-wiki-import-i18n.mjs
@@ -22,13 +22,14 @@ import {
import {basename, dirname, join, relative, resolve} from 'node:path';
const repoRoot = resolve(import.meta.dirname, '..');
const docsWikiImport = join(repoRoot, 'docs', 'wiki-import');
const docsWikiImport = join(repoRoot, 'docs', 'legacy', 'wiki-import');
const deWikiImport = join(
repoRoot,
'i18n',
'de',
'docusaurus-plugin-content-docs',
'current',
'legacy',
'wiki-import',
);
@@ -41,7 +42,7 @@ description: English translation pending; use the Deutsch locale for the full le
---
:::note
This page is available in **German** in the legacy wiki import. Use the language menu (**Deutsch**) for the full text, or contribute an English translation under \`docs/wiki-import\`.
This page is available in **German** in the legacy wiki import. Use the language menu (**Deutsch**) for the full text, or contribute an English translation under \`docs/legacy/wiki-import\`.
:::
`;

View File

@@ -4,12 +4,12 @@ import {join, resolve} from 'node:path';
const projectRoot = resolve(process.cwd());
const gregFrameworkRoot = resolve(projectRoot, '..');
const wikiDir = join(gregFrameworkRoot, '.wiki');
const outDir = join(projectRoot, 'docs', 'wiki-import');
const outDir = join(projectRoot, 'docs', 'legacy', 'wiki-import');
if (!existsSync(wikiDir)) {
console.error(
`Missing ${wikiDir}. Clone or restore the GitHub Wiki working tree there, then re-run this script.\n` +
'Existing files under docs/wiki-import/ are left unchanged.',
'Existing files under docs/legacy/wiki-import/ are left unchanged.',
);
process.exit(1);
}

View File

@@ -18,10 +18,10 @@ const pairs = [
];
const bases = [
path.resolve(import.meta.dirname, '../docs/wiki-import'),
path.resolve(import.meta.dirname, '../docs/legacy/wiki-import'),
path.resolve(
import.meta.dirname,
'../i18n/de/docusaurus-plugin-content-docs/current/wiki-import',
'../i18n/de/docusaurus-plugin-content-docs/current/legacy/wiki-import',
),
];