formatting
This commit is contained in:
@@ -35,9 +35,9 @@ Static assets, like favicons, can be placed in the `public/` directory.
|
|||||||
|
|
||||||
All commands are run from the root of the project, from a terminal:
|
All commands are run from the root of the project, from a terminal:
|
||||||
|
|
||||||
| Command | Action |
|
| Command | Action |
|
||||||
| :------------------------ | :----------------------------------------------- |
|
| :--------------------- | :----------------------------------------------- |
|
||||||
| `pnpm install` | Installs dependencies |
|
| `pnpm install` | Installs dependencies |
|
||||||
| `pnpm dev` | Starts local dev server at `localhost:4321` |
|
| `pnpm dev` | Starts local dev server at `localhost:4321` |
|
||||||
| `pnpm build` | Build your production site to `./dist/` |
|
| `pnpm build` | Build your production site to `./dist/` |
|
||||||
| `pnpm preview` | Preview your build locally, before deploying |
|
| `pnpm preview` | Preview your build locally, before deploying |
|
||||||
|
@@ -3,5 +3,5 @@ import { docsLoader } from '@astrojs/starlight/loaders';
|
|||||||
import { docsSchema } from '@astrojs/starlight/schema';
|
import { docsSchema } from '@astrojs/starlight/schema';
|
||||||
|
|
||||||
export const collections = {
|
export const collections = {
|
||||||
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
|
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
|
||||||
};
|
};
|
||||||
|
@@ -21,16 +21,16 @@ import { Card, CardGrid } from '@astrojs/starlight/components';
|
|||||||
## Next steps
|
## Next steps
|
||||||
|
|
||||||
<CardGrid stagger>
|
<CardGrid stagger>
|
||||||
<Card title="Update content" icon="pencil">
|
<Card title="Update content" icon="pencil">
|
||||||
Edit `src/content/docs/index.mdx` to see this page change.
|
Edit `src/content/docs/index.mdx` to see this page change.
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="Add new content" icon="add-document">
|
<Card title="Add new content" icon="add-document">
|
||||||
Add Markdown or MDX files to `src/content/docs` to create new pages.
|
Add Markdown or MDX files to `src/content/docs` to create new pages.
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="Configure your site" icon="setting">
|
<Card title="Configure your site" icon="setting">
|
||||||
Edit your `sidebar` and other config in `astro.config.mjs`.
|
Edit your `sidebar` and other config in `astro.config.mjs`.
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="Read the docs" icon="open-book">
|
<Card title="Read the docs" icon="open-book">
|
||||||
Learn more in [the Starlight Docs](https://starlight.astro.build/).
|
Learn more in [the Starlight Docs](https://starlight.astro.build/).
|
||||||
</Card>
|
</Card>
|
||||||
</CardGrid>
|
</CardGrid>
|
||||||
|
@@ -2,57 +2,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}', '*.{js,ts,jsx,tsx,mdx}'],
|
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}', '*.{js,ts,jsx,tsx,mdx}'],
|
||||||
darkMode: 'class',
|
darkMode: 'class',
|
||||||
theme: {
|
theme: {},
|
||||||
extend: {
|
|
||||||
typography: (theme) => ({
|
|
||||||
DEFAULT: {
|
|
||||||
css: {
|
|
||||||
a: {
|
|
||||||
color: theme('colors.zinc.900'),
|
|
||||||
'&:hover': {
|
|
||||||
color: theme('colors.zinc.700'),
|
|
||||||
},
|
|
||||||
textDecoration: 'underline',
|
|
||||||
textDecorationColor: theme('colors.zinc.400'),
|
|
||||||
textUnderlineOffset: '2px',
|
|
||||||
},
|
|
||||||
'h1, h2, h3, h4, h5, h6': {
|
|
||||||
color: theme('colors.zinc.900'),
|
|
||||||
},
|
|
||||||
code: {
|
|
||||||
color: theme('colors.zinc.900'),
|
|
||||||
backgroundColor: theme('colors.zinc.100'),
|
|
||||||
borderRadius: theme('borderRadius.md'),
|
|
||||||
padding: `${theme('padding.1')} ${theme('padding.1.5')}`,
|
|
||||||
},
|
|
||||||
'code::before': {
|
|
||||||
content: '""',
|
|
||||||
},
|
|
||||||
'code::after': {
|
|
||||||
content: '""',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
invert: {
|
|
||||||
css: {
|
|
||||||
a: {
|
|
||||||
color: theme('colors.zinc.100'),
|
|
||||||
'&:hover': {
|
|
||||||
color: theme('colors.zinc.300'),
|
|
||||||
},
|
|
||||||
textDecorationColor: theme('colors.zinc.700'),
|
|
||||||
},
|
|
||||||
'h1, h2, h3, h4, h5, h6': {
|
|
||||||
color: theme('colors.zinc.100'),
|
|
||||||
},
|
|
||||||
code: {
|
|
||||||
color: theme('colors.zinc.100'),
|
|
||||||
backgroundColor: theme('colors.zinc.800'),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [require('@tailwindcss/typography')],
|
plugins: [require('@tailwindcss/typography')],
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user