Skip to content

Commit

Permalink
astro v4 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ukdaaan committed Feb 22, 2024
1 parent 54ca9eb commit 9975bb9
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 52 deletions.
112 changes: 61 additions & 51 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,61 +1,71 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import vue from "@astrojs/vue";
import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: 'https://www.setup.md',
trailingSlash: 'never',
site: "https://www.setup.md",
trailingSlash: "never",
build: {
format: 'file'
format: "file",
},
integrations: [starlight({
title: 'setup.md',
editLink: {
baseUrl: 'https://github.com/setupmd/docs/edit/v3'
},
social: {
discord: 'https://link.setup.md/discord',
github: 'https://link.setup.md/repo',
patreon: 'https://link.setup.md/patreon'
},
sidebar: [{
label: 'Project Information',
autogenerate: {
directory: '/information/'
integrations: [
starlight({
title: "setup.md",
editLink: {
baseUrl: "https://github.com/setupmd/docs/edit/v3",
},
collapsed: false
}, {
label: 'Enhancements',
autogenerate: {
directory: '/enhancements/'
social: {
discord: "https://link.setup.md/discord",
github: "https://link.setup.md/repo",
},
collapsed: true
}, {
label: 'Hosting Tips',
autogenerate: {
directory: '/hosting/'
},
collapsed: true
}, {
label: 'Server Tools',
autogenerate: {
directory: '/tools/'
},
collapsed: true
}, {
label: 'Server Troubleshooting',
autogenerate: {
directory: '/troubleshooting/'
},
collapsed: true
}, {
label: 'Guides',
autogenerate: {
directory: '/guides/'
},
collapsed: true
}]
}), vue(), tailwind()],
sidebar: [
{
label: "Project Information",
autogenerate: {
directory: "/information/",
},
collapsed: false,
},
{
label: "Enhancements",
autogenerate: {
directory: "/enhancements/",
},
collapsed: true,
},
{
label: "Hosting Tips",
autogenerate: {
directory: "/hosting/",
},
collapsed: true,
},
{
label: "Server Tools",
autogenerate: {
directory: "/tools/",
},
collapsed: true,
},
{
label: "Server Troubleshooting",
autogenerate: {
directory: "/troubleshooting/",
},
collapsed: true,
},
{
label: "Guides",
autogenerate: {
directory: "/guides/",
},
collapsed: true,
},
],
}),
vue(),
tailwind(),
],
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@setupmd/docs",
"type": "module",
"version": "3.1.1",
"version": "4.1.0",
"private": true,
"scripts": {
"dev": "astro dev",
Expand Down

0 comments on commit 9975bb9

Please sign in to comment.