wima-docs-website-template
v0.1.0
Published
Astro integration package for the wima docs website template.
Readme
wima-docs-website-template
Astro integration package for the docs website template.
The package source lives in src/.
Usage
import { defineConfig } from "astro/config";
import { website } from "wima-docs-website-template";
export default defineConfig({
integrations: [
website({
guideRoute: "/guide",
examplesRoute: "/examples",
guideContentDir: "content/guide",
examplesContentDir: "examples",
}),
],
});Host Content
Create a src/content.config.js file in the host project:
export { collections } from "wima-docs-website-template/loaders";That keeps the host project on Astro's normal source layout. The integration injects the website routes, so there is no need to point srcDir at the package.
Expected Project Layout
README.mdat the project rootcontent/guidefor guide markdown filesexamplesfor runnable example modulesassetsfor public images and example assets
All of those locations can be overridden through the integration options.
