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.
To run the docs site locally, follow these steps:
- Meet these prerequisites:
- Install Node
- Install Yarn
-
Clone this repository and make it your working directory.
-
Run
yarn install
to install all dependencies. -
If this is the first time running the site, run
yarn run develop:env-setup
to setup your environment variables. Visitlocalhost:8000
to view the site. -
Run
yarn run develop
and visitlocalhost:8000
to view the site.
View the contribution guide for information on how to write content and contribute to Ably docs.
If you have any questions or suggestions, please raise an issue.
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:
- Set the
ASSET_PREFIX=http://localhost:9000
variable in your environment. - Add
DOCS_BASE_URL=http://localhost:9000
to your.env
file in the root of the Website app. - Ensure that
.env.production
exists in the app root for the Yarn build to function correctly. - You should be able to view the content and toggle between signed in and signed-out states.