A template for creating documentation using Astro's Content Collections API. It creates a Table of Contents based on the markdown files and folders in the content folder, and it creates a "On this Page" link-list dynamically based on the headings of each page.
The Astro Content Collections Docs Template is a template that utilizes the Content Collections API to automatically generate a documentation website based on markdown files. It creates a table of contents based on the folder structure of the content and converts headings in the markdown files into linkable sections. The template provides a recognizable layout with a table of contents on the left and a page-specific table of contents on the right. It also includes basic search functionality and automatic OG cards for each documentation page. The template is built with TailwindCSS and allows for customization of colors, fonts, and logos.
To use this template, follow the steps below:
npm install / yarn install / pnpm install to install the dependencies.npm run dev / yarn dev / pnpm dev to start the development server.content folder. You can create subfolders to organize your content.npm run build / yarn build / pnpm build to build the site. The output will be in the dist folder.The Astro Content Collections Docs Template is a user-friendly template that simplifies the process of creating a documentation website. By leveraging the Content Collections API, it automatically generates a table of contents based on the folder structure of the content. The template also converts headings in markdown files into linkable sections, providing easy navigation for users. With additional features such as basic search functionality and automatic OG cards, the template offers a comprehensive solution for documentation needs. The ability to customize colors, fonts, and logos further enhances its flexibility. With this template, users can focus on writing content, while the template takes care of the rest.