Skip to content

Commit e4cbca1

Browse files
authored
Switch deploy action for preserving history (#364)
* Switch deploy action for preserving history * Disable autcolors from guide
1 parent dfc658b commit e4cbca1

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ jobs:
2727
- uses: actions/setup-node@v1
2828
with:
2929
node-version: '12.x'
30+
- name: Build
31+
run: |
32+
npm ci
33+
npm run docs
3034
- name: Release to GitHub Pages
31-
uses: jenkey2011/vuepress-deploy@master
35+
uses: peaceiris/actions-gh-pages@v3
3236
env:
33-
ACCESS_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
34-
BUILD_SCRIPT: npm ci && npm run docs
35-
BUILD_DIR: dist/docs/
37+
github_token: ${{ secrets.GH_AUTH_TOKEN }}
38+
publish_dir: dist/docs

docs/guide/options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ As with most options in chart.js, the annotation plugin options are scriptable.
1616
/* <block:options:0> */
1717
const options = {
1818
plugins: {
19+
autocolors: false,
1920
annotation: {
2021
annotations: {
2122
box1: {

docs/guide/types/box.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Box annotations are used to draw rectangles on the chart area. This can be usefu
66
/* <block:options:0> */
77
const options = {
88
plugins: {
9+
autocolors: false,
910
annotation: {
1011
annotations: {
1112
box1: {

docs/guide/types/ellipse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Ellipse annotations are used to draw circles on the chart area. This can be usef
66
/* <block:options:0> */
77
const options = {
88
plugins: {
9+
autocolors: false,
910
annotation: {
1011
annotations: {
1112
box1: {

docs/guide/types/line.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Line annotations are used to draw lines on the chart area. This can be useful fo
66
/* <block:options:0> */
77
const options = {
88
plugins: {
9+
autocolors: false,
910
annotation: {
1011
annotations: {
1112
line1: {

docs/guide/types/point.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Point annotations are used to mark points on the chart area. This can be useful
66
/* <block:options:0> */
77
const options = {
88
plugins: {
9+
autocolors: false,
910
annotation: {
1011
annotations: {
1112
point1: {

docs/guide/usage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const config = {
1818
},
1919
options: {
2020
plugins: {
21+
autocolors: false,
2122
annotation: {
2223
annotations: {
2324
box1: {

0 commit comments

Comments
 (0)