From 90a0212b5f6b6c146c097b23e55177042b96c522 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 18:11:26 -0300 Subject: [PATCH 01/10] fix: fetch full git history on netlify so lunaria resolves new files --- netlify.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netlify.toml b/netlify.toml index c07809bd85..0762c634bc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,10 @@ [context.deploy-preview.environment] TAURI_DOCS_SKIP_IMAGE_OPT = "true" +[build] +# Netlify clones shallow; Lunaria needs full git history to see files added in PRs +command = "(git fetch --unshallow --filter=blob:none origin || true) && pnpm build" + [build.environment] NODE_VERSION = "24" From 01e094d28ed9659c6e9a577d10e5fff61e644baa Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 18:22:13 -0300 Subject: [PATCH 02/10] temp --- src/content/docs/about/lunaria.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/content/docs/about/lunaria.md diff --git a/src/content/docs/about/lunaria.md b/src/content/docs/about/lunaria.md new file mode 100644 index 0000000000..81a6a7af78 --- /dev/null +++ b/src/content/docs/about/lunaria.md @@ -0,0 +1,6 @@ +--- +title: Lunaria +# draft: true +--- + +Tempo From b8d9ae3f1047e2c7d16e4ad827ab0a5beebccec4 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 18:25:00 -0300 Subject: [PATCH 03/10] Revert "fix: fetch full git history on netlify so lunaria resolves new files" This reverts commit 90a0212b5f6b6c146c097b23e55177042b96c522. --- netlify.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index 0762c634bc..c07809bd85 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,6 @@ [context.deploy-preview.environment] TAURI_DOCS_SKIP_IMAGE_OPT = "true" -[build] -# Netlify clones shallow; Lunaria needs full git history to see files added in PRs -command = "(git fetch --unshallow --filter=blob:none origin || true) && pnpm build" - [build.environment] NODE_VERSION = "24" From 72ec63b23f540d13de49b6f273eaad77723f1e58 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 18:28:29 -0300 Subject: [PATCH 04/10] Reapply "fix: fetch full git history on netlify so lunaria resolves new files" This reverts commit b8d9ae3f1047e2c7d16e4ad827ab0a5beebccec4. --- netlify.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netlify.toml b/netlify.toml index c07809bd85..0762c634bc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,10 @@ [context.deploy-preview.environment] TAURI_DOCS_SKIP_IMAGE_OPT = "true" +[build] +# Netlify clones shallow; Lunaria needs full git history to see files added in PRs +command = "(git fetch --unshallow --filter=blob:none origin || true) && pnpm build" + [build.environment] NODE_VERSION = "24" From 3c4f5b9f8a73202e616e80f668427c1678507731 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 18:32:02 -0300 Subject: [PATCH 05/10] hmm --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 0762c634bc..5842c5be48 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ TAURI_DOCS_SKIP_IMAGE_OPT = "true" [build] # Netlify clones shallow; Lunaria needs full git history to see files added in PRs -command = "(git fetch --unshallow --filter=blob:none origin || true) && pnpm build" +command = "git fetch --unshallow origin && pnpm build" [build.environment] NODE_VERSION = "24" From f5e62645bbc68306732f88e654d6115dcbc7f8be Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 18:45:42 -0300 Subject: [PATCH 06/10] now --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 5842c5be48..56a4803380 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ TAURI_DOCS_SKIP_IMAGE_OPT = "true" [build] # Netlify clones shallow; Lunaria needs full git history to see files added in PRs -command = "git fetch --unshallow origin && pnpm build" +command = "if [ -f .git/shallow ]; then git fetch --unshallow origin; fi && pnpm build" [build.environment] NODE_VERSION = "24" From d4865a48b01a8c22f19d1ff37f1bba8703066c6f Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 18:53:21 -0300 Subject: [PATCH 07/10] hmm --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 56a4803380..661a26fb17 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ TAURI_DOCS_SKIP_IMAGE_OPT = "true" [build] # Netlify clones shallow; Lunaria needs full git history to see files added in PRs -command = "if [ -f .git/shallow ]; then git fetch --unshallow origin; fi && pnpm build" +command = "git fetch $(test -f .git/shallow && echo --unshallow) origin '+refs/heads/*:refs/remotes/origin/*' && pnpm build" [build.environment] NODE_VERSION = "24" From 11f3284581a7a13c8a5ea0891a2c27def64b2289 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 19:18:01 -0300 Subject: [PATCH 08/10] hmmm --- astro.config.mjs | 4 +++- netlify.toml | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 9e1ca37830..ec050b4060 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -380,7 +380,9 @@ export default defineConfig({ ], }), starlightLlmsTxt(llmsTxtConfig), - lunaria({ configPath: './lunaria.config.json', route: '/contribute/translate-status' }), + ...(process.env.CONTEXT === 'deploy-preview' + ? [] + : [lunaria({ configPath: './lunaria.config.json', route: '/contribute/translate-status' })]), ], title: 'Tauri', description: 'The cross-platform app building toolkit', diff --git a/netlify.toml b/netlify.toml index 661a26fb17..c07809bd85 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,6 @@ [context.deploy-preview.environment] TAURI_DOCS_SKIP_IMAGE_OPT = "true" -[build] -# Netlify clones shallow; Lunaria needs full git history to see files added in PRs -command = "git fetch $(test -f .git/shallow && echo --unshallow) origin '+refs/heads/*:refs/remotes/origin/*' && pnpm build" - [build.environment] NODE_VERSION = "24" From 56cb2f3ed5730782ff6d67219f6aec060f712e9b Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 19:21:02 -0300 Subject: [PATCH 09/10] Revert "temp" This reverts commit 01e094d28ed9659c6e9a577d10e5fff61e644baa. --- src/content/docs/about/lunaria.md | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 src/content/docs/about/lunaria.md diff --git a/src/content/docs/about/lunaria.md b/src/content/docs/about/lunaria.md deleted file mode 100644 index 81a6a7af78..0000000000 --- a/src/content/docs/about/lunaria.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Lunaria -# draft: true ---- - -Tempo From 9a0d55156de727704f2a85a35c7082a6d711189f Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Wed, 12 Aug 2026 19:22:19 -0300 Subject: [PATCH 10/10] format --- astro.config.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index ec050b4060..6cf7b22347 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -382,7 +382,12 @@ export default defineConfig({ starlightLlmsTxt(llmsTxtConfig), ...(process.env.CONTEXT === 'deploy-preview' ? [] - : [lunaria({ configPath: './lunaria.config.json', route: '/contribute/translate-status' })]), + : [ + lunaria({ + configPath: './lunaria.config.json', + route: '/contribute/translate-status', + }), + ]), ], title: 'Tauri', description: 'The cross-platform app building toolkit',