Skip to content

Commit 8e148ed

Browse files
Docs: salesforce compliance adjustment (#1190)
1 parent 131f8e1 commit 8e148ed

File tree

4 files changed

+115
-108
lines changed

4 files changed

+115
-108
lines changed

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

0 commit comments

Comments
 (0)