Skip to content

Commit 12f1126

Browse files
committed
moved some image files to under a new folder under img, etc
1 parent af2f611 commit 12f1126

File tree

8 files changed

+1324
-130
lines changed

8 files changed

+1324
-130
lines changed

docusaurus.config.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { themes as prismThemes } from "prism-react-renderer";
12
import type { Config } from "@docusaurus/types";
23
import type * as Preset from "@docusaurus/preset-classic";
34
import rehypeShiki, { RehypeShikiOptions } from "@shikijs/rehype";
@@ -9,7 +10,7 @@ import { transformerNotationHighlight } from "@shikijs/transformers";
910
const config: Config = {
1011
title: "Talon Community Wiki",
1112
tagline: "Documentation for using Talon Voice",
12-
favicon: "img/talon-community-logo.png",
13+
favicon: "img/logos/talon-community-logo.png",
1314

1415
// Set the production url of your site here
1516
url: "https://talon.wiki",
@@ -60,6 +61,10 @@ const config: Config = {
6061
} satisfies RehypeShikiOptions,
6162
],
6263
],
64+
admonitions: {
65+
keywords: ["docotodo", "docofeedback", "docoscope"],
66+
extendDefaults: true,
67+
},
6368
},
6469
theme: {
6570
customCss: "./src/css/custom.css",
@@ -68,6 +73,9 @@ const config: Config = {
6873
} satisfies Preset.Options,
6974
],
7075
],
76+
markdown: {
77+
mermaid: true,
78+
},
7179
themes: [
7280
[
7381
// https://github.com/easyops-cn/docusaurus-search-local
@@ -82,10 +90,11 @@ const config: Config = {
8290
removeDefaultStemmer: true,
8391
},
8492
],
93+
"@docusaurus/theme-mermaid"
8594
],
8695
themeConfig: {
8796
// Replace with your project's social card
88-
image: "img/talon-community-logo-social.png",
97+
image: "img/logos/talon-community-logo-social.png",
8998

9099
/*
91100
algolia is not working; we instead use local search.
@@ -109,23 +118,18 @@ const config: Config = {
109118
},
110119
announcementBar: {
111120
content:
112-
'<b> You are viewing the new refactor of the Talon community wiki! The previous site can still be accessed via <a href="https://old.talon.wiki">https://old.talon.wiki</a></b> ✨',
121+
'<b> You are viewing an <a href="https://github.com/ronzulu/talon-community-wiki/tree/restructure">experimental refactor</a> of the Talon community wiki! The current site can still be accessed via <a href="https://talon.wiki">https://talon.wiki</a></b> ✨',
113122
isCloseable: true,
114123
},
115124

116125
navbar: {
126+
title: "Home",
117127
logo: {
118128
alt: "My Site Logo",
119-
src: "img/talon-community-logo.png",
129+
src: "img/logos/talon-community-logo.png",
120130
},
121131
hideOnScroll: true,
122132
items: [
123-
{
124-
type: "docSidebar",
125-
sidebarId: "QuickstartSidebar",
126-
position: "left",
127-
label: "Quickstart",
128-
},
129133
{
130134
type: "docSidebar",
131135
sidebarId: "BasicUsageSidebar",
@@ -154,15 +158,6 @@ const config: Config = {
154158
footer: {
155159
style: "dark",
156160
links: [
157-
// {
158-
// title: "Docs",
159-
// items: [
160-
// {
161-
// label: "Docs",
162-
// to: "/docs/",
163-
// },
164-
// ],
165-
// },
166161
{
167162
title: "Talon Links",
168163
items: [
@@ -190,7 +185,12 @@ const config: Config = {
190185
],
191186
},
192187
],
193-
copyright: `Copyright © ${new Date().getFullYear()} Talon Community`,
188+
copyright: `Copyright © ${new Date().getFullYear()} Talon Community. Built with Docusaurus.`,
189+
},
190+
prism: {
191+
theme: prismThemes.github,
192+
darkTheme: prismThemes.dracula,
193+
additionalLanguages: ["talon"],
194194
},
195195
colorMode: {
196196
respectPrefersColorScheme: true,

0 commit comments

Comments
 (0)