Skip to content

Commit 81906b4

Browse files
authored
Merge branch 'main' into v1.21.2-loop
2 parents 28ca29f + 072714f commit 81906b4

File tree

19 files changed

+3739
-1610
lines changed

19 files changed

+3739
-1610
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
pytest --cov=./slack_bolt/ --cov-report=xml
3333
- name: Upload coverage to Codecov
34-
uses: codecov/codecov-action@v4
34+
uses: codecov/codecov-action@v5
3535
with:
3636
fail_ci_if_error: true
3737
verbose: true

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ website/
3030
├── src/
3131
│ ├── pages/ (stuff that isn't docs. This is empty for this repo!)
3232
│ └── theme/ (only contains the 404 page)
33-
├── docusaurus.config.js (main config file. also where to set navbar/footer)
33+
├── docusaurus.config.js (main config file)
34+
├── footerConfig.js (footer. go to main repo to change)
35+
├── navbarConfig.js (navbar. go to main repo to change)
3436
└── sidebar.js (manually set where the docs are in the sidebar.)
3537
```
3638

docs/docusaurus.config.js

Lines changed: 5 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
// @ts-check
2-
// `@type` JSDoc annotations allow editor autocompletion and type checking
3-
// (when paired with `@ts-check`).
4-
// There are various equivalent ways to declare your Docusaurus config.
5-
// See: https://docusaurus.io/docs/api/docusaurus-config
6-
7-
import { themes as prismThemes } from "prism-react-renderer";
1+
import { themes as prismThemes } from 'prism-react-renderer';
2+
const footer = require('./footerConfig');
3+
const navbar = require('./navbarConfig');
84

95
/** @type {import('@docusaurus/types').Config} */
106
const config = {
117
title: "Bolt for Python",
128
tagline: "Official frameworks, libraries, and SDKs for Slack developers",
139
favicon: "img/favicon.ico",
14-
1510
url: "https://tools.slack.dev",
1611
baseUrl: "/bolt-python/",
1712
organizationName: "slackapi",
@@ -42,9 +37,6 @@ const config = {
4237
theme: {
4338
customCss: "./src/css/custom.css",
4439
},
45-
gtag: {
46-
trackingID: 'G-9H1YZW28BG',
47-
},
4840
}),
4941
],
5042
],
@@ -79,102 +71,8 @@ const config = {
7971
autoCollapseCategories: true,
8072
},
8173
},
82-
navbar: {
83-
title: "Slack Developer Tools",
84-
logo: {
85-
alt: "Slack logo",
86-
src: "img/slack-logo.svg",
87-
href: "https://tools.slack.dev",
88-
target: "_self",
89-
},
90-
items: [
91-
{
92-
type: "dropdown",
93-
label: "Bolt",
94-
position: "left",
95-
items: [
96-
{
97-
label: "Java",
98-
to: "https://tools.slack.dev/java-slack-sdk/guides/bolt-basics",
99-
target: "_self",
100-
},
101-
{
102-
label: "JavaScript",
103-
to: "https://tools.slack.dev/bolt-js",
104-
target: "_self",
105-
},
106-
{
107-
label: "Python",
108-
to: "https://tools.slack.dev/bolt-python",
109-
target: "_self",
110-
},
111-
],
112-
},
113-
{
114-
type: "dropdown",
115-
label: "SDKs",
116-
position: "left",
117-
items: [
118-
{
119-
label: "Java Slack SDK",
120-
to: "https://tools.slack.dev/java-slack-sdk/",
121-
target: "_self",
122-
},
123-
{
124-
label: "Node Slack SDK",
125-
to: "https://tools.slack.dev/node-slack-sdk/",
126-
target: "_self",
127-
},
128-
{
129-
label: "Python Slack SDK",
130-
to: "https://tools.slack.dev/python-slack-sdk/",
131-
target: "_self",
132-
},
133-
{
134-
label: "Deno Slack SDK",
135-
to: "https://api.slack.com/automation/quickstart",
136-
target: "_self",
137-
},
138-
],
139-
},
140-
{
141-
type: "dropdown",
142-
label: "Community",
143-
position: "left",
144-
items: [
145-
{
146-
label: "Community tools",
147-
to: "https://tools.slack.dev/community-tools",
148-
target: "_self",
149-
},
150-
{
151-
label: "Slack Community",
152-
to: "https://slackcommunity.com/",
153-
target: "_self",
154-
},
155-
],
156-
},
157-
{
158-
to: "https://api.slack.com/docs",
159-
label: "API Docs",
160-
target: "_self",
161-
},
162-
{
163-
type: "localeDropdown",
164-
position: "right",
165-
},
166-
{
167-
"aria-label": "GitHub Repository",
168-
className: "navbar-github-link",
169-
href: "https://github.com/slackapi/bolt-python",
170-
position: "right",
171-
target: "_self",
172-
},
173-
],
174-
},
175-
footer: {
176-
copyright: `<p> Made with ♡ by Slack and pals like you <p>`,
177-
},
74+
navbar,
75+
footer,
17876
prism: {
17977
// switch to alucard when available in prism?
18078
theme: prismThemes.github,

docs/footerConfig.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const footer = {
2+
links: [
3+
{
4+
items: [
5+
{
6+
html: `
7+
<div style="display: flex; gap: 20px; max-width: 50%">
8+
<a href="https://slack.com/terms-of-service/user">Terms of Service</a>
9+
<a href="https://slack.com/trust/privacy/privacy-policy">Privacy Information</a>
10+
</div>
11+
©2024 Slack Technologies, LLC, a Salesforce company. All rights reserved. Various trademarks held by their respective owners.
12+
`,
13+
},
14+
],
15+
},
16+
],
17+
};
18+
19+
module.exports = footer;

docs/navbarConfig.js

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
const navbar = {
2+
title: 'Slack Developer Tools',
3+
logo: {
4+
src: 'img/slack-logo.svg',
5+
href: 'https://tools.slack.dev',
6+
},
7+
items: [
8+
{
9+
type: 'dropdown',
10+
label: 'Bolt',
11+
position: 'left',
12+
items: [
13+
{
14+
label: 'Java',
15+
to: 'https://tools.slack.dev/java-slack-sdk/guides/bolt-basics',
16+
target: '_self',
17+
},
18+
{
19+
label: 'JavaScript',
20+
to: 'https://tools.slack.dev/bolt-js',
21+
target: '_self',
22+
},
23+
{
24+
label: 'Python',
25+
to: 'https://tools.slack.dev/bolt-python',
26+
target: '_self',
27+
},
28+
],
29+
},
30+
{
31+
type: 'dropdown',
32+
label: 'SDKs',
33+
position: 'left',
34+
items: [
35+
{
36+
label: 'Java Slack SDK',
37+
to: 'https://tools.slack.dev/java-slack-sdk/',
38+
target: '_self',
39+
},
40+
{
41+
label: 'Node Slack SDK',
42+
to: 'https://tools.slack.dev/node-slack-sdk/',
43+
target: '_self',
44+
},
45+
{
46+
label: 'Python Slack SDK',
47+
to: 'https://tools.slack.dev/python-slack-sdk/',
48+
target: '_self',
49+
},
50+
{
51+
label: 'Deno Slack SDK',
52+
to: 'https://api.slack.com/automation/quickstart',
53+
target: '_self',
54+
},
55+
],
56+
},
57+
{
58+
type: 'dropdown',
59+
label: 'Community',
60+
position: 'left',
61+
items: [
62+
{
63+
label: 'Community tools',
64+
to: 'https://tools.slack.dev/community-tools',
65+
target: '_self',
66+
},
67+
{
68+
label: 'Slack Community',
69+
to: 'https://slackcommunity.com/',
70+
target: '_self',
71+
},
72+
],
73+
},
74+
{
75+
to: 'https://api.slack.com/docs',
76+
label: 'API Docs',
77+
target: '_self',
78+
},
79+
{
80+
type: 'localeDropdown',
81+
position: 'right',
82+
},
83+
{
84+
'aria-label': 'GitHub Repository',
85+
className: 'navbar-github-link',
86+
href: 'https://github.com/slackapi',
87+
position: 'right',
88+
target: '_self',
89+
},
90+
],
91+
};
92+
93+
module.exports = navbar;

0 commit comments

Comments
 (0)