Skip to content

Commit 4163d1d

Browse files
authored
Merge pull request #909 from live-codes/clean-up
Clean-up
2 parents f11c838 + 0b54cdf commit 4163d1d

2 files changed

Lines changed: 23 additions & 33 deletions

File tree

β€Ždocs/docs/languages/astro.mdxβ€Ž

Lines changed: 17 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ There are **two primary modes** for building and rendering Astro pages:
88

99
### Static (Default)
1010

11-
In this mode, pages are fully pre-rendered at build time.
11+
In this mode, pages are fully pre-rendered at build time.
1212
All data must be available during the build process and can be supplied through **frontmatter**, **data fetching functions**, or **integrations**.
1313

1414
**Example:** Provide data to a page using frontmatter.
@@ -52,38 +52,29 @@ const data = await res.json();
5252

5353
## Language Info
5454

55-
* **Name:** Astro
56-
* **Extensions:** `.astro`
57-
* **Editor:** HTML / JSX-like
58-
* **Compiler:** Astro Compiler
59-
* **Version:** Latest (v4.x and above)
55+
### Name
6056

61-
⚠️ LiveCodes currently uses Astro v0.9.2, so some latest features may not be available.
57+
`astro`
6258

63-
---
59+
### Extension
6460

65-
## Code Formatting
61+
`astro`
6662

67-
Astro uses **Prettier** by default with the official Astro plugin.
63+
## Editor
6864

69-
---
65+
`markup`
7066

71-
## Custom Settings
67+
## Compiler
7268

73-
Custom settings can be passed in the `astro.config.mjs` file.
69+
Astro compiler
7470

75-
**Example:**
71+
### Version
7672

77-
```js
78-
// astro.config.mjs
79-
export default {
80-
site: 'https://example.com',
81-
integrations: [],
82-
output: 'static', // or 'server'
83-
};
84-
```
73+
`@astrojs/compiler`: `v2.2.8`
8574

86-
> Please ensure that all configuration values are valid JavaScript or JSON.
75+
## Code Formatting
76+
77+
Using [Prettier](https://prettier.io/).
8778

8879
---
8980

@@ -108,16 +99,9 @@ const data = await res.json();
10899
<p>{data.title}</p>
109100
```
110101

102+
## Links
111103

112-
---
113-
114-
## Official Resources
115-
116-
* 🌐 [Astro Documentation](https://docs.astro.build)
117-
* πŸ’» [Astro GitHub Repository](https://github.com/withastro/astro)
118-
* πŸ§ͺ [Astro Playground](https://stackblitz.com/github/withastro/astro/tree/latest/examples/hello-world)
119-
* πŸ“° [Astro Blog](https://astro.build/blog)
120-
* πŸ’¬ [Astro Discord Community](https://astro.build/chat)
121-
* 🌐 [Astro Starter Template](https://livecodes.io/?template=astro)
104+
- [Astro Documentation](https://docs.astro.build)
105+
- [Astro Starter Template](https://livecodes.io/?template=astro)
122106

123107

β€Žsrc/livecodes/i18n/locale-paths.tsβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ export const pathLoader = (baseUrl: string) => (lngs: string[], nss: string[]) =
6969
if (lng === 'ru' && ns === 'translation') {
7070
return baseUrl + '{{hash:i18n-ru-translation.json}}';
7171
}
72+
if (lng === 'tr' && ns === 'language-info') {
73+
return baseUrl + '{{hash:i18n-tr-language-info.json}}';
74+
}
75+
if (lng === 'tr' && ns === 'translation') {
76+
return baseUrl + '{{hash:i18n-tr-translation.json}}';
77+
}
7278
if (lng === 'ur' && ns === 'language-info') {
7379
return baseUrl + '{{hash:i18n-ur-language-info.json}}';
7480
}

0 commit comments

Comments
Β (0)