Skip to content

Commit 7ef9fe1

Browse files
Merge pull request #2992 from ably/WEB-4839-remove-textile
[WEB-4839] Remove textile support
2 parents 361b094 + 40dbc08 commit 7ef9fe1

389 files changed

Lines changed: 59 additions & 16999 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contribution guide
22

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 processes and content formatting.
44

55
## Pull request process
66

@@ -35,12 +35,12 @@ There are two main locations that contributors need to work with to varying exte
3535

3636
| Folder | Contains |
3737
| ------ | -------- |
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. |
4040

41-
## Textile format
41+
## Content format
4242

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.
4444

4545
### Metadata
4646

@@ -73,19 +73,17 @@ An example heading (with a custom anchor link) is: `h2(#subscribe). Subscribe to
7373

7474
### Links
7575

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)`.
7777

7878
#### Internal links
7979

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)`.
8181

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)`.
8583

8684
#### External links
8785

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)`.
8987

9088
> 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.
9189
@@ -146,25 +144,19 @@ They use the following syntax:
146144

147145
### Tables
148146

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:
152148

153149
```plaintext
154-
|_. Flag |_. Description |
150+
| Flag | Description |
151+
| ---- | ----------- |
155152
| SUBSCRIBE | Can subscribe to receive messages on the channel. |
156153
```
157154

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.
164156

165157
### Admonitions
166158

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.
168160

169161
```html
170162
<aside data-type='note'>
@@ -190,15 +182,15 @@ Three additional types of admonition are used to display features that have been
190182

191183
### Ordered and unordered lists
192184

193-
Textile accepts several formats for unordered lists, however `*` should be used for consistency.
185+
Use `*` for unordered lists for consistency.
194186

195187
```plaintext
196188
* Strawberry
197189
* Mango
198190
* Mint Choc Chip
199191
```
200192

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.
202194

203195
```plaintext
204196
1. Cornetto
@@ -329,7 +321,7 @@ bq(definition).
329321
330322
### Partials
331323
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.
333325
334326
```plaintext
335327
<%= partial partial_version('realtime/_stats') %>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This repository is the source for content published to [https://ably.com/docs](https://ably.com/docs).
44

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/).
66

77
## Run locally
88

bin/assert-content-auth.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ run_test "/index.html" "301" "text/html" "http://www.example.com/" "" "index.htm
9999
run_test "/does-not-exist.html" "404" "text/html" "" "foo" "Does not exist with auth token"
100100

101101
# 8. Verify assets requests work without auth
102-
FIRST_ASSET=$(find public -name "*.jpg" -type f | head -n1 | sed 's|^public/||')
103-
run_test "/${FIRST_ASSET}" "200" "image/jpeg" "" "" "JPEG without auth"
102+
FIRST_ASSET=$(find public -name "*.png" -type f -print -quit | sed 's|^public/||')
103+
run_test "/${FIRST_ASSET}" "200" "image/png" "" "" "PNG without auth"
104104

105105
# 9. Verify JSON requests work without auth
106106
run_test "/page-data/app-data.json" "200" "application/json" "" "" "Page data without auth"

content/partials/core-features/_authentication_capabilities.textile

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

content/partials/core-features/_authentication_comparison.textile

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

content/partials/general/events/_batched_event_headers.textile

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

content/partials/general/events/_batched_events.textile

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

content/partials/general/events/_enveloped_event_headers.textile

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

0 commit comments

Comments
 (0)