Skip to content

Commit 00d87a0

Browse files
merge conflicts
2 parents 16c2405 + 1e69f1d commit 00d87a0

File tree

5 files changed

+873
-419
lines changed

5 files changed

+873
-419
lines changed

docs/docusaurus.config.js

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
import { themes as prismThemes } from 'prism-react-renderer';
2+
const footer = require('./footerConfig');
3+
const navbar = require('./navbarConfig');
4+
5+
/** @type {import('@docusaurus/types').Config} */
6+
const config = {
7+
title: "Bolt for Python",
8+
tagline: "Official frameworks, libraries, and SDKs for Slack developers",
9+
favicon: "img/favicon.ico",
10+
url: "https://tools.slack.dev",
11+
baseUrl: "/bolt-python/",
12+
organizationName: "slackapi",
13+
projectName: "bolt-python",
14+
15+
onBrokenLinks: "ignore",
16+
onBrokenAnchors: "warn",
17+
onBrokenMarkdownLinks: "warn",
18+
19+
i18n: {
20+
defaultLocale: "en",
21+
locales: ["en", "ja-jp"],
22+
},
23+
24+
presets: [
25+
[
26+
"classic",
27+
/** @type {import('@docusaurus/preset-classic').Options} */
28+
({
29+
docs: {
30+
path: "content",
31+
breadcrumbs: false,
32+
routeBasePath: "/", // Serve the docs at the site's root
33+
sidebarPath: "./sidebars.js",
34+
editUrl: "https://github.com/slackapi/bolt-python/tree/main/docs",
35+
},
36+
blog: false,
37+
theme: {
38+
customCss: "./src/css/custom.css",
39+
},
40+
}),
41+
],
42+
],
43+
44+
plugins: [
45+
"docusaurus-theme-github-codeblock",
46+
[
47+
"@docusaurus/plugin-client-redirects",
48+
{
49+
redirects: [
50+
{
51+
to: "/getting-started",
52+
from: ["/tutorial/getting-started"],
53+
},
54+
{
55+
to: "/",
56+
from: ["/concepts", "/concepts/basic", "/concepts/advanced"],
57+
},
58+
{
59+
to: '/concepts/actions',
60+
from: [
61+
'/concepts/action-listening',
62+
'/concepts/action-responding'
63+
],
64+
},
65+
{
66+
to: '/legacy/steps-from-apps',
67+
from: [
68+
'/concepts/steps',
69+
'/concepts/creating-steps',
70+
'/concepts/adding-editing-steps',
71+
'/concepts/saving-steps',
72+
'/concepts/executing-steps'
73+
],
74+
},
75+
{
76+
to: '/concepts/ai-apps',
77+
from: '/concepts/assistant'
78+
}
79+
],
80+
},
81+
],
82+
],
83+
84+
themeConfig:
85+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
86+
({
87+
colorMode: {
88+
respectPrefersColorScheme: true,
89+
},
90+
docs: {
91+
sidebar: {
92+
autoCollapseCategories: true,
93+
},
94+
},
95+
navbar,
96+
footer,
97+
prism: {
98+
// switch to alucard when available in prism?
99+
theme: prismThemes.github,
100+
darkTheme: prismThemes.dracula,
101+
additionalLanguages: ['bash'],
102+
},
103+
codeblock: {
104+
showGithubLink: true,
105+
githubLinkLabel: "View on GitHub",
106+
},
107+
// announcementBar: {
108+
// id: `announcementBar`,
109+
// content: `🎉️ <b><a target="_blank" href="https://api.slack.com/">Version 2.26.0</a> of the developer tools for the Slack automations platform is here!</b> 🎉️ `,
110+
// },
111+
}),
112+
};
113+
114+
export default config;

0 commit comments

Comments
 (0)