Skip to content

Commit c5d6830

Browse files
committed
Replace Category with Kind
Category was meant to describe different document types, but it was confusing and can be mistaken as category within our docs (i.e., topics). Kind should be a better name for the intention and we're going to add a new type Topic to describe the main subject of the document.
1 parent f40645c commit c5d6830

File tree

20 files changed

+182
-183
lines changed

20 files changed

+182
-183
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,26 @@
66

77
Documents are classified with the following:
88

9-
- `Category` (`category`): Document belongs to a category
10-
- `Tag` (`tags`): Document can have multiple tags
9+
- `Kind` (`kind`): By kind of documentation (`recipe`, `reference`, `tutorial`, etc.) See [kinds.yml].
10+
- `Tag` (`tags`): By tags associated with the documentation. See [tags.yml].
1111
- `Language` (`languages`): A special kind of `Tag` that is used to collect documents to show on the language page
1212

1313
## Routes
1414

15+
- `/tutorials/`: All docs with kind `tutorial`
16+
- `/recipes/`: All docs with kind `recipe`
17+
- `/references/`: All docs with kind `reference`
18+
- `/tags/`: List of all tags
19+
- `/tags/:id`: List of docs with tag `id`
1520
- `/languages/`: List of supported languages
1621
- `/languages/:id`: Show language information
17-
- Sidebar lists all pages referencing the language, grouped by `category`
18-
- `/tags/`: List of tags
19-
- `/tags/:id`: List of pages with tag `id`
20-
- `/categories/`: List of documentation categories
21-
- `/categories/:id`: List of pages in the category
22+
- Sidebar lists all pages referencing the language, grouped by `kind`
2223

2324
Markdown files matching `content/**/*.md` generates matching routes. For example, `content/foo/bar.md` generates `/foo/bar/`.
2425

2526
---
2627

2728
Built with [Gridsome](https://gridsome.org/) using [docc](https://github.com/mrcrmn/docc) starter.
29+
30+
[kinds.yml]: ./data/kinds.yml
31+
[tags.yml]: ./data/tags.yml

content/docs/deploying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: ""
3-
category: docs
3+
kind: reference
44
sidebar: "docs"
55
prev: "/docs/writing-content/"
66
next: "/docs/settings/"

content/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: ""
3-
category: docs
3+
kind: reference
44
sidebar: "docs"
55
next: "/docs/installation/"
66
tags:

content/docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: ""
3-
category: docs
3+
kind: reference
44
sidebar: "docs"
55
prev: "/docs/"
66
next: "/docs/writing-content/"

content/docs/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: ""
3-
category: docs
3+
kind: reference
44
sidebar: "docs"
55
prev: "/docs/deploying/"
66
next: "/docs/sidebar/"

content/docs/sidebar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: ""
3-
category: docs
3+
kind: reference
44
sidebar: "docs"
55
prev: "/docs/settings/"
66
tags:

content/docs/writing-content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: ""
3-
category: docs
3+
kind: reference
44
sidebar: "docs"
55
prev: "/docs/installation/"
66
next: "/docs/settings/"

content/languages/javascript/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
category: guides
2+
kind: recipe
33
tags:
44
- testing
55
languages:

content/languages/python/codewars-test-famework/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
category: references
2+
kind: reference
33
languages: [python]
44
tags:
55
- testing
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
category: references
2+
kind: reference
33
languages: [javascript]
44
sidebar: "language:javascript"
55
prev: /languages/javascript/
@@ -9,4 +9,4 @@ prev: /languages/javascript/
99

1010
> TODO Remove this file
1111
12-
This file exists to show how the sidebar on language pages are automatically populated and grouped by `category`.
12+
This file exists to show how the sidebar on language pages are automatically populated and grouped by `kind`.

0 commit comments

Comments
 (0)