Jobber/docs-site/docusaurus.config.ts
Shaheer Sarfaraz 5ddd6d2c73
Images in documentation (#173)
* docs images

* images in documentation

* logos

* update colours to orange-related
2026-02-16 17:00:51 +00:00

129 lines
3.0 KiB
TypeScript

import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import { themes as prismThemes } from "prism-react-renderer";
const siteUrl = process.env.DOCS_SITE_URL ?? "http://localhost:3006";
const configuredBaseUrl = process.env.DOCS_BASE_URL ?? "/docs/";
const normalizedBaseUrl = configuredBaseUrl.startsWith("/")
? configuredBaseUrl
: `/${configuredBaseUrl}`;
const siteBaseUrl = normalizedBaseUrl.endsWith("/")
? normalizedBaseUrl
: `${normalizedBaseUrl}/`;
const config: Config = {
title: "JobOps Documentation",
tagline: "Self-hosted job search automation docs",
favicon: "img/favicon.png",
future: {
v4: true,
},
url: siteUrl,
baseUrl: siteBaseUrl,
onBrokenLinks: "throw",
markdown: {
hooks: {
onBrokenMarkdownLinks: "throw",
},
},
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/",
sidebarPath: "./sidebars.ts",
editUrl: "https://github.com/DaKheera47/job-ops/tree/main/docs-site/",
showLastUpdateAuthor: false,
showLastUpdateTime: true,
},
blog: false,
pages: false,
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: "JobOps Docs",
logo: {
alt: "JobOps",
src: "img/favicon.png",
},
items: [
{
type: "docSidebar",
sidebarId: "docsSidebar",
position: "left",
label: "Documentation",
},
{
to: "/",
label: "Latest",
position: "left",
},
{
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
},
{
type: "html",
value:
'<a class="navbar__item navbar__link" href="/overview">Back to App</a>',
position: "right",
},
{
href: "https://github.com/DaKheera47/job-ops",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Introduction",
to: "/",
},
{
label: "Self-Hosting",
to: "/getting-started/self-hosting",
},
],
},
{
title: "Project",
items: [
{
label: "Repository",
href: "https://github.com/DaKheera47/job-ops",
},
{
label: "Issues",
href: "https://github.com/DaKheera47/job-ops/issues",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} JobOps`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;