Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Jul 5, 2024
1 parent c6c1a7c commit fd946c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineConfig({
{ text: 'API Reference', link: '/api/' },
{ text: 'Utils Reference', link: '/utils/' },
{
text: `v${pkg.version}`,
text: `<span class="VPBadge font-bold bg-[var(--vp-button-brand-bg)] text-[var(--vp-button-brand-text)]">v${pkg.version}</span>`,
items: [
{
text: 'Release Notes',
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import DefaultTheme from 'vitepress/theme';
import PreviewIframe from './components/PreviewIframe.vue';
import './custom.scss';

/** @type {import('vitepress').Theme} */
export default {
...DefaultTheme,
extends: DefaultTheme,
enhanceApp({ app }) {
app.component('PreviewIframe', PreviewIframe);
},
Expand Down

0 comments on commit fd946c4

Please sign in to comment.