Skip to content

Commit 306b0aa

Browse files
authored
docs: replace redirected or missing links to sdk documentation (#2125)
1 parent 637fca2 commit 306b0aa

File tree

18 files changed

+29
-35
lines changed

18 files changed

+29
-35
lines changed

docs/content/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ The Node Slack SDK has corresponding packages for Slack APIs. They are small and
1313

1414
| Slack API | Use | NPM package |
1515
|--------------|--------------|-------------------|
16-
| Web API | Send data to or query data from Slack using any of [over 200 methods](https://api.slack.com/methods). | [`@slack/web-api`](https://tools.slack.dev/node-slack-sdk/web-api) |
17-
| OAuth | Set up the authentication flow using V2 OAuth for Slack apps as well as V1 OAuth for classic Slack apps. | [`@slack/oauth`](https://tools.slack.dev/node-slack-sdk/oauth) |
18-
| Incoming Webhooks | Send notifications to a single channel which the user picks on installation. | [`@slack/webhook`](https://tools.slack.dev/node-slack-sdk/webhook) |
19-
| Socket Mode | Listen for incoming messages and a limited set of events happening in Slack, using WebSocket. | [`@slack/socket-mode`](https://tools.slack.dev/node-slack-sdk/socket-mode) |
16+
| Web API | Send data to or query data from Slack using any of [over 200 methods](https://api.slack.com/methods). | [`@slack/web-api`](/web-api) |
17+
| OAuth | Set up the authentication flow using V2 OAuth for Slack apps as well as V1 OAuth for classic Slack apps. | [`@slack/oauth`](/oauth) |
18+
| Incoming Webhooks | Send notifications to a single channel which the user picks on installation. | [`@slack/webhook`](/webhook) |
19+
| Socket Mode | Listen for incoming messages and a limited set of events happening in Slack, using WebSocket. | [`@slack/socket-mode`](/socket-mode) |
2020

2121
:::warning[Deprecation Notice]
2222

docs/content/packages/oauth.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ app.get('/slack/oauth_redirect', (req, res) => {
170170

171171
There are many situations where you may want to persist some custom data relevant to your application across the entire OAuth flow. For example, you may want to map Slack resources (like users) to your own application's resources, or verify and gate eligibility for proceeding with installing your Slack application to a workspace based on your application's requirements. To this end, this package provides a series of hooks, or callbacks, that allow your application to integrate throughout key points of the OAuth flow.
172172

173-
These are all callbacks customizable via the [`CallbackOptions`](reference/oauth#callbackoptions) and [`InstallPathOptions`](reference/oauth#installpathoptions) interfaces - check their [reference documentation](reference/oauth) for more details.
173+
These are all callbacks customizable via the [`CallbackOptions`](/reference/oauth/interfaces/CallbackOptions) and [`InstallPathOptions`](/reference/oauth/interfaces/InstallPathOptions) interfaces - check their [reference documentation](reference/oauth) for more details.
174174

175175
For example, you may wish to store some information relevant to your application in a cookie before starting the OAuth flow and redirecting the user to the slack.com authorize URL. Once the user completes the authorization process on slack.com and is redirected back to your application, you can read this cookie and determine if the user has the appropriate permissions to proceed with installation of your application:
176176

@@ -248,6 +248,7 @@ app.get('/slack/oauth_redirect', (req, res) => {
248248
});
249249
```
250250
</details>
251+
251252
---
252253

253254
### Storing installations in a database

docs/content/packages/rtm-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ const rtm = new RTMClient(token, options);
646646

647647
### Custom WebClient
648648

649-
In some cases, you might want to customize the underlying component making HTTP requests to the Slack API, the [`WebClient`](reference/web-api#webclient), beyond the provided [`RTMClientOptions`](reference/rtm-api#rtmclientoptions). Note that overriding the [`WebClient`](reference/web-api#webclient) instance takes precedence over any other [`RTMClientOptions`](reference/rtm-api#rtmclientoptions) specified.
649+
In some cases, you might want to customize the underlying component making HTTP requests to the Slack API, the [`WebClient`](/reference/web-api/classes/WebClient), beyond the provided [`RTMClientOptions`](/reference/rtm-api/interfaces/RTMClientOptions). Note that overriding the [`WebClient`](/reference/web-api/classes/WebClient) instance takes precedence over any other [`RTMClientOptions`](/reference/rtm-api/interfaces/RTMClientOptions) specified.
650650

651651
```javascript
652652
const { RTMClient } = require('@slack/rtm-api');
@@ -674,7 +674,7 @@ The client can receive a snapshot of a portion of the workspace's state while it
674674
app needs to keep track of some data as it changes while the app runs, but it needs the initial start to get started.
675675
However, **this can also cause the client to fail to connect on large teams**. Our recommendation is to call the [Web
676676
API](/web-api) to retrieve workspace state while your app is connecting, instead of
677-
relying on the cache. See [sending rich messages](#send-messages) for an example of using the `WebClient` class inside
677+
relying on the cache. See [send rich messages](#send-a-message) for an example of using the `WebClient` class inside
678678
your app, and use [some of the other methods](https://api.slack.com/methods) to get data.
679679

680680
If you're certain that you'd like to receive the snapshot, you can set the `useRtmConnect` option to `false`. This

docs/content/packages/web-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This article contains the steps you must follow to get your access token:
3131
3. [Install the app to a workspace](https://api.slack.com/authentication/basics#installing)
3232
4. Finally, [get your access token](https://api.slack.com/authentication/basics#getting-your-authentication-token)
3333

34-
You can also read the [Getting Started guide](../getting-started) which guides
34+
You can also read the [Getting Started guide](/getting-started) which guides
3535
you through creating an app, retrieving an access token, and using this `@slack/web-api`
3636
package to post a message.
3737

docs/content/packages/webhook.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
---
22
title: Incoming Webhooks
3-
permalink: /webhook
3+
slug: /webhook
44
---
55

6-
# Slack Incoming Webhooks
7-
8-
[![build-ci](https://github.com/slackapi/node-slack-sdk/actions/workflows/ci-build.yml/badge.svg)](https://github.com/slackapi/node-slack-sdk/actions/workflows/ci-build.yml)
9-
<!-- TODO: per-flag badge https://docs.codecov.io/docs/flags#section-flag-badges-and-graphs -->
10-
[![codecov](https://codecov.io/gh/slackapi/node-slack-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/slackapi/node-slack-sdk)
11-
<!-- TODO: npm versions with scoped packages: https://github.com/rvagg/nodei.co/issues/24 -->
12-
136
The `@slack/webhook` package contains a helper for making requests to Slack's [Incoming
147
Webhooks](https://api.slack.com/incoming-webhooks). Use it in your app to send a notification to a channel.
158

packages/cli-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"type": "git",
2424
"url": "git+https://github.com/slackapi/node-slack-sdk.git"
2525
},
26-
"homepage": "https://slack.dev/node-slack-sdk",
26+
"homepage": "https://tools.slack.dev/node-slack-sdk",
2727
"publishConfig": {
2828
"access": "public"
2929
},

packages/logger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"npm": ">= 8.6.0"
1414
},
1515
"repository": "slackapi/node-slack-sdk",
16-
"homepage": "https://slack.dev/node-slack-sdk",
16+
"homepage": "https://tools.slack.dev/node-slack-sdk",
1717
"publishConfig": {
1818
"access": "public"
1919
},

packages/oauth/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ $ npm install @slack/oauth
1616

1717
## Usage
1818

19-
These examples show how to get started using the most common features. You'll find more extensive [documentation on the package's website](https://slack.dev/node-slack-sdk/oauth).
19+
These examples show how to get started using the most common features. You'll find more extensive [documentation on the package's website](https://tools.slack.dev/node-slack-sdk/oauth).
2020

2121
<!-- END: Remove before copying into the docs directory -->
2222

2323
Before building an app, you'll need to [create a Slack app](https://api.slack.com/apps/new) and install it to your development workspace. You'll also need to copy the **Client ID** and **Client Secret** given to you by Slack under the **Basic Information** of your app configuration.
2424

25-
It may be helpful to read the tutorials on [getting started](https://slack.dev/node-slack-sdk/getting-started) and [getting a public URL that can be used for development](https://slack.dev/node-slack-sdk/tutorials/local-development).
25+
It may be helpful to read the tutorials on [getting started](https://tools.slack.dev/node-slack-sdk/getting-started) and [getting a public URL that can be used for development](https://tools.slack.dev/node-slack-sdk/tutorials/local-development).
2626

2727
---
2828

packages/oauth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"npm": ">=8.6.0"
1313
},
1414
"repository": "slackapi/node-slack-sdk",
15-
"homepage": "https://slack.dev/node-slack-sdk/oauth",
15+
"homepage": "https://tools.slack.dev/node-slack-sdk/oauth",
1616
"publishConfig": {
1717
"access": "public"
1818
},

packages/rtm-api/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The `@slack/rtm-api` package contains a simple, convenient, and configurable client for receiving events and sending simple messages to Slack's [Real Time Messaging API](https://api.slack.com/rtm). Use it in your
44
app to stay connected to the Slack platform over a persistent Websocket connection.
55

6-
**Note**: RTM isn't available for modern scoped apps anymore. We recommend using the [Events API](https://slack.dev/node-slack-sdk/events-api) and [Web API](https://slack.dev/node-slack-sdk/web-api) instead. If you need to use RTM (possibly due to corporate firewall limitations), you can do so by creating a [legacy scoped app](https://api.slack.com/apps?new_classic_app=1). If you have an existing RTM app, do not update its scopes as it will be updated to a modern scoped app and stop working with RTM.
6+
**Note**: The RTM API isn't available for modern granular-permissions apps, and you can no longer create new legacy apps. We recommend using [Bolt for JavaScript](https://tools.slack.dev/bolt-js). If you have an existing RTM app, do not update its scopes as it will be updated to a granular-permissions app and stop working with the RTM API.
77

88
## Installation
99

@@ -16,7 +16,7 @@ $ npm install @slack/rtm-api
1616
## Usage
1717

1818
These examples show the most common features of the `RTMClient`. You'll find even more extensive [documentation on the
19-
package's website](https://slack.dev/node-slack-sdk/rtm-api).
19+
package's website](https://tools.slack.dev/node-slack-sdk/rtm-api).
2020

2121
<!-- END: Remove before copying into the docs directory -->
2222

@@ -72,7 +72,7 @@ user ID and team ID, you can look those up any time the client is connected as t
7272

7373
Options passed to the `.start()` method are passed through as arguments to the [`rtm.connect` Web API
7474
method](https://api.slack.com/methods/rtm.connect). These arguments deal with presence, which is discussed in more
75-
detail [on the documentation website](https://slack.dev/node-slack-sdk/rtm-api#presence).
75+
detail [on the documentation website](https://tools.slack.dev/node-slack-sdk/rtm-api/#presence).
7676

7777
</details>
7878

0 commit comments

Comments
 (0)