Skip to content

Commit 55ecb83

Browse files
authored
Merge pull request #503 from kinde-oss/docs/frontmatter-contributions
Updated contribution guide and fixed an infinite loop
2 parents d34241f + 833c88c commit 55ecb83

File tree

3 files changed

+45
-35
lines changed

3 files changed

+45
-35
lines changed

astro.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ export default defineConfig({
6969
"/billing/about-billing/about-billing/",
7070
"/build/":
7171
"/build/applications/about-applications/",
72-
"/contribute/":
73-
"/contribute/",
7472
"/design/":
7573
"/design/brand/global-brand-defaults/",
7674
"/developer-tools/":

customHttp.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ customHeaders:
4444
'sha256-8JLcQFZQruxl3jMUwogr3y5/GMmZPAc+j2mNi7gywmw='
4545
'sha256-w78n7W12c94ck4KhBCBA4NrjqkbDvSutqee+u+no0Tg='
4646
'sha256-/4BQzbQ0kgR1l13wtSM3rZ7nSvyV3PX/ShEfhZA1WoQ='
47-
'sha256-zB5rUhTjHzt+r/RjhhI8CyMb5Y63k+J7ICVfQ7iHJqA=' 'self'
47+
'sha256-zB5rUhTjHzt+r/RjhhI8CyMb5Y63k+J7ICVfQ7iHJqA='
48+
'sha256-fFmtUWM/kGeUru+1rcCArLmnXKoEjis5I/dYQkZA+HM=' 'self'
4849
widgets.kinde.com kinde.com
4950
https://cdn.jsdelivr.net/npm/@scalar/[email protected]/dist/browser/standalone.min.js
5051
- key: Strict-Transport-Security

src/content/docs/contribute/index.mdx

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -170,56 +170,67 @@ This helps us recognize and prioritize requests.
170170
This section describes some of our styles, elements, and conventions for docs content.
171171

172172
### Frontmatter
173+
The header/metadata part of the content helps the article appearing correctly in docs. It is also important for external AI tools and search optimization.
173174

174-
The header/metadata part of the content is critical to the article appearing correctly in docs.
175-
176-
#### <span class="text-lg font-bold">`title (required)`</span>
177-
178-
**type:** `string`
179-
180-
You must provide a title for every page. This will be displayed at the top of the page, in browser tabs, and in page metadata.
175+
Copy the whole example below into the top of any new topic. And complete the required sections. Complete optional sections if you want.
181176

182177
```md title="src/content/docs/developer-tools/about/our-sdks.mdx"
183178
---
184-
title: Kinde SDKs
179+
page_id:
180+
title:
181+
description: "description"
182+
sidebar:
183+
order:
184+
relatedArticles:
185+
-
186+
-
187+
app_context:
188+
- m:
189+
s:
190+
topics:
191+
-
192+
-
193+
-
194+
sdk: []
195+
languages: []
196+
audience:
197+
complexity:
198+
keywords:
199+
-
200+
-
201+
-
202+
-
203+
-
204+
updated: yyyy-mm-dd
205+
featured:
206+
deprecated:
207+
ai-summary:
185208
---
186209
```
187210

188-
#### <span class="text-lg font-bold">`page_id (required)`</span>
211+
#### Required Fields
189212

190-
**type:** `uuid`
213+
**`title`** (string) - You must provide a title for every page. This will be displayed at the top of the page, in browser tabs, and in page metadata.
191214

192-
This is the internal unique `id` for the article. This will be used when referencing other articles within the `relatedArticles` frontmatter. You can use our [online UUID generator tool](https://kinde.com/tools/online-uuid-generator/) to use as the `page_id`.
215+
**`page_id`** (uuid) - This is the internal unique `id` for the article. This will be used when referencing other articles within the `relatedArticles` frontmatter. You can use our [online UUID generator tool](https://kinde.com/tools/online-uuid-generator/) to use as the `page_id`.
193216

194-
```md title="src/content/docs/developer-tools/about/our-sdks.mdx"
195-
---
196-
title: Kinde SDKs
197-
page_id: 684fc526-a338-4a67-9af6-742a39b66aff
198-
---
199-
```
217+
**`description`** (string) - A brief description of the article content, used for SEO and metadata.
200218

201-
#### <span class="text-lg font-bold">`order` (optional)</span>
219+
**`keywords`** (array) - Array of keywords for search optimization.
202220

203-
<Aside>
221+
#### Optional Fields
204222

205-
Providing the `order` frontmatter is completely optional and will be treated as a hint for us to where to place the file. We may update the articles `order` upon further review.
223+
**`order`** (number) - Control the order of this article when sorting an autogenerated group of links under a specific topic or subtopic. Lower numbers are displayed higher up in the link group. Providing the `order` frontmatter is completely optional and will be treated as a hint for us to where to place the file. We may update the article's `order` upon further review.
206224

207-
</Aside>
225+
**`topics`** (array) - Array of topic tags that help categorize the content.
208226

209-
**type:** `number`
227+
**`sdk`** (array) - Array of SDKs that are relevant to this article. Use `[]` for no SDKs or `null` for not applicable.
210228

211-
Control the order of this article when sorting an autogenerated group of links under a specific topic or subtopic. Lower numbers are displayed higher up in the link group.
229+
**`languages`** (array) - Array of programming languages covered in the article.
212230

213-
```md title="src/content/docs/developer-tools/about/our-sdks.mdx"
214-
---
215-
title: Kinde SDKs
216-
page_id: 684fc526-a338-4a67-9af6-742a39b66aff
217-
sidebar:
218-
order: 1
219-
---
220-
```
231+
**`ai-summary`** (string) - A summary of the article content for AI processing and search. Can be same as description.
221232

222-
<Divider />
233+
**`relatedArticles`** (array) - Array of page IDs for related articles that should be displayed at the bottom of the page.
223234

224235
### Code samples
225236

0 commit comments

Comments
 (0)