Skip to content

Commit

Permalink
docs: πŸ› import version from fff package
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Nov 20, 2023
1 parent c6bb661 commit c5cf72f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { withPwa } from '@vite-pwa/vitepress'
import footnote from 'markdown-it-footnote'
import { defineConfig } from 'vitepress'

import { version } from '../package.json'
import { version } from '../../packages/fff-flavored-frontmatter/package.json'

const nav = () => [
{
Expand Down
4 changes: 2 additions & 2 deletions docs/intro/implementing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ If your project is already FFF compatible,
you can use the badge from [shields.io](https://shields.io) to illustrate this.

<script setup>
import { version as packageVersion } from '../package.json'
const version = packageVersion.split('.').slice(0,2).join('.')
import { version as pkgVersion } from '../../packages/fff-flavored-frontmatter/package.json'
const version = pkgVersion.split('.').slice(0, 2).join('.')
</script>

<ul>
Expand Down

0 comments on commit c5cf72f

Please sign in to comment.