diff --git a/astro.config.mjs b/astro.config.mjs index 92d94d0..c27ee55 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,11 +1,16 @@ // @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", @@ -13,8 +18,12 @@ export default defineConfig({ 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", diff --git a/config.ts b/config.ts new file mode 100644 index 0000000..b932b28 --- /dev/null +++ b/config.ts @@ -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/", +}; diff --git a/src/content/docs/development/packages/config.mdx b/src/content/docs/development/packages/config.mdx index 9bd5ee5..7ef8a82 100644 --- a/src/content/docs/development/packages/config.mdx +++ b/src/content/docs/development/packages/config.mdx @@ -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);