You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-25Lines changed: 17 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Contribution guide
2
2
3
-
This guide covers how to contribute to the Ably docs repository. From general pull request processes, to how to update and use each textile component.
3
+
This guide covers how to contribute to the Ably docs repository, including general pull request processesand content formatting.
4
4
5
5
## Pull request process
6
6
@@ -35,12 +35,12 @@ There are two main locations that contributors need to work with to varying exte
35
35
36
36
| Folder | Contains |
37
37
| ------ | -------- |
38
-
|content|All content pages written in textile. |
39
-
| src | Images, navigation and language version and management. |
38
+
|how-tos|Tutorial content in MDX format. |
39
+
| src | Images, navigation, and language version management. |
40
40
41
-
## Textile format
41
+
## Content format
42
42
43
-
The following sections discuss how to write and implement each component using textile.
43
+
Documentation pages use MDX format for content. The following sections discuss common formatting patterns.
44
44
45
45
### Metadata
46
46
@@ -73,19 +73,17 @@ An example heading (with a custom anchor link) is: `h2(#subscribe). Subscribe to
73
73
74
74
### Links
75
75
76
-
Links in textile are written in quotation marks. Link text can also be [code styled](#in-line-code).
76
+
Use standard Markdown link syntax: `[link text](url)`.
77
77
78
78
#### Internal links
79
79
80
-
To link to another heading on the same page use the anchor link: `"channel state changes":#listen-for-state`.
80
+
To link to another docs page use: `[messages](/docs/channels/message)`.
81
81
82
-
To link to another docs page use: `"messages":/docs/channels/message`.
83
-
84
-
You may also use in-line code to style link text: `"@get()@":/docs/api/realtime-sdk/channels#get method`
82
+
To link to a heading on the same page: `[channel state changes](#listen-for-state)`.
85
83
86
84
#### External links
87
85
88
-
To link externally, or outside of the docs repository, use a fully qualified link: `"Ably dashboard":https://ably.com/dashboard`.
86
+
Use fully qualified URLs: `[Ably dashboard](https://ably.com/dashboard)`.
89
87
90
88
> Note: for dashboard links you can use `/any/` as the account ID to link directly to a specific page. For example: `https://ably.com/accounts/any/edit` for the account settings page.
91
89
@@ -146,25 +144,19 @@ They use the following syntax:
146
144
147
145
### Tables
148
146
149
-
Textile tables are supported which are slightly more flexible than Markdown ones. They don't need to use a row of hyphens to separate the header and content either.
150
-
151
-
For the header row use the following syntax:
147
+
Tables use standard Markdown syntax:
152
148
153
149
```plaintext
154
-
|_. Flag |_. Description |
150
+
| Flag | Description |
151
+
| ---- | ----------- |
155
152
| SUBSCRIBE | Can subscribe to receive messages on the channel. |
156
153
```
157
154
158
-
To make a cell span two columns:
159
-
160
-
```plaintext
161
-
|_/2=. Limit |
162
-
|_. Soft |_. Hard |
163
-
```
155
+
For more complex table layouts, HTML table syntax can be used.
164
156
165
157
### Admonitions
166
158
167
-
There are three types of admonition that can be used; `note`, `important` and `further-reading`. Update the value of `data-type` to switch between them. Admonitions are written using the HTML `<aside>` tag. Content must be constructed in HTML, other than links and in-line code styling which accept textile format.
159
+
There are three types of admonition that can be used; `note`, `important` and `further-reading`. Update the value of `data-type` to switch between them. Admonitions are written using the HTML `<aside>` tag with HTML or Markdown content.
168
160
169
161
```html
170
162
<asidedata-type='note'>
@@ -190,15 +182,15 @@ Three additional types of admonition are used to display features that have been
190
182
191
183
### Ordered and unordered lists
192
184
193
-
Textile accepts several formats for unordered lists, however `*`should be used for consistency.
185
+
Use `*`for unordered lists for consistency.
194
186
195
187
```plaintext
196
188
* Strawberry
197
189
* Mango
198
190
* Mint Choc Chip
199
191
```
200
192
201
-
For ordered lists, textile will accept any number before a `.` and order it appropriately. Ascending numbers should be used for readability and consistency.
193
+
For ordered lists, use standard Markdown syntax with ascending numbers for readability and consistency.
202
194
203
195
```plaintext
204
196
1. Cornetto
@@ -329,7 +321,7 @@ bq(definition).
329
321
330
322
### Partials
331
323
332
-
API references make use of [partials](content/partials/) where content is reused between files. They are included in .textile files using the following syntax:
324
+
API references previously used partials for reusable content. This functionality has been replaced with component-based content reuse.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This repository is the source for content published to [https://ably.com/docs](https://ably.com/docs).
4
4
5
-
The source content is written in [Textile](https://github.com/textile/textile-spec) and the site is generated by [Gatsby](https://www.gatsbyjs.com/).
5
+
The source content is written in [GFM (GitHub-flavoured Markdown](https://github.github.com/gfm/) and the site is generated by [Gatsby](https://www.gatsbyjs.com/).
0 commit comments