Skip to content

Commit a7f5b68

Browse files
build: clone repository "docs" and configuration when syncing project docs (#467)
1 parent c69deab commit a7f5b68

File tree

4 files changed

+98
-78
lines changed

4 files changed

+98
-78
lines changed

.github/maintainers_guide.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,39 @@ level of information with labels. An issue should have **one** of the following
9090
Issues are closed when a resolution has been reached. If for any reason a closed issue seems
9191
relevant once again, reopening is great and better than creating a duplicate issue.
9292

93+
## Docs
94+
95+
This repo contains two types of docs files:
96+
97+
* markdown files
98+
* sidebar.json
99+
100+
The private repo containing the tools.slack.dev site pulls these in at build time.
101+
102+
Maintainers need to use the `run workflow` button associated with the `deploy` workflow in that private repo to update the docs with changes from here.
103+
104+
### Markdown Files
105+
106+
The markdown files here are secretly mdx files in disguise.
107+
108+
If you'd like to add images to pages, add the image files to the same folder the md file is in.
109+
110+
We appreciate markdown edits from anyone!!!
111+
112+
### Sidebar
113+
114+
`_sidebar.json` sets the slack github action docs sidebar
115+
116+
sidebar values take the form of "slack-github-action/path-within-docs/"
117+
118+
or, in other words - full path but remove "docs":
119+
path: slack-github-action/docs/sending-variables.md
120+
value: slack-github-action/sending-variables
121+
122+
for info on syntax see https://docusaurus.io/docs/sidebar
123+
124+
this file is copied into slackapi.github.io/slack-github-action/sidebar.js it is then called in slackapi.github.io/sidebars.js
125+
93126
## Everything else
94127

95128
When in doubt, find the other maintainers and ask.

.github/workflows/sync-docs.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

docs/_sidebar.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[
2+
{
3+
"type": "doc",
4+
"id": "slack-github-action/slack-github-action",
5+
"label": "Slack GitHub Action",
6+
"className": "sidebar-title"
7+
},
8+
{ "type": "html", "value": "<hr>" },
9+
"slack-github-action/sending-variables",
10+
{
11+
"type": "category",
12+
"label": "Sending techniques",
13+
"collapsed": false,
14+
"link": {
15+
"type": "doc",
16+
"id": "slack-github-action/sending-techniques/sending-techniques"
17+
},
18+
"items": [
19+
"slack-github-action/sending-techniques/sending-techniques",
20+
{
21+
"type": "category",
22+
"label": "Sending data via a webhook to start a Slack workflow",
23+
"link": {
24+
"type": "doc",
25+
"id": "slack-github-action/sending-techniques/sending-data-webhook-slack-workflow/sending-data-webhook-slack-workflow"
26+
},
27+
"items": [
28+
"slack-github-action/sending-techniques/sending-data-webhook-slack-workflow/sending-data-webhook-slack-workflow",
29+
"slack-github-action/sending-techniques/sending-data-webhook-slack-workflow/format-generated-files",
30+
"slack-github-action/sending-techniques/sending-data-webhook-slack-workflow/post-release-announcements",
31+
"slack-github-action/sending-techniques/sending-data-webhook-slack-workflow/update-a-channel-topic"
32+
]
33+
},
34+
{
35+
"type": "category",
36+
"label": "Sending data using a Slack API method",
37+
"link": {
38+
"type": "doc",
39+
"id": "slack-github-action/sending-techniques/sending-data-slack-api-method/sending-data-slack-api-method"
40+
},
41+
"items": [
42+
"slack-github-action/sending-techniques/sending-data-slack-api-method/sending-data-slack-api-method",
43+
"slack-github-action/sending-techniques/sending-data-slack-api-method/direct-message-author",
44+
"slack-github-action/sending-techniques/sending-data-slack-api-method/invite-usergroup-to-channel"
45+
]
46+
},
47+
{
48+
"type": "category",
49+
"label": "Sending data as a message with a Slack incoming webhook URL",
50+
"link": {
51+
"type": "doc",
52+
"id": "slack-github-action/sending-techniques/sending-data-slack-incoming-webhook/sending-data-slack-incoming-webhook"
53+
},
54+
"items": [
55+
"slack-github-action/sending-techniques/sending-data-slack-incoming-webhook/sending-data-slack-incoming-webhook",
56+
"slack-github-action/sending-techniques/sending-data-slack-incoming-webhook/post-inline-text-message",
57+
"slack-github-action/sending-techniques/sending-data-slack-incoming-webhook/post-inline-block-message",
58+
"slack-github-action/sending-techniques/sending-data-slack-incoming-webhook/post-blocks-found-in-file"
59+
]
60+
}
61+
]
62+
},
63+
"slack-github-action/additional-configurations"
64+
]

docs/sending-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sending variables
1+
# Sending variables
22

33
There are different [techniques to send data](/slack-github-action/sending-techniques) into Slack and whichever one is chosen will require a certain set of customized inputs, as described later.
44

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy