-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from sgratzl/release/v4.3.1
Release v4.3.1
- Loading branch information
Showing
63 changed files
with
4,480 additions
and
3,538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Deploy Website | ||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
- run: npm i -g yarn | ||
- run: yarn config set checksumBehavior ignore | ||
- name: Cache Node.js modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./.yarn/cache | ||
./.yarn/unplugged | ||
key: ${{ runner.os }}-yarn2-v5-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn2-v5 | ||
- run: yarn install | ||
- run: yarn docs:build | ||
- uses: actions/configure-pages@v2 | ||
- uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: docs/.vitepress/dist | ||
- name: Deploy | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
559 changes: 280 additions & 279 deletions
559
.yarn/releases/yarn-3.5.0.cjs → .yarn/releases/yarn-3.6.1.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { defineConfig } from 'vitepress'; | ||
import { name, description, repository, license, author } from '../../package.json'; | ||
import typedocSidebar from '../api/typedoc-sidebar.json'; | ||
|
||
const cleanName = name.replace('@sgratzl/', ''); | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: cleanName, | ||
description, | ||
base: `/${cleanName}/`, | ||
useWebFonts: false, | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{ text: 'Home', link: '/' }, | ||
{ text: 'Getting Started', link: '/getting-started' }, | ||
{ text: 'Examples', link: '/examples/' }, | ||
{ text: 'API', link: '/api/' }, | ||
{ text: 'Related Plugins', link: '/related' }, | ||
], | ||
|
||
sidebar: [ | ||
{ | ||
text: 'Examples', | ||
items: [ | ||
{ text: 'Basic', link: '/examples/' }, | ||
{ text: 'Single Node', link: '/examples/single' }, | ||
{ text: 'Attributes', link: '/examples/attributes' }, | ||
{ text: 'Scriptable', link: '/examples/scriptable' }, | ||
{ text: 'Static Expansion', link: '/examples/static' }, | ||
{ text: 'Single Child', link: '/examples/singleChild' }, | ||
{ text: 'Horizontal Scale', link: '/examples/horizontal' }, | ||
{ text: 'Horizontal Scale (Reversed)', link: '/examples/horizontalReverse' }, | ||
{ text: 'Deep Hierarchy', link: '/examples/deep' }, | ||
{ text: 'Line Chart', link: '/examples/line' }, | ||
{ text: 'End Hierarchy', link: '/examples/endHierarchy' }, | ||
{ text: 'No Label', link: '/examples/noLabel' }, | ||
// | ||
], | ||
}, | ||
{ | ||
text: 'API', | ||
collapsed: true, | ||
items: typedocSidebar, | ||
}, | ||
], | ||
|
||
socialLinks: [{ icon: 'github', link: repository.url.replace('.git', '') }], | ||
|
||
footer: { | ||
message: `Released under the <a href="${repository.url.replace( | ||
'.git', | ||
'' | ||
)}/tree/main/LICENSE">${license} license</a>.`, | ||
copyright: `Copyright © 2019-present <a href="${author.url}">${author.name}</a>`, | ||
}, | ||
|
||
editLink: { | ||
pattern: `${repository.url.replace('.git', '')}/edit/main/docs/:path`, | ||
}, | ||
|
||
search: { | ||
provider: 'local', | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import Theme from 'vitepress/theme'; | ||
import { Chart } from 'vue-chartjs'; | ||
import { | ||
Chart as ChartJS, | ||
CategoryScale, | ||
Tooltip, | ||
LinearScale, | ||
BarController, | ||
BarElement, | ||
LineController, | ||
Colors, | ||
LineElement, | ||
PointElement, | ||
} from 'chart.js'; | ||
import { HierarchicalScale } from '../../../src'; | ||
|
||
export default { | ||
...Theme, | ||
enhanceApp({ app }) { | ||
ChartJS.register( | ||
HierarchicalScale, | ||
CategoryScale, | ||
Tooltip, | ||
LinearScale, | ||
BarController, | ||
BarElement, | ||
LineController, | ||
LineElement, | ||
PointElement, | ||
Colors | ||
); | ||
app.component('Chart', Chart); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Attributes | ||
--- | ||
|
||
# Attributes | ||
|
||
<script setup> | ||
import {config} from './attributes'; | ||
</script> | ||
|
||
<Chart | ||
:type="config.type" | ||
:options="config.options" | ||
:data="config.data" | ||
/> | ||
|
||
### Code | ||
|
||
:::code-group | ||
|
||
<<< ./attributes.ts#config [config] | ||
|
||
<<< ./attributes.ts#data [data] | ||
|
||
::: |
Oops, something went wrong.