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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ build
npm-debug.log*

.eslintcache
.stylelintcache
8 changes: 7 additions & 1 deletion DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ This command starts a local development server and opens up a browser window. Mo
pnpm build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.
This command generates static content in the `build` directory. The generated content can be served using any static hosting service.

## Translation status dashboard

The `/translation-status/` page is generated by the [`@lunariajs/starlight`](https://lunaria.dev/integrations/starlight/) plugin. It shows translation progress by file and locale, and is included in `pnpm build`.

Lunaria uses git history to detect outdated translations, so CI needs the full git history. When using `actions/checkout`, set `fetch-depth: 0`; with a shallow clone, Lunaria may treat all translations as up to date.

## Preview

Expand Down
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import starlight from "@astrojs/starlight";
import remarkHeaderId from "remark-heading-id";
import starlightLlmsTxt from "starlight-llms-txt";
import starlightLinksValidator from "starlight-links-validator";
import lunaria from "@lunariajs/starlight";

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -110,6 +111,7 @@ export default defineConfig({
errorOnFallbackPages: false,
errorOnInconsistentLocale: true,
}),
lunaria({ route: "translation-status" }),
],
locales: {
root: {
Expand Down Expand Up @@ -223,6 +225,10 @@ export default defineConfig({
{
slug: "docs/branding",
},
{
label: "Translation Status",
link: "/translation-status/",
},
],
},
{
Expand Down
41 changes: 41 additions & 0 deletions lunaria.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "./node_modules/@lunariajs/core/config.schema.json",
"repository": {
"name": "feature-sliced/documentation",
"branch": "master",
"rootDir": ".",
"hosting": "github"
},
"dashboard": {
"title": "Feature-Sliced Design — Translation Status",
"description": "Translation progress for the Feature-Sliced Design documentation.",
"site": "https://fsd.how/translation-status/",
"basesToHide": ["src/content/docs"],
"customCss": ["./src/styles/lunaria.css"],
"favicon": {
"inline": "./static/img/favicon/adaptive.svg"
}
},
"defaultLocale": {
"lang": "en",
"label": "English"
},
"locales": [
{ "lang": "ru", "label": "Русский" },
{ "lang": "uz", "label": "O'zbekcha" },
{ "lang": "kr", "label": "한국어" },
{ "lang": "ja", "label": "日本語" },
{ "lang": "vi", "label": "Tiếng Việt" },
{ "lang": "zh", "label": "中文" }
],
"files": [
{
"type": "universal",
"location": "src/content/docs/**/*.{md,mdx}",
"pattern": "src/content/docs/@lang/@path",
"ignore": []
}
],
"outDir": "./static/translation-status",
"cloneDir": "./node_modules/.cache/lunaria"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@astrojs/starlight": "^0.37.4",
"@lunariajs/starlight": "^0.1.1",
"@types/node": "^22.18.6",
"astro": "^5.16.16",
"eslint": "^10.3.0",
Expand Down
Loading
Loading