Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docusaurus website #875

Merged
merged 26 commits into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8dd9505
Add Docusaurus website
edew Oct 25, 2021
8a70667
Remove check-markdown-links script
edew Oct 26, 2021
b8e48c1
Fix Docusaurus config
edew Oct 27, 2021
96ca909
Revert "Remove check-markdown-links script"
edew Nov 1, 2021
6d0190f
Rename docs to website
edew Nov 8, 2021
44c433e
Ignore api docs in check-markdown-links
edew Nov 8, 2021
943dee2
Ignore docs/api files
edew Nov 8, 2021
522642f
Add temporary docs link until site is live
edew Nov 8, 2021
9b00a2e
Re-add check-markdown-links to verify
edew Nov 8, 2021
794414f
Update sidebar positions
edew Nov 8, 2021
943bbc4
Merge branch 'master' into add-docusaurus-site
edew Nov 8, 2021
dd1d7be
Upgrade Docusaurus to 2.0.0-beta.9
edew Nov 8, 2021
2be1a81
Fix eslintignore
edew Nov 8, 2021
de70a2b
Fix gitignore, versions, add README, remove logo
edew Nov 8, 2021
43086ae
Add browserslistrc file
edew Nov 8, 2021
afe21cc
Fix trailing newline issue
edew Nov 8, 2021
4251535
Fix build warning: specify trailingSlash config
edew Nov 9, 2021
7fdbf77
Add linksto series style options interfaces
edew Nov 9, 2021
1fafe94
Revert "Fix build warning: specify trailingSlash config"
edew Nov 9, 2021
dce4086
Remove handwritten API docs for customization, events, time scale
edew Nov 9, 2021
2248c72
Add docs website build and deploy jobs
edew Nov 10, 2021
817a715
Install build dependencies, persist website dir
edew Nov 10, 2021
2ac84a1
Change direction in same "run" command
edew Nov 10, 2021
199e843
Add node 14 executor for Docusaurus
edew Nov 10, 2021
7dc56f5
Removed unnecessary defaults filters from deploy CI job
timocov Nov 11, 2021
35808d6
Add SSH key fingerprint, remove docusaurus.png
edew Nov 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 65 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ aliases:


executors:
node-latest-executor:
node12-executor:
docker:
- image: circleci/node:12

node-browsers-latest-executor:
node12-browsers-executor:
docker:
- image: circleci/node:12-browsers

node14-executor:
docker:
- image: cimg/node:14.18

commands:
checkout-with-deps:
Expand Down Expand Up @@ -73,14 +76,14 @@ commands:

jobs:
install-deps:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
- run: npm install
- save_cache: *save-node-modules-cache

build:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
# make sure that the project is compiled successfully with composite projects
Expand All @@ -94,31 +97,31 @@ jobs:
- dist

no-crlf:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout
- run: scripts/no-crlf.sh

trailing-lf:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout
- run: scripts/trailing-newlines.sh

lint-js:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
- run: npm run lint:js

lint-ts:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
- run: npm run lint:ts

lint-dts:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
- attach_workspace:
Expand All @@ -127,14 +130,14 @@ jobs:
- run: npm run check-dts-docs

markdown:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
- run: npm run lint:md
- run: npm run check-markdown-links

unittests:
executor: node-latest-executor
executor: node12-executor
environment:
TESTS_REPORT_FILE: "test-results/unittests/results.xml"
steps:
Expand All @@ -144,7 +147,7 @@ jobs:
path: test-results/

dts-changes:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
- run: scripts/check-dts-changes.sh ./dts-changes $(git merge-base origin/master HEAD) $(git rev-parse HEAD)
Expand All @@ -153,33 +156,33 @@ jobs:
when: on_fail

graphics-tests-dpr1_0:
executor: node-browsers-latest-executor
executor: node12-browsers-executor
steps:
- run-graphics-tests:
devicePixelRatio: "1.0"

graphics-tests-dpr1_5:
executor: node-browsers-latest-executor
executor: node12-browsers-executor
steps:
- run-graphics-tests:
devicePixelRatio: "1.5"

graphics-tests-dpr2_0:
executor: node-browsers-latest-executor
executor: node12-browsers-executor
steps:
- run-graphics-tests:
devicePixelRatio: "2.0"

graphics-tests-dpr2_0-prod:
executor: node-browsers-latest-executor
executor: node12-browsers-executor
steps:
- run-graphics-tests:
devicePixelRatio: "2.0"
productionBuild: true


memleaks-tests:
executor: node-browsers-latest-executor
executor: node12-browsers-executor
environment:
NO_SANDBOX: "true"
TESTS_REPORT_FILE: "test-results/memleaks/results.xml"
Expand All @@ -192,7 +195,7 @@ jobs:
path: test-results/

coverage:
executor: node-browsers-latest-executor
executor: node12-browsers-executor
environment:
NO_SANDBOX: "true"
TESTS_REPORT_FILE: "test-results/coverage/results.xml"
Expand All @@ -205,7 +208,7 @@ jobs:
path: test-results/

size-limit:
executor: node-latest-executor
executor: node12-executor
steps:
- checkout-with-deps
- attach_workspace:
Expand All @@ -215,6 +218,39 @@ jobs:
command: node scripts/compare-size-with-merge-base.js
- run: npm run size-limit

build-docusaurus-website:
executor: node14-executor
steps:
- checkout-with-deps
- attach_workspace:
at: ./
- run:
name: "Install dependencies and build website"
command: |
cd website
npm install
npm run build
- persist_to_workspace:
root: ./
paths:
- website

deploy-docusaurus-website:
executor: node14-executor
environment:
USE_SSH: "true"
steps:
- checkout-with-deps
- attach_workspace:
at: ./
- add_ssh_keys:
fingerprints:
- "cb:bc:16:a1:03:fb:b5:fb:69:4b:68:4d:33:a9:54:8c"
- run:
name: "Deploy website"
command: |
cd website
npm run deploy -- --skip-build

workflows:
version: 2
Expand Down Expand Up @@ -285,3 +321,13 @@ workflows:
filters: *default-filters
requires:
- build
- build-docusaurus-website:
filters: *default-filters
requires:
- build
- deploy-docusaurus-website:
filters:
branches:
only: master
requires:
- build-docusaurus-website
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
/lib/**

**/node_modules

/website/docs/api/**
/website/build/**
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ debug.html
/dist/
/src/**/*.js
/src/**/*.d.ts
/website/docs/api/
/website/build
/website/.docusaurus
/website/.cache-loader

!/src/typings/**/*.d.ts

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<!-- markdownlint-enable no-inline-html -->

[Demos][demo-url] | [Documentation](./docs/README.md) | [Discord community](https://discord.gg/E6UthXZ)
[Demos][demo-url] | [Documentation](https://github.com/tradingview/lightweight-charts/tree/b58f2c3e7f539db5baab660bc50842367f5ed4fb/docs) | [Discord community](https://discord.gg/E6UthXZ)

TradingView Lightweight Charts are one of the smallest and fastest financial HTML5 charts.

Expand Down
98 changes: 0 additions & 98 deletions docs/constants.md

This file was deleted.

Loading