Skip to content

ably/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ably Docs

This repository is the source for content published to https://ably.com/docs.

The source content is written in Textile and the site is generated by Gatsby.

Run locally

To run the docs site locally, follow these steps:

  1. Meet these prerequisites:
  • Install Node
  • Install Yarn
  1. Clone this repository and make it your working directory.

  2. Run yarn install to install all dependencies.

  3. If this is the first time running the site, run yarn run develop:env-setup to setup your environment variables. Visit localhost:8000 to view the site.

  4. Run yarn run develop and visit localhost:8000 to view the site.

Contribute

View the contribution guide for information on how to write content and contribute to Ably docs.

Support

If you have any questions or suggestions, please raise an issue.

Website Proxy

The Website app forwards requests to /docs to the docs.ably.com site.

Asset prefixing is applied only during the app build process and is not available in the dev version.

To ensure proper setup in your local:

  1. Set the ASSET_PREFIX=http://localhost:9000 variable in your environment.
  2. Add DOCS_BASE_URL=http://localhost:9000 to your .env file in the root of the Website app.
  3. Ensure that .env.production exists in the app root for the Yarn build to function correctly.
  4. You should be able to view the content and toggle between signed in and signed-out states.