Skip to content

Commit

Permalink
Refactor the docs theme and plugin in a separate repo
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrunel committed Mar 24, 2021
1 parent 182e75f commit 345ca33
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 897 deletions.
26 changes: 11 additions & 15 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const ChartEditorPlugin = require('./plugins/chart-editor');

module.exports = {
dest: 'dist/docs',
theme: 'chartjs',
title: 'chartjs-plugin-datalabels',
description: 'Display labels on data for any type of charts.',
description: 'Display labels on data for any type of charts',
head: [
['link', {rel: 'icon', href: '/favicon.png'}],
],
Expand All @@ -16,13 +16,6 @@ module.exports = {
{base: '/samples', alternative: ['charts/line']},
],
}],
[ChartEditorPlugin, {
imports: [
['samples/register.js'],
['samples/defaults.js'],
['samples/utils.js', 'Utils'],
]
}],
],
themeConfig: {
repo: 'chartjs/chartjs-plugin-datalabels',
Expand All @@ -32,7 +25,14 @@ module.exports = {
docsDir: 'docs',
algolia: {
apiKey: '7224f458f773f7cf4cbbc4c53621d30c',
indexName: 'chartjs-plugin-datalabels'
indexName: 'chartjs-plugin-datalabels',
},
chart: {
imports: [
['samples/register.js'],
['samples/defaults.js'],
['samples/utils.js', 'Utils'],
]
},
nav: [
{text: 'Home', link: '/'},
Expand All @@ -54,7 +54,6 @@ module.exports = {
'/samples/': [
{
title: 'Charts',
collapsable: false,
children: [
'charts/line',
'charts/bar',
Expand All @@ -66,7 +65,6 @@ module.exports = {
},
{
title: 'Scriptable',
collapsable: false,
children: [
'scriptable/interactions',
'scriptable/data',
Expand All @@ -77,7 +75,6 @@ module.exports = {
},
{
title: 'Events',
collapsable: false,
children: [
'events/listeners',
'events/highlight',
Expand All @@ -86,7 +83,6 @@ module.exports = {
},
{
title: 'Advanced',
collapsable: false,
children: [
'advanced/multiple-labels',
'advanced/custom-labels',
Expand Down
55 changes: 0 additions & 55 deletions docs/.vuepress/plugins/chart-editor/components/ChartActions.vue

This file was deleted.

120 changes: 0 additions & 120 deletions docs/.vuepress/plugins/chart-editor/components/ChartEditor.vue

This file was deleted.

32 changes: 0 additions & 32 deletions docs/.vuepress/plugins/chart-editor/components/ChartView.vue

This file was deleted.

Loading

0 comments on commit 345ca33

Please sign in to comment.