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
- Only use
_index.md
for a single file under folders
These conventions are important for user readibility, SEO conventions, and making sure our GitHub actions do not break.
Each folder should have a file named _index.md
.
This convention ensures that Hugo ↗ - our static site generator - treats the content as a section ↗. The content at /fundamentals/concepts/_index.md
will also be rendered at https://developers.cloudflare.com/fundamentals/concepts/
.
Add regular content files to the /content/{product_folder}/
directory.
Add image files to the /assets/images/{product_folder}/
directory.