Project structure
A Stainless Docs project is an Astro project with the stainlessDocs integration configured, and inherits Astroβs file structure.
When you create a new Stainless Docs site, your repo will contain the following files and folders, which form the structure of your site and define its configuration:
π <root>ββ π public/ββ π src/β ββ π assets/β ββ π content/β ββ π docs/ββ π astro.config.tsββ π package.jsonBriefly:
public/- Static assets like your siteβs favicon. These are not processed by Astro or Stainless Docs and are served at the root of your site.src/assets/- Images, fonts, and other assets used in your site. Place images, videos, etc. used in your prose content here.src/content/docs/- Your prose pages in Markdown, Markdoc, or MDX format.astro.config.ts- The primary configuration file for your project. This file contains your siteβs configuration for Astro and Stainless Docs.package.json- Your projectβs manifest file. This file contains your projectβs dependencies and scripts.
In addition, there are additional support files and folders, like the README.md file, the node_modules folder, and others.
For more information about your siteβs structure, have a look at Astroβs project structure documentation.