lightweight-charts/website
Mark Silverwood 42659f2206
version 4.1.7
2024-07-11 17:14:15 +01:00
..
.previous-typings-cache Added loading previous versions typings on website build 2021-12-02 18:10:12 +00:00
docs version 4.1.7 2024-07-11 17:14:15 +01:00
plugins/enhanced-codeblock add how to example for horizontal price scale 2024-06-06 18:45:18 +01:00
scripts Update types and theme colors 2022-04-08 14:53:33 +01:00
src [docs site] adjust font-weights 2024-04-26 14:15:08 +01:00
static update favicon 2022-12-30 11:28:54 +00:00
tutorials fix the capitalisation of list headings 2024-06-14 11:20:31 +01:00
versioned_docs version 4.1.7 2024-07-11 17:14:15 +01:00
versioned_sidebars update documentation website for v4.1 2023-10-04 13:49:12 +01:00
.browserslistrc Add browserslistrc file 2021-11-08 17:17:33 +00:00
.eslintrc.js add more theme colours for use in documentation examples 2024-03-25 19:15:53 +00: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 Add product links to footer 2023-08-22 13:51:55 +01:00
package.json version 4.1.7 2024-07-11 17:14:15 +01:00
README.md add trademark symbols to Lightweight Charts™ 2023-03-21 10:32:33 +00:00
sidebars-tutorials.js add demos section to the tutorials 2024-03-25 19:17:32 +00:00
sidebars.js add documentation for plugins 2023-04-20 22:09:50 +01:00
svgr.config.js Optimize inline svgs 2022-01-27 14:49:36 +00:00
theme-colors.js add more theme colours for use in documentation examples 2024-03-25 19:15:53 +00:00
tsconfig.json new docusaurus tsconfig breaks website building 2023-03-14 13:52:37 +00:00
versions.json update documentation website for v4.1 2023-10-04 13:49:12 +01: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.