Skip to content

Conversation

@taroface
Copy link
Contributor

@taroface taroface commented Sep 8, 2025

  • Reorganized and consolidated Style Guide headings
  • Added new section on "Prescriptive writing"
  • Attempted to make Style Guide conform to its own guidelines (this work will be ongoing):
    • Writing is more concise, prescriptive, and 'active'
    • Guidance is formatted in a generally consistent manner
    • Correct punctuation is used, etc.
  • Added new guidance on "in" vs. "on" word usage per this earlier exchange
  • Corrected the guidance on "Cockroach Labs's" (this is not allowed)
  • Added some guidance on how & when to make diagrams
  • Added new section on avoiding "Latinisms"
  • Added guidance on how code blocks should be presented
  • Added some new guidance opportunistically (on straight quotes, colons over dashes, ...)

@netlify
Copy link

netlify bot commented Sep 8, 2025

Netlify Preview

Name Link
🔨 Latest commit e9652ba
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/68cdb1b4b711fb000743065e
😎 Deploy Preview https://deploy-preview-20307--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

github-actions bot commented Sep 8, 2025

Files changed:

  • MarkdownGuide.md
  • StyleGuide.md

@netlify
Copy link

netlify bot commented Sep 8, 2025

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit e9652ba
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/68cdb1b4f47f4300089aac70

@netlify
Copy link

netlify bot commented Sep 8, 2025

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit e9652ba
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/68cdb1b4f3f3c80008235cef

@taroface taroface requested a review from Flat5flat9 September 8, 2025 21:49
Copy link
Contributor

@jhlodin jhlodin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broadly looks good to me, left a couple comments but no major disagreements from me. Will add comments later if other suggestions come to mind.

- Databases on the cluster
- Jobs running on the cluster

## Inclusivity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest a quick subsection under here to avoid idioms and terminology that could be confusing when auto-translated (which should be assumed given that we don't have a localization team).

Suggest something like:

### Avoid idioms and other difficult-to-translate terminology

The majority of our non English-speaking readers use a browser translation tool to read our documentation in a preferred language. Avoid using idioms or non industry-standard terms that these tools may translate literally.

- **Avoid:** Configure roles and permissions to draw a line between allowed and disallowed actions.
  **Prefer:** Configure roles and permissions to allow and disallow actions.

Code samples often include placeholder values, to be replaced by values specific to a user's environment. To denote that a value in a code sample is a placeholder value that should be replaced, use curly brackets (`{}`).

Reference issues and pull requests by their corresponding number, prepended with `#`.
- **Example:** `SELECT * FROM TABLE {mytable};`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest also adding an example from the API docs where these are commonly used in URLs, like

- **Example:** `--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/nodes`

**Note:** Screenshots are difficult to keep current, and impact accessibility. Use a screenshot only if it is necessary for the user to accomplish a task or understand a feature. For example, in a page on troubleshooting cluster performance, a screenshot of a Contention metric graph in the DB Console might be used to depict a cluster with high contention. The same screenshot would not be necessary in a reference topic about the DB Console user interface.

Use a warning to express that a piece of information is critical to understand to prevent data loss, security vulnerabilities, or unexpected behavior.
To optimize accessibility and SEO, a screenshot should be accompanied by text and [alt-text](#write-accessible-documentation) describing its contents.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we include an example here showing the correct syntax to do this? Like:

<img src="{{ 'images/v24.2/topology-patterns/topology_multi-region_hardware.png' | relative_url }}" alt="Multi-region hardware setup" style="max-width:100%" />

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm this should be in the separate MarkdownGuide.md, which was largely necessary, but did indeed cause some awkward splits. I'll see what I can do to mitigate this.

Copy link
Contributor

@rmloveland rmloveland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!! thanks for going through this and doing these thoughtful updates!

PS All my comments below are things that can be revisited in other conversations, they're not really about this PR, apologies for the digressions

@taroface
Copy link
Contributor Author

Finally addressed review comments, replaced some previously deleted (from the old style guide and CONTRIBUTING.md) content on page sections, and cross-linked from Style to Markdown guides, if anyone would like to re-review!

@taroface taroface enabled auto-merge (squash) September 19, 2025 19:40
@taroface taroface merged commit a0124f5 into main Sep 19, 2025
6 checks passed
@taroface taroface deleted the style-guide-update branch September 19, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants