Transformer for using asciidoc in nuxt
npm install nuxt-asciidoc
include will not include the content of another file, it will just make a link out of it. You can see it in the screenshot.
nuxt-asciidoc dependency to your project
bash
npx nuxi@latest module add nuxt-asciidoc
`
2. Add nuxt-asciidoc to the modules section, before the @nuxt/content of nuxt.config.ts
`js
export default defineNuxtConfig({
modules: [
'nuxt-asciidoc',
...
'@nuxt/content'
]
})
`
That's it! You can now use My Module in your Nuxt app ✨
Example
view: pages/imprint.vue + corresponding content file: content/imprint.adoc
`vue
`
Development (npm, yarn, pnpm)
`bash
Install dependencies
npm install
Generate type stubs
npm run dev:prepare
Develop with the playground
npm run dev
Build the playground
npm run dev:build
Run ESLint
npm run lint
Run Vitest
npm run test
npm run test:watch
Release new version
npm run release
``