1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/website
Thomas Heartman 247f751fea
docs: generate client-side SDK docs from readme (#2949)
## What

Delete static client-side SDK docs in favor of generating them at
build time.

- Add a separate list of `clientSideSdks` to `readme-fns`.
- Use sdk type to determine which generation directory it goes into
- Replace manual sidebar category with autogenerated one

## Why

This does the same for client-side SDKs as was done for server-side
SDKs in https://github.com/Unleash/unleash/pull/2858

(Supersedes #2859)
2023-01-25 14:36:50 +01:00
..
.storybook
docs docs: generate client-side SDK docs from readme (#2949) 2023-01-25 14:36:50 +01:00
src docs: auto-generate remaining server-side SDK docs (#2858) 2023-01-13 12:40:28 +01:00
static
.gitignore
babel.config.js
clean-generated-docs.js
docusaurus.config.js docs: generate client-side SDK docs from readme (#2949) 2023-01-25 14:36:50 +01:00
package.json fix(deps): update dependency docusaurus-theme-openapi-docs to v1.5.1 (#2934) 2023-01-19 21:24:28 +00:00
readme-fns.js docs: generate client-side SDK docs from readme (#2949) 2023-01-25 14:36:50 +01:00
README.md
sidebars.js docs: generate client-side SDK docs from readme (#2949) 2023-01-25 14:36:50 +01:00
tsconfig.json
yarn.lock chore(deps): bump cookiejar from 2.1.3 to 2.1.4 in /website (#2977) 2023-01-24 14:24:12 +01:00

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

yarn install

Local Development

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.