Skip to content

Commit 0f4a123

Browse files
committed
Generate documentation from repository
1 parent 860fd75 commit 0f4a123

File tree

12 files changed

+6509
-5976
lines changed

12 files changed

+6509
-5976
lines changed

astro.config.mjs

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
11
import { defineConfig } from 'astro/config';
2+
import starlight from '@astrojs/starlight';
3+
import starlightThemeObsidian from 'starlight-theme-obsidian';
24

3-
import tailwind from '@astrojs/tailwind';
5+
import tailwindcss from '@tailwindcss/vite';
46

57
// https://astro.build/config
68
export default defineConfig({
9+
output: 'static',
710
site: 'https://miroiu.github.io',
8-
base: 'nodify',
9-
integrations: [tailwind()],
11+
base: '/nodify',
12+
// build: {
13+
// format: 'file',
14+
// },
15+
// trailingSlash: 'never',
16+
integrations: [
17+
starlight({
18+
title: 'Nodify',
19+
logo: {
20+
src: './src/assets/logo.svg',
21+
},
22+
credits: true,
23+
pagination: false,
24+
plugins: [starlightThemeObsidian({ graph: false, backlinks: false })],
25+
editLink: {
26+
baseUrl: 'https://github.com/miroiu/nodify/edit/master/docs/',
27+
},
28+
components: {
29+
EditLink: './src/components/EditLink.astro',
30+
},
31+
social: [
32+
{
33+
icon: 'github',
34+
label: 'GitHub',
35+
href: 'https://github.com/miroiu/nodify',
36+
},
37+
],
38+
customCss: ['./src/styles/starlight.css'],
39+
}),
40+
],
41+
42+
vite: {
43+
plugins: [tailwindcss()],
44+
},
1045
});

0 commit comments

Comments
 (0)