Browse Source

docs: guidelines for writing docs

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6467/head
Raju Udava 1 year ago
parent
commit
20dc248222
  1. 2
      packages/noco-docs/docs/030.workspaces/020.create-workspace.md
  2. 2
      packages/noco-docs/docs/040.bases/020.create-base.md
  3. 1
      packages/noco-docs/docs/130.automation/020.webhook/020.create-webhook.md
  4. 66
      packages/noco-docs/docs/150.engineering/080.writing-docs.md
  5. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-collaboration.png
  6. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-context-menu.png
  7. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-create.png
  8. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-delete-confirmation.png
  9. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-delete.png
  10. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-member-edit.png
  11. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-member-list.png
  12. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-member-remove.png
  13. 0
      packages/noco-docs/static/img/v2-unannotated/workspace/workspace-rename.png
  14. BIN
      packages/noco-docs/static/img/v2/engineering/engineering-search-by-tags.png

2
packages/noco-docs/docs/030.workspaces/020.create-workspace.md

@ -1,6 +1,6 @@
---
title: 'Create workspace'
description: 'This article explains how to create a workspace'
description: 'Learn how to create a workspace in NocoDB'
tags: ['Workspaces', 'Create']
keywords: ['NocoDB workspace', 'create workspace', 'workspace context menu', 'workspace owner', 'workspace collaboration', 'workspace actions', 'default workspace']
---

2
packages/noco-docs/docs/040.bases/020.create-base.md

@ -1,6 +1,6 @@
---
title: 'Create base'
description: 'Create a new base in NocoDB.'
description: 'Learn how to create a base in NocoDB.'
tags: ['Bases', 'Create']
keywords: ['NocoDB base', 'create base', 'base context menu', 'base owner', 'base collaboration', 'base actions', 'base settings', 'base administration', 'base organization']
---

1
packages/noco-docs/docs/130.automation/020.webhook/020.create-webhook.md

@ -1,5 +1,6 @@
---
title: 'Create webhook'
description: 'Learn how to create a webhook in NocoDB.'
tags: ['Webhook', 'Create']
---

66
packages/noco-docs/docs/150.engineering/080.writing-docs.md

@ -0,0 +1,66 @@
---
title: "Writing docs"
description: "Overview to writing docs"
tags: ['Engineering']
---
This article discusses some of the protocol and conventions to be followed while writing docs.
## Folder Structure
- Docs follow object-oriented approach. Each folder represents an object and each file represents procedures associated with that object.
- Each folder contains an `_category_.json` file which contains the metadata for that object.
```
{
"label": "Engineering",
"collapsible": true,
"collapsed": true
}
```
## File Structure
- Add following metadata to the top of each file.
```
---
title: "Writing docs"
description: "Overview to writing docs"
tags: ['Engineering']
keywords: ['Engineering', Writing docs', 'Docs conventions']
---
```
- `title` is the title of the article that appears on the sidebar and on the top of the article.
- `description` is the description of the article that appears in search results.
- `tags` are the tags associated with the article. Tags are used to group articles together. For example, all articles with the tag `Workspaces` will be grouped together.
- `keywords` are the keywords associated with the article. Keywords are used to improve search results. For example, if the user searches for `Create workspace`, then the article with the keyword `Create workspace` will be displayed in the search results.
## Nomenclature
- Folder names & file name are
- in kebab-case.
- prefix with a number that represents the order in which the folder/file should be displayed in the sidebar.
- prefix number is always a 3-digit number.
- For example, `010.account-settings`.
- Only first letter of the folder/file name is capitalized. Second letter onwards, first letter is capitalized only if it is a proper noun.
## Tags
- First letter of each tag is capitalized.
- Tags usually are Objects or Actions. Add a tag only if we are sure that the tag will be used in multiple places. Example: 'Create' - we can have `Create project`, `Create user`, `Create API token` etc.
### Active Tags
Tags that are currently being used in the docs are listed below. See if you can reuse any of these tags before adding a new tag.
## Description
- Description should be crisp and to the point. Preferably one line.
- Refer to the description associated with the tag to get an idea of how the description should be.
- Descriptions appear in the search results (when searched by tags). So, it should be descriptive enough to give the user an idea of what the article is about.
![Search by tags](/img/v2/engineering/engineering-search-by-tags.png)
## Images
- Annotated images should be placed in `img/v2` folder.
- For every annotated image, there should be a corresponding unannotated image in the `img/v2-unannotated` folder.
- Images are kept in the same folder structure as the docs.
- Use `Skitch` for annotations.
## Before you commit
- Use `npm run build` to build the docs.
- Ensure that the build is successful & there are no errors/warnings related to missing links, images, etc.

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-collaboration.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-collaboration.png vendored

Before

Width:  |  Height:  |  Size: 406 KiB

After

Width:  |  Height:  |  Size: 406 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-context-menu.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-context-menu.png vendored

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 189 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-create.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-create.png vendored

Before

Width:  |  Height:  |  Size: 274 KiB

After

Width:  |  Height:  |  Size: 274 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-delete-confirmation.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-delete-confirmation.png vendored

Before

Width:  |  Height:  |  Size: 354 KiB

After

Width:  |  Height:  |  Size: 354 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-delete.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-delete.png vendored

Before

Width:  |  Height:  |  Size: 331 KiB

After

Width:  |  Height:  |  Size: 331 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-member-edit.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-member-edit.png vendored

Before

Width:  |  Height:  |  Size: 349 KiB

After

Width:  |  Height:  |  Size: 349 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-member-list.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-member-list.png vendored

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 255 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-member-remove.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-member-remove.png vendored

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 306 KiB

0
packages/noco-docs/static/img/v2-without-annotation/workspace/workspace-rename.png → packages/noco-docs/static/img/v2-unannotated/workspace/workspace-rename.png vendored

Before

Width:  |  Height:  |  Size: 343 KiB

After

Width:  |  Height:  |  Size: 343 KiB

BIN
packages/noco-docs/static/img/v2/engineering/engineering-search-by-tags.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

Loading…
Cancel
Save