Skip to content

Commit 8eca905

Browse files
stashing
1 parent 8368ab8 commit 8eca905

File tree

4 files changed

+73
-79
lines changed

4 files changed

+73
-79
lines changed

docs/content/getting-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ When you're finished, you'll have this ⚡️[Getting Started with Slack app](ht
1515

1616
Before you start developing with Bolt, you'll want to [create a Slack app](https://api.slack.com/apps/new).
1717

18-
[`chat.message`](https://api.slack.com/scopes)
19-
2018
:::tip
2119

2220
We recommend using a workspace where you won't disrupt real work getting done. Join the [Developer Program](https://api.slack.com/developer-program) and provision a sandbox with access to all Slack features for free.
@@ -524,6 +522,7 @@ You can see that we used `app.action()` to listen for the `action_id` that we na
524522
---
525523

526524
## Next steps {#next-steps}
525+
527526
You just built your first [Bolt for Python app](https://github.com/slackapi/bolt-python/tree/main/examples/getting_started)!
528527

529528
Now that you have a basic app up and running, you can start exploring how to make your Bolt app stand out. Here are some ideas about what to explore next:

docs/i18n/ja-jp/docusaurus-plugin-content-docs/current/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lang: ja-jp
1010

1111
:::tip
1212

13+
REMOVE
1314
このガイドでは[ソケットモード](https://api.slack.com/apis/connections/socket) を利用します。ソケットモードは、Slack アプリ開発をとりあえず始めてみるときやあなたのチームだけのためのアプリをつくるときにおすすめのやり方です。もしすでに HTTP をアプリのコミュニケーションプロトコルとするとわかっている場合は、HTTP の方式に対応した同様のドキュメントである [Bolt 入門ガイド(HTTP)](/tutorial/getting-started-http) を参照してください。
1415

1516
:::
@@ -21,7 +22,7 @@ lang: ja-jp
2122

2223
:::tip
2324

24-
通常の業務の妨げにならないよう、別の開発用のワークスペースを使用することをおすすめします。[新しいワークスペースは無料で作成できます](https://slack.com/get-started#create)
25+
通常の業務の妨げにならないよう、別の開発用のワークスペースを使用することをおすすめします。[新しいワークスペースは無料で作成できます](https://api.slack.com/developer-program)
2526

2627
:::。
2728

docs/i18n/ja-jp/docusaurus-plugin-content-docs/current/tutorial/getting-started-http.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,10 @@ title: Bolt 入門ガイド(HTTP)
33
slug: getting-started-http
44
lang: ja-jp
55
---
6-
7-
# Bolt 入門ガイド(HTTP)
8-
9-
このガイドでは、**HTTP上で Bolt for Python** を使った Slack アプリの設定と起動する方法について説明します。ここで説明する手順は、新しい Slack アプリを作成し、ローカルの開発環境をセットアップし、Slack ワークスペースからのメッセージをリッスンして応答するアプリを開発するという流れになります。
10-
11-
この手順を全て終わらせたら、あなたはきっと ⚡️[Slack アプリのはじめ方](https://github.com/slackapi/bolt-python/tree/main/examples/getting_started)のサンプルアプリを動作させたり、それに変更を加えたり、自分のアプリを作ったりすることができるようになるでしょう。
12-
136
---
147

15-
### アプリを作成する {#create-an-app}
16-
最初にやるべきこと : Bolt での開発を始める前に、[Slack アプリを作成](https://api.slack.com/apps/new)します。
17-
18-
:::tip
19-
20-
いつもの仕事のさまたげにならないように、別の開発用のワークスペースを使用することをおすすめします。[新しいワークスペースは無料で作成できます](https://slack.com/get-started#create)
21-
22-
:::
23-
24-
アプリ名を入力し(_後で変更可能_)、インストール先のワークスペースを選択したら、「`Create App`」ボタンをクリックすると、アプリの **Basic Information** ページが表示されます。
25-
26-
このページでは、アプリの概要を確認できます。また、「**App Credentials**」ヘッダーの下では「`Signing Secret`」などの重要な認証情報も確認できます。これらの認証情報は後で必要になります。
27-
28-
![Basic Information ページ](/img/boltpy/basic-information-page.png "Basic Information ページ")
29-
30-
ひと通り確認し、アプリのアイコンと説明を追加したら、アプリの構成 🔩 を始めましょう。
31-
328
---
339

34-
### トークンとアプリのインストール {#tokens-and-installing-apps}
35-
Slack アプリでは、[Slack API へのアクセスの管理に OAuth を使用します](https://api.slack.com/docs/oauth)。アプリがインストールされると、トークンが発行されます。アプリはそのトークンを使って API メソッドを呼び出すことができます。
36-
37-
Slack アプリで使用できるトークンには、ユーザートークン(`xoxp`)とボットトークン(`xoxb`)、アプリレベルトークン(`xapp`)の 3 種類があります。
38-
- [ユーザートークン](https://api.slack.com/authentication/token-types#user) を使用すると、ユーザーがアプリをインストールまたは認証した後、アプリがそのユーザーを代理して API メソッドを呼び出すことができます。1 つのワークスペースに複数のユーザートークンが存在する可能性があります。
39-
- [ボットトークン](https://api.slack.com/authentication/token-types#bot) はボットユーザーに関連づけられ、1 つのワークスペースでは最初に誰かがそのアプリをインストールした際に一度だけ発行されます。どのユーザーがインストールを実行しても、アプリが使用するボットトークンは同じになります。_ほとんど_のアプリで使用されるのは、ボットトークンです。
40-
- [アプリレベルトークン](https://api.slack.com/authentication/token-types#app) は、組織に渡ってあなたのアプリを表すものです。所属する組織内の全てのワークスペースに、全ての個人ユーザによってインストールされたアプリについても同様です。アプリレベルトークンは WebSocket 通信を行うアプリを作る際に通常使われます。
4110

4211
説明を簡潔にするために、このガイドではボットトークンを使用します。
4312

docs/src/css/custom.css

Lines changed: 70 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,52 @@
1-
/**
2-
* Any CSS included here will be global. The classic template
3-
* bundles Infima by default. Infima is a CSS framework designed to
4-
* work well for content-centric websites.
5-
*/
6-
71
:root {
82
/* set hex colors here pls */
93
--aubergine: #4a154b;
10-
114
/* aubergine-active is used in light mode.
125
use something like #853c8c if you use as a link vs black text ( 3:1 contr) */
136
--aubergine-active: #7c3085;
14-
157
/* aubergine-light is used in dark mode. #b681b5 is another one. i just made both up */
168
--aubergine-light: #ce70cc;
17-
189
/* horchata is that beige color we use a lot */
1910
--horchata: #f4ede4;
20-
21-
/* slack-blue is 36C5F0. used for dark-mode links */
22-
--slack-link: #36c5f0;
23-
--slack-blue: #36c5f0;
11+
/* cloud blue from slack.dev. used for dark-mode links */
12+
--slack-cloud-blue: #1ab9ff;
2413
/* slack marketing color for links 1264A3. used for light-mode links */
2514
--slack-dark-blue: #1264a3;
26-
2715
--grey: #868686;
28-
--white: #FFFFFF;
16+
--dim: #eef2f6;
2917
}
3018

3119
/* resets striped tables that hurt me eyes */
3220
table tr:nth-child(even) {
3321
background-color: inherit;
3422
}
3523

36-
p a {
37-
text-decoration: underline;
38-
color: var(--slack-link);
24+
/* changing the links to blue for accessibility */
25+
p a, .markdown a {
26+
color: var(--slack-cloud-blue);
3927
}
4028

41-
.markdown a {
42-
color: var(--slack-link);
43-
text-decoration: underline;
29+
/* a footer {
30+
color: var(--slack-cloud-blue);
31+
} */
32+
33+
a:hover {
34+
color: var(--slack-cloud-blue);
4435
}
4536

4637
/* adjusting for light and dark modes */
4738
[data-theme="light"] {
39+
--docusaurus-highlighted-code-line-bg: var(--dim);
40+
--slack-cloud-blue: var(--slack-dark-blue);
4841
--ifm-color-primary: var(--aubergine-active);
49-
--ifm-footer-background-color: var(--horchata);
50-
--slack-link: var(--slack-dark-blue);
5142
}
5243

5344
[data-theme="dark"] {
54-
--ifm-color-primary: var(--aubergine-light);
55-
--ifm-navbar-background-color: var(--aubergine);
56-
--ifm-footer-background-color: var(--aubergine);
57-
--slack-link: var(--slack-blue);
45+
--ifm-color-primary: var(--slack-cloud-blue);
46+
--ifm-navbar-background-color: black;
47+
--method-link-text: white;
48+
--scope-link-text: white;
49+
--event-link-text: white;
5850
}
5951

6052
html[data-theme="dark"] {
@@ -66,10 +58,12 @@ html[data-theme="dark"] {
6658
font-weight: bold;
6759
}
6860

69-
/* only uncomment for home page -- colors white space on v tall screens */
70-
/* .main-wrapper {
71-
background: var(--horchata);
72-
} */
61+
/* increasing name of sdk in sidebar */
62+
.sidebar-title {
63+
font-size: 1.25em; /* Adjust the size as needed */
64+
font-weight: bold;
65+
color: #000;
66+
}
7367

7468
/* announcement bar up top */
7569
div[class^="announcementBar_"] {
@@ -79,16 +73,6 @@ div[class^="announcementBar_"] {
7973
}
8074

8175
/* navbar */
82-
83-
.sidebar-item-overview a {
84-
font-size: 1.2em; /* Adjust size as needed */
85-
font-weight: bold;
86-
}
87-
88-
html[data-theme='light'] .sidebar-item-overview a {
89-
--ifm-menu-color: #000;
90-
}
91-
9276
.navbar-github-link {
9377
width: 32px;
9478
height: 32px;
@@ -116,12 +100,53 @@ html[data-theme="dark"] .navbar-github-link::before {
116100
no-repeat;
117101
}
118102

119-
.sidebar-title {
120-
font-size: 1.25em; /* Adjust the size as needed */
121-
font-weight: bold;
122-
color: #000;
103+
/* Docs code bubbles */
104+
[data-theme="light"] {
105+
--code-link-background: #CFE9FE;
106+
--code-link-text: rgb(21, 50, 59);
107+
108+
--method-link-background: #CDEFC4;
109+
--method-link-text: rgb(0, 41, 0);
110+
111+
--scope-link-background: #FBF3E0;
112+
--scope-link-text: rgb(63, 46, 0);
113+
114+
--event-link-background: #FDDDE3;
115+
--event-link-text: rgb(74, 21, 75);
116+
}
117+
118+
[data-theme="dark"] {
119+
--code-link-text: white;
120+
--method-link-text: white;
121+
--scope-link-text: white;
122+
--event-link-text: white;
123+
--code-link-background: #1AB9FF50;
124+
--method-link-background: #41B65850;
125+
--scope-link-background: #FCC00350;
126+
--event-link-background: #E3066A50;
127+
}
128+
129+
a code {
130+
background-color: var(--code-link-background);
131+
color: var(--code-link-text);
132+
}
133+
134+
a[href^="https://api.slack.com/methods"] > code {
135+
background-color: var(--method-link-background);
136+
color: var(--method-link-text);
137+
}
138+
139+
a[href^="https://api.slack.com/scopes"] > code {
140+
background-color: var(--scope-link-background);
141+
color: var(--scope-link-text);
142+
}
143+
144+
a[href^="https://api.slack.com/events"] > code {
145+
background-color: var(--event-link-background);
146+
color: var(--event-link-text);
123147
}
124148

149+
/* Delineate tab blocks */
125150
.tabs-container {
126151
border: 2px solid var(--ifm-hr-background-color); /* Adjust the color and thickness as needed */
127152
border-radius: 5px; /* To give rounded corners */

0 commit comments

Comments
 (0)