Docs Guidelines
Documentation guidelines
Section titled “Documentation guidelines”For contributing to the Prompty documentation:
-
Local Setup
- Our documentation uses MDX (Markdown + JSX) and is built with a static site generator.
- Install dependencies with
npm installin thewebdirectory. - Use Node.js 18+ for best compatibility.
-
Making Changes
- User-facing documentation files are located in
web/src/content/docs. - Follow the existing folder structure and naming conventions.
- Use
.mdxextension for all documentation files.
- User-facing documentation files are located in
-
Previewing Changes
- Start the local development server with
npm run devfrom thewebdirectory. - View your changes at http://localhost:4321.
- The site will hot-reload as you edit files.
- Start the local development server with
-
Building Documentation
- Test a production build with
npm run buildfollowed bynpm run start. - Check for any build errors or warnings before submitting your PR.
- Test a production build with
-
Provider and runtime changes
- Update provider guides when adding or changing OpenAI, Foundry, Anthropic, or custom provider behavior.
- Update Discover Available Models when model-listing support changes.
- Update Run Live Provider Tests when integration-test environment variables or skip behavior changes.
- Cross-link new APIs from generated reference pages when users need narrative examples.