ドキュメントには、ファイルに関するいくつかの規則があります。
新しいファイルを作るときは、次の命名規則に従ってください。
ファイル名は次を満たします。
- ファイルの目的が分かる名前にする
- 小文字にする
- 単語の間はハイフンにする
/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これらの規則は、読みやすさ、SEO、GitHub Actions が壊れないために重要です。
各フォルダーには index.mdx という名前のファイルが必要です。
/src/content/docs/fundamentals/concepts/index.mdx/src/content/docs/fundamentals/concepts/index.mdx の内容は、https://developers.cloudflare.com/fundamentals/concepts/ で描画されます。
通常のコンテンツファイルは /src/content/docs/{product_folder}/ ディレクトリに追加します。
/src/content/docs/fundamentals/concepts/what-is-cloudflare.mdx画像ファイルは /src/assets/images/{product_folder}/ ディレクトリに追加します。
/src/assets/images/api-shield/api-shield-call-sequence.png