@@ -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.
1212All 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
0 commit comments