Skip to content
Merged
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
196 changes: 99 additions & 97 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,113 +1,115 @@
import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import {themes as prismThemes} from "prism-react-renderer";
import type {Config} from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";

const config: Config = {
title: "Smithy Docs",
tagline: "Learn how to use Smithy",
favicon: "img/favicon.png",
title: "Smithy Docs",
tagline: "Learn how to use Smithy",
favicon: "img/favicon.png",

url: "https://docs.smithy.security",
baseUrl: "/",
url: "https://docs.smithy.security",
baseUrl: "/",

// GitHub pages deployment config.
organizationName: "smithy-security",
projectName: "docs",
trailingSlash: false,
// GitHub pages deployment config.
organizationName: "smithy-security",
projectName: "docs",
trailingSlash: false,

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",

i18n: {
defaultLocale: "en",
locales: ["en"],
},

presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.ts",
editUrl: "https://github.com/smithy-security/docs/tree/main/",
},
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],

themeConfig: {
image: "img/social-card.png",
navbar: {
title: "Docs",
logo: {
alt: "Smithy Logo",
src: "img/logo.svg",
},
items: [
{
position: "left",
label: "SaaS",
to: "/docs/category/saas",
},
{
position: "left",
label: "Reference",
to: "/docs/category/reference",
},
{
href: "https://github.com/smithy-security/docs",
label: "GitHub",
position: "right",
},
],
onBrokenLinks: "throw",
markdown: {
hooks: {
onBrokenMarkdownLinks: "warn",
}
},
footer: {
links: [
{
title: "Docs",
items: [
{
label: "SaaS",
to: "/docs/category/saas",
},
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
label: "Reference",
to: "/docs/category/reference",
docs: {
sidebarPath: "./sidebars.ts",
editUrl: "https://github.com/smithy-security/docs/tree/main/",
},
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],

themeConfig: {
image: "img/social-card.png",
navbar: {
title: "Docs",
logo: {
alt: "Smithy Logo",
src: "img/logo.svg",
},
],
items: [
{
position: "left",
label: "SaaS",
to: "/docs/category/saas",
},
{
position: "left",
label: "Reference",
to: "/docs/category/reference",
},
{
href: "https://github.com/smithy-security/docs",
label: "GitHub",
position: "right",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/zDUQRhtxhn",
},
],
footer: {
links: [
{
title: "Docs",
items: [
{
label: "SaaS",
to: "/docs/category/saas",
},
{
label: "Reference",
to: "/docs/category/reference",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/zDUQRhtxhn",
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/smithy-security/docs",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SPF Security Solutions Ltd. Built with Docusaurus.`,
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/smithy-security/docs",
},
],
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["bash", "docker", "makefile"],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SPF Security Solutions Ltd. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["bash", "docker", "makefile"],
},
} satisfies Preset.ThemeConfig,
} satisfies Preset.ThemeConfig,

plugins: [require.resolve('docusaurus-lunr-search')],
plugins: [require.resolve('docusaurus-lunr-search')],
};

export default config;
Loading