Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
finxol committed Jan 18, 2025
1 parent b278242 commit fd79e1d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import config from "./config";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: config.docsWebsite,
devToolbar: {
enabled: false,
},
integrations: [
starlight({
title: "Karr Docs",
logo: {
src: "./src/assets/logo_tmp.jpg",
},
social: {
github: "https://github.com/finxol/karr",
github: config.github,
},
editLink: {
baseUrl: `${config.docsGithub}/edit/main/`,
},
pagination: false,
sidebar: [
{
label: "Glossary",
Expand Down
6 changes: 6 additions & 0 deletions config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
github: "https://github.com/finxol/karr",
docsGithub: "https://github.com/finxol/karr-docs",
website: "https://karr.finxol.io/",
docsWebsite: "https://docs.karrfinxol.io/",
};
2 changes: 1 addition & 1 deletion src/content/docs/development/packages/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ console.log(API_PORT);
It also has a static import to explicitly import only the hard-coded config values.
These values are defined in `src/static.ts`.

```ts "/static"
```ts ins="/static"
import { APPLICATION_NAME, API_VERSION } from "@karr/config/static";

console.log(APPLICATION_NAME, API_VERSION);
Expand Down

0 comments on commit fd79e1d

Please sign in to comment.