Skip to content

Commit f3a524e

Browse files
authored
Migrate to vuepress-theme-chartjs (#371)
* Migrate to vuepress-theme-chartjs * Review feedback * Add searchPlaceholder
1 parent 26268f3 commit f3a524e

File tree

18 files changed

+51
-843
lines changed

18 files changed

+51
-843
lines changed

docs/.vuepress/config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
const ChartEditorPlugin = require('./plugins/chart-editor');
2-
31
module.exports = {
42
title: 'chartjs-plugin-annotation',
53
description: 'Annotations for Chart.js',
4+
theme: 'chartjs',
65
base: '/chartjs-plugin-annotation/',
76
head: [
87
['link', {rel: 'icon', href: '/favicon.png'}],
@@ -14,20 +13,21 @@ module.exports = {
1413
{base: '/samples', alternative: ['types/line']},
1514
],
1615
}],
17-
[ChartEditorPlugin, {
18-
imports: [
19-
['scripts/register.js'],
20-
['scripts/defaults.js'],
21-
['scripts/utils.js', 'Utils'],
22-
]
23-
}],
2416
],
2517
themeConfig: {
2618
repo: 'chartjs/chartjs-plugin-annotation',
2719
logo: '/favicon.png',
2820
lastUpdated: 'Last Updated',
29-
editLinks: false,
30-
docsDir: 'samples',
21+
searchPlaceholder: 'Search...',
22+
editLinks: true,
23+
docsDir: 'docs',
24+
chart: {
25+
imports: [
26+
['scripts/register.js'],
27+
['scripts/defaults.js'],
28+
['scripts/utils.js', 'Utils'],
29+
]
30+
},
3131
nav: [
3232
{text: 'Home', link: '/'},
3333
{text: 'Guide', link: '/guide/'},

docs/.vuepress/plugins/chart-editor/components/ChartActions.vue

Lines changed: 0 additions & 55 deletions
This file was deleted.

docs/.vuepress/plugins/chart-editor/components/ChartEditor.vue

Lines changed: 0 additions & 120 deletions
This file was deleted.

docs/.vuepress/plugins/chart-editor/components/ChartView.vue

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)