lightweight-charts/website
2022-12-14 15:54:28 +00:00
..
.previous-typings-cache Added loading previous versions typings on website build 2021-12-02 18:10:12 +00:00
docs 606: Restored ticksVisible option 2022-05-23 10:19:07 +03:00
plugins/enhanced-codeblock docs chart defaults to using current version 2022-09-06 15:43:22 +02:00
scripts Update types and theme colors 2022-04-08 14:53:33 +01:00
src added web components guide 2022-09-13 16:23:22 +01:00
static Remove uneeded hero images, optimise navbar images 2022-02-10 18:31:42 +00:00
tutorials Updated default font family 2022-11-24 15:06:26 +03:00
versioned_docs/version-3.8 Merge pull request #1045 from edew/docs_replace_images_with_charts 2022-04-25 12:57:50 +01:00
versioned_sidebars Preparing for releasing 3.8 version 2022-02-17 14:56:31 +00:00
.browserslistrc Add browserslistrc file 2021-11-08 17:17:33 +00:00
.eslintrc.js add partial rgb string to theme-colors 2022-08-18 20:50:22 +02:00
.npmrc Added .npmrc to website folder [skip ci] 2021-11-19 16:38:56 +00:00
babel.config.js Rename docs to website 2021-11-08 13:59:48 +00:00
docusaurus.config.js further enhanced code block component 2022-08-18 20:50:22 +02:00
package.json Updating TS & other non documentation or framwork deps 2022-12-14 15:54:28 +00:00
README.md Updating TS & other non documentation or framwork deps 2022-12-14 15:54:28 +00:00
sidebars-tutorials.js fix typos in web components guide 2022-09-13 17:19:28 +01:00
sidebars.js docs: add ios and android pages to sidebar root 2022-02-03 17:09:15 +00:00
svgr.config.js Optimize inline svgs 2022-01-27 14:49:36 +00:00
theme-colors.js add partial rgb string to theme-colors 2022-08-18 20:50:22 +02:00
tsconfig.json Trying to fix build 2022-07-14 19:09:43 +03:00
versions.json Preparing for releasing 3.8 version 2022-02-17 14:56:31 +00:00

Lightweight Charts Documentation Website

The source of the documentation website for Lightweight Charts. This website is built using Docusaurus 2.

The aim of this documentation is to make using the library frictionless.

API documentation is automatically generated from the typings.d.ts file, which itself is generated as part of the library build process.

Handwritten documentation should focus on explaining concepts, tutorials, interactive examples, or in general anything that can't be automatically generated.

Local Development

npm run start

Note: API documentation will not be generated unless you have already built the library and its typings.d.ts file.

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

Build

npm run build

Note: API documentation will not be generated unless you have already built the library and its typings.d.ts file.

This command generates static content in the build directory.

Serve Build Locally

npm run serve

Note: Embedded .html examples won't display correctly when using this command but will work correctly when hosted online.

This command serves the built website locally.

Deployment

GIT_USER=<Your GitHub username> GITHUB_ORGANIZATION_NAME=<Your Github username or organization name> USE_SSH=true npm deploy

Note: API documentation will not be generated unless you have already built the library and its typings.d.ts file.

This will build the website into static files and push the files to the gh-pages branch.

Adding a new version

Run the following command replacing $VERSION with the name of a version you would like to create. $VERSION should match one of the available versions of the package on unpkg.com

See the Docusaurus versioning docs for an explanation of the Docusaurus versioning behaviour.

npm run docusaurus docs:version $VERSION

For example:

npm run docusaurus docs:version 3.7.0

CircleCI

We use CircleCI to build, test, publish the library, and to deploy this website.

The build-docusaurus-website and deploy-docusaurus-website jobs defined in .circleci/config.yml build and deploy the website.

The build-docusaurus-website job is run for all branches (so that, for example, we can get feedback about any changes that might break the website build before merging).

The deploy-docusaurus-website job is only run on the master branch.

Docusaurus CLI

You can read more about the commands used to build, deploy, and more in the Docusaurus CLI documentation.