mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-11 20:06:58 +00:00
2.8 KiB
2.8 KiB
trigger: glob globs: *.mdx
General styling
- Follow all guidance in the Cloudflare Style Guide.
Grammar rules
- Do not use contractions, exclamation marks, or non-standard quotes like
‘’“” - Fix common spelling errors, specifically misspellings of "wrangler"
- Remove whitespace characters from the end of the line.
- Remove duplicate words.
Links
- Use links that exist in the current file context. In most cases, these links will be very close to those at https://developers.cloudflare.com/sitemap-0.xml
- When referring to another page in our docs, use the full relative link (
/1.1.1.1/check/) instead of the full URL (https://developers.cloudflare.com/1.1.1.1/check/), a local development link (http://localhost:1111/1.1.1.1/check/), or a dot notation link../check/). - For links without anchors, always use a trailing slash
- Use meaningful link words, such as the title of the linked page. Avoid link words like "here", "this page", "our documentation", or "read more".
- Where appropriate, add cross links to relevant other pages in our documentation. These links will exist in the current file context and most are also available at https://developers.cloudflare.com/sitemap-0.xml.
Components
- If a component is used in a page, it needs to be imported below the initial frontmatter (
import { DashButton } from "~/components";) - If
https://dash.cloudflare.comis used in a series of steps, replace with theDashButtoncomponent. - Replace
shcode blocks that have requests tohttps://api.cloudflare.comwith ourAPIRequestcomponent. - Replace
txtblocks attempted to show a file tree with ourFileTreecomponent. - Replace
shblocks usingnpm commandswith ourPackageManagerscomponent. - Replace in-text mentions of Cloudflare's number of data centers, network capacity, or network peers with our
PublicStatscomponent. - Replace
tomlorjsoncode blocks with Wrangler configuration information with ourWranglerConfigcomponent. - Replace
tsortypescriptcode blocks with ourTypeScriptExamplecomponent. Ignore this rule if the original code block is within a tutorial or other step-by-step guide that is specific to TypeScript.