Skip to content

Commit

Permalink
docs: biome lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lukegalbraithrussell committed Oct 31, 2024
1 parent 2031b63 commit 4f5df97
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 116 deletions.
61 changes: 31 additions & 30 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {themes as prismThemes} from 'prism-react-renderer';
import { themes as prismThemes } from 'prism-react-renderer';
const footer = require('./footerConfig');
const navbar = require('./navbarConfig');

Expand Down Expand Up @@ -42,10 +42,11 @@ const config = {
],
],

plugins:
['docusaurus-theme-github-codeblock',
plugins: [
'docusaurus-theme-github-codeblock',

['@docusaurus/plugin-client-redirects',
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
Expand All @@ -69,90 +70,90 @@ const config = {
id: 'cli-test',
entryPoints: ['../packages/cli-test/src/index.ts'],
tsconfig: '../packages/cli-test/tsconfig.json',
out: "./content/reference/cli-test",
}
out: './content/reference/cli-test',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'events-api',
entryPoints: ['../packages/events-api/src/index.ts'],
tsconfig: '../packages/events-api/tsconfig.json',
out: "./content/reference/events-api",
}
out: './content/reference/events-api',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'interactive-messages',
entryPoints: ['../packages/interactive-messages/src/index.ts'],
tsconfig: '../packages/interactive-messages/tsconfig.json',
out: "./content/reference/interactive-messages",
}
out: './content/reference/interactive-messages',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'logger',
entryPoints: ['../packages/logger/src/index.ts'],
tsconfig: '../packages/logger/tsconfig.json',
out: "./content/reference/logger",
}
out: './content/reference/logger',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'oauth',
entryPoints: ['../packages/oauth/src/index.ts'],
tsconfig: '../packages/oauth/tsconfig.json',
out: "./content/reference/oauth",
}
out: './content/reference/oauth',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'rtm-api',
entryPoints: ['../packages/rtm-api/src/index.ts'],
tsconfig: '../packages/rtm-api/tsconfig.json',
out: "./content/reference/rtm-api",
}
out: './content/reference/rtm-api',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'socket-mode',
entryPoints: ['../packages/socket-mode/src/index.ts'],
tsconfig: '../packages/socket-mode/tsconfig.json',
out: "./content/reference/socket-mode",
}
out: './content/reference/socket-mode',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'types',
entryPoints: ['../packages/types/src/index.ts'],
tsconfig: '../packages/types/tsconfig.json',
out: "./content/reference/types",
}
out: './content/reference/types',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'web',
entryPoints: ['../packages/web-api/src/index.ts'],
tsconfig: '../packages/web-api/tsconfig.json',
out: "./content/reference/web-api",
}
out: './content/reference/web-api',
},
],
[
'docusaurus-plugin-typedoc',
{
id: 'webhook',
entryPoints: ['../packages/webhook/src/index.ts'],
tsconfig: '../packages/webhook/tsconfig.json',
out: "./content/reference/webhook",
}
]
out: './content/reference/webhook',
},
],
],

themeConfig:
Expand All @@ -170,13 +171,13 @@ const config = {
footer,
prism: {
// switch to alucard when available in prism?
theme: prismThemes.github,
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
codeblock: {
showGithubLink: true,
githubLinkLabel: 'View on GitHub',
},
codeblock: {
showGithubLink: true,
githubLinkLabel: 'View on GitHub',
},
// announcementBar: {
// id: `announcementBar`,
// 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> 🎉️ `,
Expand Down
2 changes: 1 addition & 1 deletion docs/footerConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ const footer = {
],
};

module.exports = footer;
module.exports = footer;
170 changes: 85 additions & 85 deletions docs/navbarConfig.js
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
const navbar = {
title: "Slack Developer Tools",
logo: {
src: "img/slack-logo.svg",
},
items: [
{
type: "dropdown",
label: "Bolt",
position: "left",
items: [
{
label: "Java",
to: "https://tools.slack.dev/java-slack-sdk/guides/bolt-basics",
target: "_self",
},
{
label: "JavaScript",
to: "https://tools.slack.dev/bolt-js",
target: "_self",
},
{
label: "Python",
to: "https://tools.slack.dev/bolt-python",
target: "_self",
},
],
},
{
type: "dropdown",
label: "SDKs",
position: "left",
items: [
{
label: "Java Slack SDK",
to: "https://tools.slack.dev/java-slack-sdk/",
target: "_self",
},
{
label: "Node Slack SDK",
to: "https://tools.slack.dev/node-slack-sdk/",
target: "_self",
},
{
label: "Python Slack SDK",
to: "https://tools.slack.dev/python-slack-sdk/",
target: "_self",
},
{
label: "Deno Slack SDK",
to: "https://api.slack.com/automation/quickstart",
target: "_self",
},
],
},
{
type: "dropdown",
label: "Community",
position: "left",
items: [
{
label: "Community tools",
to: "https://tools.slack.dev/community-tools",
target: "_self",
},
{
label: "Slack Community",
to: "https://slackcommunity.com/",
target: "_self",
},
],
},
{
to: "https://api.slack.com/docs",
label: "API Docs",
target: "_self",
},
{
"aria-label": "GitHub Repository",
className: "navbar-github-link",
href: "https://github.com/slackapi",
position: "right",
target: "_self",
},
],
title: 'Slack Developer Tools',
logo: {
src: 'img/slack-logo.svg',
},
items: [
{
type: 'dropdown',
label: 'Bolt',
position: 'left',
items: [
{
label: 'Java',
to: 'https://tools.slack.dev/java-slack-sdk/guides/bolt-basics',
target: '_self',
},
{
label: 'JavaScript',
to: 'https://tools.slack.dev/bolt-js',
target: '_self',
},
{
label: 'Python',
to: 'https://tools.slack.dev/bolt-python',
target: '_self',
},
],
},
{
type: 'dropdown',
label: 'SDKs',
position: 'left',
items: [
{
label: 'Java Slack SDK',
to: 'https://tools.slack.dev/java-slack-sdk/',
target: '_self',
},
{
label: 'Node Slack SDK',
to: 'https://tools.slack.dev/node-slack-sdk/',
target: '_self',
},
{
label: 'Python Slack SDK',
to: 'https://tools.slack.dev/python-slack-sdk/',
target: '_self',
},
{
label: 'Deno Slack SDK',
to: 'https://api.slack.com/automation/quickstart',
target: '_self',
},
],
},
{
type: 'dropdown',
label: 'Community',
position: 'left',
items: [
{
label: 'Community tools',
to: 'https://tools.slack.dev/community-tools',
target: '_self',
},
{
label: 'Slack Community',
to: 'https://slackcommunity.com/',
target: '_self',
},
],
},
{
to: 'https://api.slack.com/docs',
label: 'API Docs',
target: '_self',
},
{
'aria-label': 'GitHub Repository',
className: 'navbar-github-link',
href: 'https://github.com/slackapi',
position: 'right',
target: '_self',
},
],
};

module.exports = navbar;
module.exports = navbar;

0 comments on commit 4f5df97

Please sign in to comment.