Welcome to the Payload CMS Customization Guide! This project provides an interactive guide to help developers understand and customize Payload CMS effectively. Whether you're a seasoned Payload user or just getting started, this guide makes it easier to identify and extend the platform's customizable components.
- Interactive guide to visualize customization points in Payload CMS.
- Detailed documentation for each customizable component and zone.
- Easy-to-navigate UI with Markdown/MDX-based documentation.
- Contributions welcome for adding new zones or improving documentation.
app/components/docs/
: Contains MDX files for documentation of components and zones.app/components/views/
: Houses view components (Root, Collection, Global, Document).Documentation.tsx
: Handles rendering of MDX-based documentation dynamically.
-
Clone the repository:
git clone https://github.com/elghaied/payload-visual-guide cd payload-visual-guide
-
Install dependencies:
pnpm install
-
Run the development server:
pnpm run dev
-
Open your browser and navigate to
http://localhost:3000
to view the guide.
We welcome contributions to improve this project! Follow these steps to get started:
- Navigate to the
app/components/docs/
directory. - Locate the relevant MDX file or create a new one for your component.
- Write or update the documentation using Markdown and MDX syntax.
- If adding a new component, update
Documentation.tsx
to include your MDX file.
- Identify the relevant view for your new zone (Root, Collection, Global, or Document).
- Update the appropriate view component in
app/components/views/
. - Add a button for your zone in the component's JSX.
- Create a corresponding MDX file in
app/components/docs/
. - Update
Documentation.tsx
to include the new MDX file.
-
Fork the repository and create a new branch for your changes:
git checkout -b my-feature-branch
-
Commit your changes with a descriptive message:
git commit -m "Add customization docs for [feature/component]"
-
Push to your forked repository:
git push origin my-feature-branch
-
Open a pull request and provide a clear description of your changes.
A big thanks to everyone who has contributed to this project! Your support helps make this guide better for the Payload CMS community.
This project is licensed under the MIT License.
Happy customizing! 🚀