Skip to content

Commit

Permalink
Add sections
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Aug 7, 2024
1 parent fec0d9b commit ec9fd0a
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 16 deletions.
46 changes: 37 additions & 9 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { loadEnv } from 'vite';

const { SITE_URL = 'http://localhost:4444', SITE_BASE = '' } = loadEnv(process.env.NODE_ENV, process.cwd(), "");
console.log('SITE_URL', SITE_URL);
console.log('SITE_BASE', SITE_BASE);
if (SITE_BASE !== '')
console.log('SITE_BASE', SITE_BASE);
else
console.log('No site base.')

// https://astro.build/config
export default defineConfig({
site: SITE_URL,
Expand All @@ -14,20 +18,44 @@ export default defineConfig({
integrations: [
starlight({
title: 'Selenite Docs',
social: {
github: 'https://github.com/withastro/starlight',
},
// social: {
// github: 'https://github.com/withastro/starlight',
// },
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Getting started', slug: 'guides/getting-started' },
],
label: 'General',
autogenerate: { directory: 'general' },
translations: {
fr: 'Général',
},
},
{
label: 'Simplified interface',
autogenerate: { directory: 'simplified-interface' },
translations: {
fr: 'Interface simplifiée',
},
},
{
label: 'Advanced interface',
autogenerate: { directory: 'advanced-interface' },
translations: {
fr: 'Interface avancée',
},
},
{
label: 'Developper',
autogenerate: { directory: 'developper' },
translations: {
fr: 'Développeur',
},
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
translations: {
fr: 'Référence',
},
},
],
defaultLocale: 'root',
Expand Down
13 changes: 13 additions & 0 deletions src/content/docs/advanced-interface/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Introduction Advanced
description: A guide in my new Starlight docs site.
sidebar:
order: 0
---

Guides lead a user through a specific task they want to accomplish, often with a sequence of steps.
Writing a good guide requires thinking about what your users are trying to do.

## Further reading

- Read [about how-to guides](https://diataxis.fr/how-to-guides/) in the Diátaxis framework
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions src/content/docs/fr/guides/getting-started.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/content/docs/fr/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ hero:
# file: ../../assets/houston.webp
actions:
- text: Démarrage
link: guides/getting-started
link: general/introduction
icon: right-arrow
variant: primary
- text: Documentation de GEOS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Getting started
title: Introduction
description: A guide in my new Starlight docs site.
sidebar:
order: 0
---

Guides lead a user through a specific task they want to accomplish, often with a sequence of steps.
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ hero:
# image:
# file: ../../assets/houston.web
actions:
- text: Getting Started
link: guides/getting-started
- text: Getting started
link: general/introduction
icon: right-arrow
variant: primary
- text: Read the GEOS docs
Expand Down
13 changes: 13 additions & 0 deletions src/content/docs/simplified-interface/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Introduction Simplified
description: A guide in my new Starlight docs site.
sidebar:
order: 0
---

Guides lead a user through a specific task they want to accomplish, often with a sequence of steps.
Writing a good guide requires thinking about what your users are trying to do.

## Further reading

- Read [about how-to guides](https://diataxis.fr/how-to-guides/) in the Diátaxis framework

0 comments on commit ec9fd0a

Please sign in to comment.