aboutsummaryrefslogtreecommitdiff
path: root/examples/docs
diff options
context:
space:
mode:
authorGravatar Rafid Muhymin Wafi <rafidmuhymin@gmail.com> 2022-04-11 03:59:27 +0600
committerGravatar GitHub <noreply@github.com> 2022-04-10 18:59:27 -0300
commit336eaa777b959d67bfb3f1506acec0f02ad3ccf6 (patch)
tree51d92769298a9a4c29e3125a4051edae366a32cc /examples/docs
parent732ea3881e216f0e6de3642c549afd019d32409f (diff)
downloadastro-336eaa777b959d67bfb3f1506acec0f02ad3ccf6.tar.gz
astro-336eaa777b959d67bfb3f1506acec0f02ad3ccf6.tar.zst
astro-336eaa777b959d67bfb3f1506acec0f02ad3ccf6.zip
Fixed MD Lint issues (#3038)
Diffstat (limited to 'examples/docs')
-rw-r--r--examples/docs/README.md23
1 files changed, 11 insertions, 12 deletions
diff --git a/examples/docs/README.md b/examples/docs/README.md
index 847db8d00..480073e53 100644
--- a/examples/docs/README.md
+++ b/examples/docs/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Docs Site
-```
+```bash
npm init astro -- --template docs
```
@@ -22,7 +22,7 @@ npm init astro -- --template docs
All commands are run from the root of the project, from a terminal:
| Command | Action |
-|:---------------- |:-------------------------------------------- |
+| :---------------- | :------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
@@ -34,12 +34,12 @@ To deploy your site to production, check out our [Deploy an Astro Website](https
Welcome! Check out [our documentation](https://github.com/withastro/astro) or jump into our [Discord server](https://astro.build/chat).
-
## Customize This Theme
### Site metadata
`src/config.ts` contains several data objects that describe metadata about your site like title, description, default language, and Open Graph details. You can customize these to match your project.
+
### CSS styling
The theme's look and feel is controlled by a few key variables that you can customize yourself. You'll find them in the `public/theme.css` CSS file.
@@ -72,7 +72,6 @@ layout: ../../layouts/MainLayout.astro
For more SEO related properties, look at `src/components/HeadSEO.astro`
-
### Sidebar navigation
The sidebar navigation is controlled by the `SIDEBAR` variable in your `src/config.ts` file. You can customize the sidebar by modifying this object. A default, starter navigation has already been created for you.
@@ -80,13 +79,13 @@ The sidebar navigation is controlled by the `SIDEBAR` variable in your `src/conf
```ts
export const SIDEBAR = {
en: [
- { text: 'Section Header', header: true, },
- { text: 'Introduction', link: 'en/introduction' },
- { text: 'Page 2', link: 'en/page-2' },
- { text: 'Page 3', link: 'en/page-3' },
+ { text: "Section Header", header: true },
+ { text: "Introduction", link: "en/introduction" },
+ { text: "Page 2", link: "en/page-2" },
+ { text: "Page 3", link: "en/page-3" },
- { text: 'Another Section', header: true },
- { text: 'Page 4', link: 'en/page-4' },
+ { text: "Another Section", header: true },
+ { text: "Page 4", link: "en/page-4" },
],
};
```
@@ -147,7 +146,7 @@ If you plan to use Spanish as the the default language, you just need to modify
```diff
<script>
-- window.location.pathname = `/en/introduction`;
+- window.location.pathname = `/en/introduction`;
+ window.location.pathname = `/es/introduction`;
</script>
```
@@ -166,4 +165,4 @@ If that single language is not English, you can just replace `en` in directory l
Note that Aglolia and Astro are not affiliated. We have no say over acceptance to the DocSearch program.
-If you'd prefer to remove Algolia's search and replace it with your own, check out the `src/components/Header.astro` component to see where the component is added. \ No newline at end of file
+If you'd prefer to remove Algolia's search and replace it with your own, check out the `src/components/Header.astro` component to see where the component is added.