File conventions

Last updated Aug 20, 2026 Our docs have a few conventions around files.

Naming

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

Acceptable file namestxt

/src/content/docs/fundamentals/concepts/what-is-cloudflare.mdx
/src/assets/images/api-shield/api-shield-call-sequence.png

Unacceptable file namestxt

/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.

Folders

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/.

Content files

Add regular content files to the /src/content/docs/{product_folder}/ directory.

/src/content/docs/fundamentals/concepts/what-is-cloudflare.mdx

Image files

Add image files to the /src/assets/images/{product_folder}/ directory.

/src/assets/images/api-shield/api-shield-call-sequence.png

Was this helpful?

YesNo

On this page

File conventions - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/style-guide/documentation-content-strategy/file-conventions/#page","headline":"File conventions","description":"Follow file naming and organization conventions.","url":"https://developers.cloudflare.com/style-guide/documentation-content-strategy/file-conventions/","inLanguage":"en","image":"https://developers.cloudflare.com/style-guide/documentation-content-strategy/file-conventions/og.png?v=b4b4fcb459e9bda4","dateModified":"2026-08-20","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Build every product's documentation from a shared core of sections, with the folder and ordering rules that keep the docs consistent. title: Information architecture image: https://developers.cloudflare.com/style-guide/documentation-content-strategy/information-architecture/og.png?v=b1357902c5ebd393


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/style-guide/llms.txt
Use this file to discover all available pages before exploring further.