Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update style guide to align with MS guide #945

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

bradleycamacho
Copy link
Member

Modernizes our style guide to align with MS as much as possible.

@bradleycamacho bradleycamacho requested a review from a team as a code owner October 2, 2024 14:15
Copy link
Contributor

coderabbitai bot commented Oct 2, 2024

Walkthrough

The pull request introduces several modifications to the "Optimism Docs Style Guide," primarily focusing on stylistic consistency and content enhancements. Key changes include the title and header adjustments to lowercase for uniformity, the addition of new content to clarify the guide's scope, and expanded sections detailing formatting, structuring, and SEO-related meta tags. The document's organization has been improved, providing clearer instructions for users creating technical documentation.

Changes

File Path Change Summary
pages/connect/contribute/style-guide.mdx - Title changed to lowercase.
- Section headers updated to lowercase.
- New content added to clarify the guide's scope and reference the Microsoft Writing Style Guide.
- Expanded "Meta Tags" section with detailed SEO instructions.
- Updated "Content Types" section with definitions and examples.
- Standardized formatting guidelines, including punctuation and capitalization rules.
- Added instructions for callouts, code samples, and handling of images and videos.

Possibly related PRs

Suggested reviewers

  • cpengilly
  • sbvegan

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Oct 2, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 4e1f4f2
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/66fd557d0434c60008521593
😎 Deploy Preview https://deploy-preview-945--docs-optimism.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 site configuration.

@bradleycamacho
Copy link
Member Author

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (9)
pages/connect/contribute/style-guide.mdx (9)

Line range hint 9-27: LGTM! Introduction and table of contents are well-structured.

The addition of the Microsoft Writing Style Guide reference and the table of contents improves the document's usability.

Consider using title case for all entries in the table of contents for consistency with the rest of the document. For example:

  • "Files, Folders, and Naming Conventions"
  • "Writing Style"
  • "Content Organization"

Line range hint 28-51: LGTM! Clear guidelines for file organization and naming conventions.

The section provides comprehensive information about folder structure, file naming, and path conventions.

In the filename example, consider adding a brief explanation of why hyphens are used:

Example: writing-a-guide.mdx or run-node.mdx (use hyphens to separate words for better readability)


Line range hint 52-101: LGTM! Comprehensive writing style guidelines.

The section provides clear instructions on voice, tone, language clarity, and capitalization rules with helpful examples.

Consider adding a note about capitalization in code snippets:

"In code snippets, follow the capitalization conventions of the programming language or framework being used."


Line range hint 102-114: LGTM! Comprehensive accessibility guidelines.

The section provides essential information for creating accessible content, including alt-text, captions, and image usage guidelines.

Consider adding a guideline about image file size:

"Optimize images for web use to ensure fast loading times, especially for users with slower internet connections."

🧰 Tools
🪛 LanguageTool

