Skip to content

Commit

Permalink
docs: update sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywu committed Jan 30, 2024
1 parent e25683f commit 1d4f615
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.tslint": true
"source.fixAll.eslint": "explicit",
"source.fixAll.tslint": "explicit"
},
"eslint.options": {
"overrideConfigFile": "./.eslintrc.js"
Expand Down
14 changes: 14 additions & 0 deletions docs/docs/.vitepress/components/sponsor.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<template>
<br />
<br />

<Divider />

<h2 align="center" style="font-size: 26px; font-weight: bold; padding: 10px 0 22px 0;">Special Sponsor</h2>

<p align="center">
<a target="_blank" rel="external dofollow" title="banning sensor" href="https://www.bnsense.com/">
<img alt="special sponsor appwrite" src="https://www.bnsense.com/uploads/LOGO/imgs/logo_1704355682323.png" width="160">
</a>
</p>
</template>
8 changes: 8 additions & 0 deletions docs/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import DefaultTheme from 'vitepress/theme';
// @ts-ignore
import Sponsors from '../components/sponsor.vue';
// @ts-ignore
import CodePanel from '../../components/CodePanel.vue';
// @ts-ignore
import MySandbox from '../../components/MySandbox.vue';
// @ts-ignore
import OptsSandbox from '../../components/OptsSandbox.vue';
// @ts-ignore
import Sandbox from '../../../../src/components/Sandbox.vue';
import { h } from 'vue';

// for build test
// import { Sandbox } from '../../../../dist/esm';

export default {
...DefaultTheme,
Layout() {
return h(DefaultTheme.Layout, null, {
'home-features-after': () => h(Sponsors),
})
},
enhanceApp(ctx) {
DefaultTheme.enhanceApp(ctx);
ctx.app.component('Sandbox', Sandbox);
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"devDependencies": {
"highlight.js": "^11.9.0",
"vitepress": "^1.0.0-rc.23"
"vitepress": "^1.0.0-rc.40"
}
}
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,28 @@
"dependencies": {
"@codesandbox/sandpack-themes": "^2.0.21",
"markdown-it-container": "^3.0.0",
"sandpack-vue3": "^3.1.9"
"sandpack-vue3": "^3.1.11"
},
"devDependencies": {
"@commitlint/cli": "^18.0.0",
"@commitlint/config-conventional": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vitejs/plugin-vue": "^4.4.0",
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitejs/plugin-vue": "^4.6.2",
"@vue/eslint-config-typescript": "^12.0.0",
"babel-loader": "^9.1.3",
"bumpp": "^9.2.0",
"eslint": "^8.52.0",
"bumpp": "^9.3.0",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-vue": "^9.17.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-vue": "^9.20.1",
"husky": "^8.0.3",
"lint-staged": "^15.0.2",
"npm": "^10.2.1",
"typescript": "^5.2.2",
"vite-plugin-dts": "^3.6.0",
"vue-tsc": "^1.8.20"
"lint-staged": "^15.2.0",
"npm": "^10.4.0",
"typescript": "^5.3.3",
"vite-plugin-dts": "^3.7.2",
"vue-tsc": "^1.8.27"
},
"peerDependencies": {
"vite": ">=4.0.0",
Expand Down

1 comment on commit 1d4f615

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for vitepress-plugin-sandpack ready!

✅ Preview
https://vitepress-plugin-sandpack-rdh83hmqy-jerrywu001.vercel.app

Built with commit 1d4f615.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.