File conventions
Our docs have a few conventions around files.
When creating new files, follow specific conventions for your naming.
Filenames should:
- Semantically communicate the purpose of the file
- Be lowercased
- Use dashes between words
/src/content/docs/fundamentals/concepts/what-is-cloudflare.mdx/src/assets/images/api-shield/api-shield-call-sequence.png
/src/content/docs/fundamentals/concepts/What is Cloudflare.mdx/src/content/docs/fundamentals/concepts/What-is-Cloudflare.mdx/src/assets/images/api-shield/API_Image_1.png
These conventions are important for user readability, SEO conventions, and making sure our GitHub actions do not break.
Each folder should have a file named index.mdx
.
/src/content/docs/fundamentals/concepts/index.mdx
The content at /src/content/docs/fundamentals/concepts/index.mdx
will be rendered at https://developers.cloudflare.com/fundamentals/concepts/
.
Add regular content files to the /src/content/docs/{product_folder}/
directory.
/src/content/docs/fundamentals/concepts/what-is-cloudflare.mdx
Add image files to the /src/assets/images/{product_folder}/
directory.
/src/assets/images/api-shield/api-shield-call-sequence.png