Skip to content

Commit

Permalink
Migrate Astro Docs to Lunaria v1 prerelease (withastro#9978)
Browse files Browse the repository at this point in the history
* Migrate Astro Docs to Lunaria v1 prerelease

* guess who forgot a commit

* Add prerelease GitHub Action version

* Fix script folder creation

* Fix incorrect source history links and date

* Update Lunaria
  • Loading branch information
yanthomasdev authored Nov 12, 2024
1 parent 8b2875f commit 5a24309
Show file tree
Hide file tree
Showing 10 changed files with 919 additions and 115 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lunaria.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ jobs:
uses: ./.github/actions/install

- name: Generate Lunaria Overview
uses: yanthomasdev/lunaria-action@v0.1.0
uses: lunariajs/action@astro-docs
with:
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
135 changes: 135 additions & 0 deletions lunaria.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
import { defineConfig } from '@lunariajs/core/config';

export default defineConfig({
repository: {
name: 'withastro/docs',
},
sourceLocale: {
label: 'English',
lang: 'en',
parameters: {
tag: 'en',
},
},
locales: [
{
label: 'العربية',
lang: 'ar',
parameters: {
tag: 'ar',
},
},
{
label: 'Deutsch',
lang: 'de',
parameters: {
tag: 'de',
},
},
{
label: 'Español',
lang: 'es',
parameters: {
tag: 'es',
},
},
{
label: 'Français',
lang: 'fr',
parameters: {
tag: 'fr',
},
},
{
label: 'हिन्दी',
lang: 'hi',
parameters: {
tag: 'hi',
},
},
{
label: 'Italiano',
lang: 'it',
parameters: {
tag: 'it',
},
},
{
label: '日本語',
lang: 'ja',
parameters: {
tag: 'ja',
},
},
{
label: '한국어',
lang: 'ko',
parameters: {
tag: 'ko',
},
},
{
label: 'Polski',
lang: 'pl',
parameters: {
tag: 'pl',
},
},
{
label: 'Português do Brasil',
lang: 'pt-br',
parameters: {
tag: 'pt-BR',
},
},
{
label: 'Русский',
lang: 'ru',
parameters: {
tag: 'ru',
},
},
{
label: '简体中文',
lang: 'zh-cn',
parameters: {
tag: 'zh-CN',
},
},
{
label: '正體中文',
lang: 'zh-tw',
parameters: {
tag: 'zh-TW',
},
},
],
files: [
{
include: ['src/i18n/en/(ui|docsearch).ts'],
pattern: 'src/i18n/@lang/@path',
type: 'dictionary',
},
{
include: ['src/i18n/en/nav.ts'],
pattern: 'src/i18n/@lang/@path',
type: 'universal',
},
{
include: ['src/content/docs/en/**/*.(md|mdx)'],
pattern: 'src/content/docs/@lang/@path',
type: 'universal',
},
],
tracking: {
localizableProperty: 'i18nReady',
ignoredKeywords: [
'lunaria-ignore',
'typo',
'en-only',
'broken link',
'i18nReady',
'i18nIgnore',
],
},
});
Loading

0 comments on commit 5a24309

Please sign in to comment.