Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
migrated changes to style guide. i kept the sme and editorial review section though - wanted to get your thoughts as it may be too much but also thought it may be helpful in the readme.
  • Loading branch information
mirnawong1 authored Nov 16, 2022
1 parent defa41b commit 45fe51b
Showing 1 changed file with 8 additions and 110 deletions.
118 changes: 8 additions & 110 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ You can use components documented in the [docusaurus library](https://v2.docusau

# Writing content

We author content using Markdown and sometimes HTML. When writing content, you should refer to the [style guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md) and [content types](/contributing/content-types.md) to help you understand our writing standards and how we break down information in the product documentation.
We author content using Markdown and sometimes HTML. When writing content, you should refer to the [style guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md) and [content types](/contributing/content-types.md) to help you understand our writing standards and how we break down information in the product documentation. The dbt Labs Docs team will actively edit or write content, not just give editorial reviews and we highly encourage your contributions in the true open-source spirit.

## SME and editorial reviews

All PRs that are submitted will be reviewed by the dbt Labs Docs team for editorial review.

Content that is submitted by our users, and the open-source community are also reviewed by our dbt Labs subject matter experts (SMEs) to help ensure technical accuracy.


## Versioning and single-sourcing content

Expand Down Expand Up @@ -70,112 +77,3 @@ Method 2: Running the Cypress E2E tests headlessly
2. `cd` into the `website` subdirectory: `cd website`
3. Install the required node packages: `npm install`
4. Run `npx cypress run`

## Folder Structure and TOC

The folder structure is broken into several high-level categories under the main `website` folder: blog, cypress, docs, functions, plugins, snippets, src, static.

Images are under the `static` > `img` folder.

The TOC is managed in the `sidebar.js` file. You only need to edit the `sidebar.js` file when you are adding a new page or deleting an existing page. The `sidebar.js` file is the one that causes most of the merge conflicts because many technical writers are working on content daily. You will need to accept the changes from other contributors if you are committing a PR.

Don't worry if you're not sure where in the TOC a new topic belongs. Do your best and when you submit your PR, the dbt Labs Documentation team will edit it and help to find the right placement.

The right-hand TOC is created automatically when you add headings to a page.

## Filenaming

If you are adding a new file, it must be named following our naming conventions. MORE TO ADD

## Images

- Screenshots are use sparingly to minimize the maintenance of out-of-date content. However, we do include some screenshots to provide context.
- Use a focused area of the UI, unless the entire screen is truly needed for context.
- We only use PNG format, which renders a better quality and lossless compression.
- For privacy and legal purposes, do your best to not reveal personal information, IP addresses, domain information, login credentials and so on in screenshots, code blocks, or text.
- Add *title=""* for all images to write a consice title of the image. For accessibility, it's important to use succinct text that is clear and complete. For more information about images formatting, see the following section.
- For images that are difficult to see, you can click on the image to enlarge it on the same page.

## Using Markdown with our Docusaurus CSS

docs.getdbt.com uses its own CSS, and Docusaurus supports its own specific Markdown syntax. The following table provides an overview of the supported syntax elements.

| Element | Syntax |
|---------------------------------------------|-------------------------------------------------------|
| Headings | `# H1`, `## H2`, `### H3` |
| Bold | `**bold text**` |
| Italic | `_italicized text_` |
| Ordered List | `1.` First item (use `1.` for each item) |
| Unordered List | `-` or `*` (for each item) |
| Code or command in a sentence | ``code`` |
| Link - external site | `[Title](https://www.example.com)` |
| Link - topic in same folder | `[Title](/folder/file-name) without file extension` |
| Link - topic in different folder | `[Title](/folder/file-name) without file extension` |
| Link - section in topic in same folder | `[Title](/folder/file-name#section-name)` |
| Link - section in topic in different folder | `[Title](/folder/file-name#section-name)` |
| Image | `<Lightbox src="/img/docs/<image-name>.png" title="Concise description of image"/>` |


### Callouts
Callouts highlight important or high-value information that readers need to know and we [use them sparingly](https://github.com/dbt-labs/product-docs-team/blob/main/content-style-guide.md#callouts). Below are the typical callout formats we use:


Note callouts are formatted as follows:

```
:::note
text
:::
```

Info callouts are formatted as follows:

```
:::info
text
:::
```

Tip callouts, typically used for tips, are formatted as follows:

```
:::tip
text
:::
```

Caution callouts, typically used for warnings/considerations, are formatted as follows:

```
:::caution
text
:::
```

### Tables

We use traditional markdown for tables, which can be a useful way of presenting complex or comparative information.

For more guidelines on markdown tables, review the [docs.getdbt.com style guide](https://github.com/dbt-labs/product-docs-team/tree/main).

## Style Guidelines

The docs.getdbt.com product documentation has in-house style guidelines that the Docs team uses when reviewing your PR. Feel free to just add the content you need or make change, knowing that our team will be there to help with editorial reviews and information architecture, such as TOC placement, and so on. The Docs team will actively edit or write content, not just give editorial reviews and we highly encourage your contributions in the true open-source spirit.

## SME and Editorial Reviews

All PRs that are submitted are reviewed by the dbt Labs Docs team for editorial review.

Content that is submitted by our users, and the open-source community are also reviewed by our dbt Labs subject matter experts (SMEs) to help ensure technical accuracy.

0 comments on commit 45fe51b

Please sign in to comment.