Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
import sitemap from "@astrojs/sitemap";

// Set base path depending on the branch (main branch gets "/docs/", others have no base path)
Expand All @@ -22,8 +21,13 @@ export default defineConfig({
customCss: [
// Path to your Tailwind base styles:
"./src/tailwind.css", "./src/styles/fonts.css", "./src/styles/custom.css"],
social: {
github: "https://github.com/withastro/starlight"
expressiveCode: {
defaultProps: {
showLineNumbers: true
},
shiki: {
langs: ['shellscript', 'bash', 'shell']
}
},
sidebar: [{
label: "SwaggerHub",
Expand Down Expand Up @@ -389,13 +393,6 @@ export default defineConfig({
ThemeSelect: "./src/components/ThemeSelect.astro",
MobileMenuToggle: "./src/components/MobileMenuToggle.astro"
},
expressiveCode: {
defaultProps: {
wrap: true
},
themes: ["dracula", "github-light"],
plugins: [pluginLineNumbers()]
},
editLink: {
baseUrl: 'https://github.com/swagger-api/swagger.io/tree/stage'
},
Expand Down
Loading