5.1 To Documentation¶
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 install
in theweb
directory. - Use Node.js 18+ for best compatibility.
-
Making Changes
- Documentation files are located in the
docs
directory. - Follow the existing folder structure and naming conventions.
- Use
.mdx
extension for all documentation files.
- Documentation files are located in the
-
Previewing Changes
- Start the local development server with
npm run dev
from theweb
directory. - View your changes at http://localhost:3000.
- The site will hot-reload as you edit files.
- Start the local development server with
-
Building Documentation
- Test a production build with
npm run build
followed bynpm run start
. - Check for any build errors or warnings before submitting your PR.
- Test a production build with
Want to Contribute To the Project? - Updated Guidance Coming Soon.