Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EDX-207] Add intro blurb to generated documentation #1055

Merged
merged 3 commits into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions docs/landing-pages/choose-library.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,30 @@
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Ably JavaScript client library documentation</title>
<title>Ably JavaScript Client Library SDK API Reference</title>
</head>
<body>
<h1>Ably JavaScript client library documentation</h1>
<h1>Ably JavaScript Client Library SDK API Reference</h1>

<p>
The JavaScript Client Library SDK supports a realtime and a REST interface. The JavaScript API references are generated from the <a href="https://github.com/ably/ably-js/">Ably JavaScript Client Library SDK source code</a> using <a href="https://typedoc.org">TypeDoc</a> and structured by classes.
</p>

<p>
The realtime interface enables a client to maintain a persistent connection to Ably and publish, subscribe and be present on channels. The REST interface is stateless and typically implemented server-side. It is used to make requests such as retrieving statistics, token authentication and publishing to a channel.
</p>

<p>
There are two API variants of the Ably JavaScript Client Library SDK:

<ul>
<li><a href="default/index.html">Default (callback-based) variant of library (<code>import * as Ably from 'ably'</code>)</a></li>
<li><a href="promises/index.html">Promise-based variant of library (<code>import * as Ably from 'ably/promises'</code>)</a></li>
<li><a href="default/index.html">Callback-based</a> (default)</li>
<li><a href="promises/index.html">Promise-based</a></li>
</ul>
</p>

<p>
View the <a href="https://ably.com/docs/">Ably docs</a> for conceptual information on using Ably, and for API references featuring all languages. The combined <a href="https://ably.com/docs/api/">API references</a> are organized by features and split between the <a href="https://ably.com/docs/api/realtime-sdk">realtime</a> and <a href="https://ably.com/docs/api/rest-sdk">REST</a> interfaces.
</p>
</body>
</html>
8 changes: 4 additions & 4 deletions docs/landing-pages/default.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Hello there!
# Ably JavaScript Client Library SDK API Reference for Callbacks

This is the intro to the Ably SDK.
You are currently viewing the callback-based variant of the Ably JavaScript Client Library SDK. View the promise-based variant [here](../promises/index.html).

The entry points to this SDK are the [Rest](classes/Rest.html) and [Realtime](classes/Realtime.html) classes.
The callback-based variant of the API implements the common Node.js error-first callback style.

**TODO proper content to come from tech writers (in [EDX-155](https://ably.atlassian.net/browse/EDX-155)) before this goes public**
To get started with the Ably JavaScript Client Library SDK, follow the [Quickstart Guide](https://ably.com/docs/quick-start-guide) or view the introductions to the [realtime](https://ably.com/docs/realtime/usage) and [REST](https://ably.com/docs/rest/usage) interfaces.
8 changes: 4 additions & 4 deletions docs/landing-pages/promises.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Hello there!
# Ably JavaScript Client Library SDK API Reference for Promises

This is the intro to the Promise-based variant of the Ably SDK.
You are currently viewing the promise-based variant of the Ably JavaScript Client Library SDK. View the callback-based variant [here](../default/index.html).

The entry points to this SDK are the [Rest](classes/Rest.html) and [Realtime](classes/Realtime.html) classes.
Passing callbacks to methods when using the promise-based variant of the API is still possible, however, if a method does not receive a callback then it will instead return a promise.

**TODO proper content to come from tech writers (in [EDX-155](https://ably.atlassian.net/browse/EDX-155)) before this goes public**
To get started with the Ably JavaScript Client Library SDK, follow the [Quickstart Guide](https://ably.com/docs/quick-start-guide) or view the introductions to the [realtime](https://ably.com/docs/realtime/usage) and [REST](https://ably.com/docs/rest/usage) interfaces.