Skip to content

Commit 2c711bd

Browse files
kodster28elithrar
authored andcommitted
[Docs site] Tags allowlist (#20726)
* [Docs site] Tags allowlist * remove old english * tweaks * Tweaks * update object casing * shell * Add comment to file * Mobile operating systems * Update codeowners * Add a few more * Move rpc
1 parent fb5dbe3 commit 2c711bd

File tree

2 files changed

+125
-0
lines changed

2 files changed

+125
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/.github/actions/assign-pr/index.js @cloudflare/pcx-technical-writing
1111
/.github/styles/cloudflare/spelling-exceptions.txt @cloudflare/pcx-technical-writing
1212
/src/components/ @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @marciocloudflare @haleycode @maxvp @GregBrimble @KianNH @WalshyDev
13+
/src/schemas/tags.ts @kodster28 @KianNH @joslyn-cf
1314
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1415
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1516
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing

src/schemas/tags.ts

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/* This is the allowlist for the tags we allow
2+
in our page frontmatter. Refer to https://developers.cloudflare.com/style-guide/frontmatter/custom-properties/#tags
3+
and https://developers.cloudflare.com/style-guide/frontmatter/tags/ for more details.
4+
*/
5+
6+
const data_structures: Array<object> = [
7+
{ label: "JSON" },
8+
{ label: "TOML" },
9+
{ label: "XML" },
10+
{ label: "YAML" },
11+
];
12+
13+
const frameworks: Array<object> = [
14+
{ label: "Angular" },
15+
{ label: "Astro" },
16+
{ label: "Hono" },
17+
{ label: "Next.js", variants: ["nextjs"] },
18+
{ label: "Node.js", variants: ["node", "nodejs"] },
19+
{ label: "Nuxt" },
20+
{ label: "Ruby", variants: ["rb", "ruby on rails"] },
21+
{ label: "Svelte" },
22+
{ label: "SvelteKit" },
23+
{ label: "Vue.js", variants: ["vue", "vuejs"] },
24+
];
25+
26+
const integrations: Array<object> = [
27+
{ label: "Azure", variants: ["Microsoft Azure", "MS Azure"] },
28+
{ label: "AWS", variants: ["Amazon Web Services"] },
29+
{ label: "GCP", variants: ["Google Cloud", "Google Cloud Platform"] },
30+
{ label: "G Suite Group", variants: ["gsuite", "g suite"] },
31+
{ label: "GitHub" },
32+
{
33+
label: "Microsoft Entra ID",
34+
variants: ["AzureAD", "Azure Active Directory", "MS Entra ID", "Entra ID"],
35+
},
36+
{ label: "Postgres", variants: ["PostgresSQL"] },
37+
{ label: "S3" },
38+
{ label: "Sentry" },
39+
{ label: "Stripe" },
40+
{ label: "Sumo Logic", variants: ["sumo"] },
41+
{ label: "Okta" },
42+
{ label: "WordPress" },
43+
];
44+
45+
const languages: Array<object> = [
46+
{ label: "Go" },
47+
{ label: "GraphQL" },
48+
{ label: "JavaScript", variants: ["js"] },
49+
{ label: "MySQL" },
50+
{ label: "NoSQL" },
51+
{ label: "PowerShell", variants: ["js"] },
52+
{ label: "Python", variants: ["py"] },
53+
{ label: "Rust", variants: ["rs"] },
54+
{ label: "Shell", variants: ["sh"] },
55+
{ label: "SQL" },
56+
{ label: "TypeScript", variants: ["ts"] },
57+
{ label: "WebAssembly", variants: ["Web Assembly", "wasm"] },
58+
];
59+
60+
const protocols: Array<object> = [
61+
{ label: "FTP", variants: ["file transfer protocol", "ftps"] },
62+
{ label: "IPsec" },
63+
{ label: "IPv4" },
64+
{ label: "IPv6" },
65+
{ label: "JSON web token (JWT)", variants: ["jwt"] },
66+
{ label: "MASQUE" },
67+
{ label: "mTLS" },
68+
{ label: "NetFlow" },
69+
{ label: "MQTT" },
70+
{ label: "QUIC" },
71+
{ label: "RDP" },
72+
{ label: "SAML" },
73+
{ label: "SCIM" },
74+
{ label: "SMTP" },
75+
{ label: "SFTP" },
76+
{ label: "SSH" },
77+
{ label: "TCP" },
78+
{ label: "UDP" },
79+
{ label: "WebSockets", variants: ["websocket"] },
80+
{ label: "Wireguard" },
81+
];
82+
83+
const operating_systems: Array<object> = [
84+
{ label: "Android" },
85+
{ label: "iOS" },
86+
{ label: "Linux" },
87+
{ label: "MacOS", variants: ["OS X"] },
88+
{ label: "Windows", variants: ["ms windows"] },
89+
];
90+
91+
const use_cases: Array<object> = [
92+
{ label: "Authentication", variants: ["auth"] },
93+
{ label: "A/B testing", variants: ["ab test"] },
94+
{ label: "Caching", variants: ["cache"] },
95+
{ label: "CMS" },
96+
{ label: "Cookies" },
97+
{ label: "CORS" },
98+
{ label: "Debugging", variants: ["debug", "troubleshooting"] },
99+
{ label: "Forms" },
100+
{ label: "Geolocation" },
101+
{ label: "HTMLRewriter" },
102+
{ label: "Headers", variants: ["header"] },
103+
{ label: "Localization" },
104+
{ label: "Logging" },
105+
{ label: "Middleware" },
106+
{ label: "Playback" },
107+
{ label: "Privacy" },
108+
{ label: "Redirects", variants: ["redirect"] },
109+
{ label: "Request modification", variants: ["request"] },
110+
{ label: "Response modification", variants: ["response"] },
111+
{ label: "RPC" },
112+
{ label: "Security" },
113+
{ label: "URL rewrite", variants: ["rewrite"] },
114+
];
115+
116+
export const tags = {
117+
data_structures,
118+
frameworks,
119+
integrations,
120+
languages,
121+
protocols,
122+
operating_systems,
123+
use_cases,
124+
};

0 commit comments

Comments
 (0)