[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ered lists for chronological steps. * Use bulleted lists to visually separate con...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[duplication] ~124-~124: Possible typo: you repeated a word
Context: ...tured headings (H4 or ####) and/or more than than 20 minutes estimated reading time (ERT)...

(ENGLISH_WORD_REPEAT_RULE)


Line range hint 115-151: LGTM! Well-structured content organization guidelines.

The section provides clear instructions for organizing content, including headings, lists, and meta tags.

There's a typo in one of the bullet points. Please apply this fix:

-    *   **General rule of thumb**: documents with more than 3 levels of structured headings (H4 or ####) and/or more than than 20 minutes estimated reading time (ERT) need revisions will typically involve editing for conciseness, splitting the document into multiple pages, or both.
+    *   **General rule of thumb**: documents with more than 3 levels of structured headings (H4 or ####) and/or more than 20 minutes estimated reading time (ERT) will typically need revisions that involve editing for conciseness, splitting the document into multiple pages, or both.

In the meta tags subsection, consider adding a note about keeping meta descriptions under 160 characters for optimal display in search engine results.

🧰 Tools
🪛 LanguageTool

[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ered lists for chronological steps. * Use bulleted lists to visually separate con...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[duplication] ~124-~124: Possible typo: you repeated a word
Context: ...tured headings (H4 or ####) and/or more than than 20 minutes estimated reading time (ERT)...

(ENGLISH_WORD_REPEAT_RULE)


Line range hint 152-177: LGTM! Clear guidelines for page titles and headings.

The subsections provide comprehensive instructions for creating and formatting page titles, headings, and table of contents.

In the guideline about avoiding H4 levels, consider adding a brief explanation:

"Avoid H4 levels and above within guide and template pages. This helps maintain a clear and easy-to-follow document structure, improving readability and navigation for users."

🧰 Tools
🪛 LanguageTool

[style] ~172-~172: Consider replacing this phrase with the adverb “logically” to avoid wordiness.
Context: ...
* Use headings in a logical manner, and the site will automatically genera...

(IN_A_X_MANNER)


Line range hint 178-211: LGTM! Clear guidelines for prerequisites and callouts.

The subsections provide comprehensive instructions for creating "Before You Begin" sections and using callouts effectively.

In the callout guidelines, consider adding a note about accessibility:

"Ensure that the information in callouts is also conveyed in the main text, as some screen readers may skip over callout sections."


Line range hint 212-271: LGTM! Comprehensive guidelines for code samples and images.

The subsections provide clear instructions for using code samples, images, screenshots, and icons effectively.

In the image guidelines, consider adding a note about color contrast:

"When creating or selecting images and icons, ensure sufficient color contrast for better visibility and accessibility, especially for users with visual impairments."


Line range hint 272-530: LGTM! Comprehensive guidelines for various content elements and types.

The sections provide clear instructions for videos, links, content types, and general formatting, covering a wide range of scenarios and best practices.

In the FAQ guidelines, consider adding a note about keeping answers concise:

"Strive to keep FAQ answers brief and to the point. If an answer requires extensive explanation, consider creating a separate guide or article and linking to it from the FAQ."

In the font guideline, there's a potential issue with the wording. Please apply this fix:

-Fonts in Optimism technical documentation are setup to follow brand guidelines established by marketing (e.g., heading fonts are different than body or paragraph font). Please do not change them.
+Fonts in Optimism technical documentation are set up to follow brand guidelines established by marketing (e.g., heading fonts are different from body or paragraph font). Please do not change them.

This change corrects the use of "setup" to "set up" and replaces "different than" with "different from" for better grammatical accuracy.

🧰 Tools
🪛 LanguageTool

[grammar] ~474-~474: Make sure that the noun ‘setup’ is correct. Did you mean the past participle “set up”?
Context: ...in Optimism technical documentation are setup to follow brand guidelines established ...

(BE_VB_OR_NN)


[style] ~474-~474: Did you mean ‘different from’? ‘Different than’ is often considered colloquial style.
Context: ...ting (e.g., heading fonts are different than body or paragraph font). Please do not ...

(DIFFERENT_THAN)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between c3e1cb2 and 4e1f4f2.

📒 Files selected for processing (1)
  • pages/connect/contribute/style-guide.mdx (18 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
pages/connect/contribute/style-guide.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Use bold for prominence instead of all caps or italics.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
    "
🪛 LanguageTool
pages/connect/contribute/style-guide.mdx

[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ered lists for chronological steps. * Use bulleted lists to visually separate con...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[duplication] ~124-~124: Possible typo: you repeated a word
Context: ...tured headings (H4 or ####) and/or more than than 20 minutes estimated reading time (ERT)...

(ENGLISH_WORD_REPEAT_RULE)


[grammar] ~474-~474: Make sure that the noun ‘setup’ is correct. Did you mean the past participle “set up”?
Context: ...in Optimism technical documentation are setup to follow brand guidelines established ...

(BE_VB_OR_NN)


[style] ~474-~474: Did you mean ‘different from’? ‘Different than’ is often considered colloquial style.
Context: ...ting (e.g., heading fonts are different than body or paragraph font). Please do not ...

(DIFFERENT_THAN)

🔇 Additional comments (1)
pages/connect/contribute/style-guide.mdx (1)

Line range hint 1-8: LGTM! Title and meta tags are well-formatted.

The changes to the title and the inclusion of meta tags align with the style guide recommendations and SEO best practices.

@krofax krofax merged commit 4acc50f into main Oct 3, 2024
7 of 8 checks passed
@krofax krofax deleted the style-guide-updates branch October 3, 2024 14:06
@coderabbitai coderabbitai bot mentioned this pull request Oct 9, 2024
@coderabbitai coderabbitai bot mentioned this pull request Nov 4, 2024
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.

2 participants