Git Product home page Git Product logo

redhat-documentation / vale-at-red-hat Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 58.0 21.31 MB

Vale config files, styles, and docs to help individuals and teams roll out Vale

Home Page: https://redhat-documentation.github.io/vale-at-red-hat/

License: MIT License

JavaScript 13.99% Handlebars 7.41% Shell 37.33% Python 41.27%
vale documentation vale-style style-guide linter vale-linter-style hacktoberfest

vale-at-red-hat's People

Contributors

abhatt-rh avatar aireilly avatar apupier avatar deerskindoll avatar dependabot[bot] avatar dfitzmau avatar emteelb avatar gaurav-nelson avatar gerry-forde avatar jeana-redhat avatar jhradilek avatar kquinn1204 avatar michelle-purcell avatar michellemacrh avatar mjahoda avatar mmcclaingithub avatar neal-timpe avatar osslate avatar osslate-rh avatar r0ckarong avatar rohennes avatar rolfedh avatar themr0c avatar tmalove avatar tstastna avatar utkarsh212 avatar xjustin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vale-at-red-hat's Issues

Configure this repo for multiple contributors and add a contributors section to the README.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Avoid contractions

Contractions

Avoid contractions in product documentation to leave no ambiguity and to make it easier for translation and international audiences.

If you are writing quick start or other content that uses a more informal conversational style (fairly conversational or more conversational), you may use contractions. In this case, follow the guidance in the IBM Style Guide on using contractions.

See: https://redhat-documentation.github.io/supplementary-style-guide/#contractions

(Rather than current implementation that follows IBM style guide).

Update installation instructions

Souvik Sarkar 1 hour ago: If you place the .ini files within the project directory, then you might have to either add them as exceptions in .gitignore (needs buy in from the greater community of contributors), or manually stage the modified files every time you make changes and commit, instead of the usual git add .

This item is a more conceptual and a bit of an edge case: the current instructions for installing the Vale at Red Hat style bypass this issue altogether. However, we should probably discuss this as an alternative configuration scenario.

Do we need a style for stylepedia?

Is your feature request related to a problem? Please describe.

According to FAQs: CCS style guides and term conventions, "The Red Hat Technical Publications Writing Style Guide (stylepedia.net) is no longer being used in CCS. It is still in use outside CCS, but it is no longer official for our group."

HOWEVER, Ingrid Towey states that stylepedia is still used by some people upstream (we're not sure who) and a technical docs group under Sales.

  • Who are these users?
  • Do their tools and file formats support Vale style linter?
  • Do they want or need a Vale style?
  • Do we want this Vale style for Red Hat project to include non-CCS use cases?
  • What is the priority of such a project?

Describe the solution you'd like

Depending on our conversations and the answers to the preceding questions, it might make sense to include stylepedia within the scope of this project. If so, we would create a stylepedia subdirectory in the Red Hat style and begin creating rules from it.

Describe alternatives you've considered

If the tools and file format of stylepedia users do not support Vale, they might consider using other style-checker tools such as Acrolink, Grammarly, and so on.

Additional context
Add any other context or screenshots about the feature request here.

Should we rename .vale/styles/Vocab/Che to "Red-Hat" or instruct users to create a new directory

Should we rename .vale/styles/Vocab/Che to "Red-Hat" or instruct users to create a new directory for their product, such as .vale/styles/Vocab/Logging?

When I added a Logging directory and updated line 11 in .vale.ini like this:

Vocab = Che, Logging

...I got errors:

[rolfedh@fedora-desktop openshift-docs]$ vale modules/cluster-logging-kibana-*
E100 [vocab] Runtime error

Vocab 'Che, Logging' does not exist

Should we renaming Che to Red-Hat and instructing users to add their product names to .vale/styles/Vocab/Red-Hat/accept.txt?

Reduce false positives for "as"

Describe the bug
Vale reports issues with "as", as shown in the following output. However, those instances seem to be valid uses.
Review the IBM Style Guide and to refine the IBM.Usage rule to reduce false positives.

To Reproduce
Steps to reproduce the behavior:

  1. Run
[rdlugyhe@rdlugyhe ~]$ cd studious-fortnight/
[rdlugyhe@rdlugyhe studious-fortnight]$ ls
_config.yml  README.md   troubleshooting-common-errors.md
LICENSE      red-hat.md  vale-at-red-hat-blog.md
[rdlugyhe@rdlugyhe studious-fortnight]$ vale *.md
...
3:81    suggestion  Verify your use of 'as' with    IBM.Usage        
                     the word usage guidelines.                       
 7:1     suggestion  Verify your use of 'As' with    IBM.Usage        
                     the word usage guidelines.                       
 7:41    suggestion  Verify your use of 'as' with    IBM.Usage        
                     the word usage guidelines. 

Expected behavior

Upon inspection, these seem to be valid uses of "as". I think I can refine the rule to identify undesireable uses of "as" == "because".

Screenshots

Most of these seem like valid usages to me.

Results for "as" in "studious-fortnight/*.md"

/home/rdlugyhe/studious-fortnight/README.md:
  3:  at Red Hat get up and running with Vale. It serves as the starting point for the Vale Community of Practice
  7:  As a technical writer, you can use Vale as a command-line tool to check your content files for style issues.
  7:  As a technical writer, you can use Vale as a command-line tool to check your content files for style issues.
  30:  As a technical writer at Red Hat, you can use this repo to help you get started with using Vale.
  78:  Review the output for `Vale.Spelling` errors for valid words, such as words that appear in the product.
  96:  * You can use a style as-is, or you customize the rules it contains to fit your needs.


/home/rdlugyhe/studious-fortnight/.vale/styles/IBM/README-proselint.md:
  12:  PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,


/home/rdlugyhe/studious-fortnight/.vale/styles/IBM/README-write-good.md:
  20:  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

Follow up on Supplementary Style Guide changes

Make sure we implement Supplementary Style Guide changes.

How to get best informed from a change in the Supplementary Style Guide repository?

Automatically update/recreate the rules?

Create rule for release notes

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Create SSG rule for AMD64 (noun)

AMD64 (noun)
Description: "AMD64" is the AMD implementation of a 64-bit version of the x86 architecture.

Use it: yes

Incorrect forms: Hammer, x86_64, x86-64, x64, 64-bit x86

See also:

NOTE
The AMD64 logo is trademarked; the term "AMD64" is not trademarked. For more information about AMD trademarks, see the AMD Trademark Information page.

For more information about Intel® trademarks, see the Trademark Information and Usage Guidelines for Customers, Licensees, and Other Third Parties pages.

https://redhat-documentation.github.io/supplementary-style-guide/#_a

Figure out how to ignore a subset of a style's rules in a parent folder and turn it on in a child folder

Context: The Red Hat Supplementary Style Guide has specific rules for release notes. The user wants these rules to apply to release notes, but avoid false flags in general content.

Approach: While it might be possible to solve this problem using scoping, the OpenShift docs repo already has release notes in a separate folder from the main documentation. I will try to create a .vale.ini for the parent folder that ignores the ReleaseNotes.yml rules. The .vale.ini for the the release notes folder will include the ReleaseNotes.yml rules.

Editing accept.txt and reject.txt in response to a false-positive Vale error

Describe the bug

In the spirit of the table of common prefixes and examples of when to omit or use a hyphen on page 81 of IBM Style, 'multi-tenant' in project docs was changed to 'multitenant', which resulted in a Vale error.
The problem was successfully solved as described in the steps to reproduce.

To Reproduce
Steps to reproduce the behavior:

  1. Add <encouraged_spelling> to accept.txt.
  2. Add <discouraged_spelling> to reject.txt.

Expected behavior
No Vale error.

Desktop (please complete the following information):
RHEL 8 CSB

Vale version
2.10.3

Finish creating feature requests for https://redhat-documentation.github.io/supplementary-style-guide/#_c

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Show how to download and unpack the Vale tar file, and then place the appropriate .ini files for the Vale - Red Hat specific stuff in the project directory.

Souvik Sarkar 1 hour ago: It would be great if you include how to download and unpack the Vale tar file, and then place the appropriate .ini files for the Vale - Red Hat specific stuff in the project directory.

Good suggestion, Souvik:

  • This video is only one in a planned series of videos on how to install, configure, and use Vale with the Red Hat style. My installation videos will cover the most common ways to install Vale, including the one you mention.

Create version tags and releases

Is your feature request related to a problem? Please describe.
Feature request, having version tags and releases will allow easier identification of issues and allow users to see what changed between releases.

Describe the solution you'd like
Add tags (v1) and create GitHub releases with versions.

Additional context
Having a version will allow me to track updates and in-turn update the rules in online web app.

Vale cannot handle parenthesis in search terms

The SSG has a number of word usage guidance items that includes parenthesis. Vale does not like parenthesis in search terms, and doesn't seem to be able to search for the escaped characters, for example \( or \).

Example rule red-hat-network-satellite-server.yml:

extends: substitution
message: "Use '%s' instead of '%s'."
link: https://redhat-documentation.github.io/supplementary-style-guide/#red-hat-network-satellite-server
ignorecase: true
level: error
action:
  name: replace
source: Red Hat
swap:
    Red Hat Satellite (Server) : Red Hat Network Satellite Server

Finish creating feature requests for https://redhat-documentation.github.io/supplementary-style-guide/#_b

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Implement error alert for CAUTION admonition type

Implement redhat-documentation.github.io/supplementary-style-guide/#admonitions as an error

CAUTION is not fully supported by the Red Hat Customer Portal. Do not use this admonition type.

message: Use NOTE, IMPORTANT, WARNING or TIP admonition type rather than CAUTION
level: error

when CAUTION is present

False positive for "shell prompt"

Describe the bug
Running vale with a recent version of the Red Hat style generates the following error when it encounters "shell prompt" in the content.

 201:27   error  Use 'shell prompt' rather than  RedHat.shell-prompt 
                 'shell'.                                            
 201:267  error  Use 'shell prompt' rather than  RedHat.shell-prompt 
                 'shell'. 

It should not generate this error when the expected phrase is already present.

`hostname` error

Describe the bug

image

IBM Style (p. 292):
image

Meanwhile:
image

To Reproduce
Steps to reproduce the behavior:

  1. Add this word or expression:
  2. Vale reports an illegitimate alert: error, warning, suggestion.

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context here.

Create a reference guide

Create a reference guide containing a page for each rule, that we could use as a link in the rule.

  • Generate with a script new reference pages (only if they don't already exist).
  • Each new page displays the name of the rule as a title, the message of the rule as main content, and the content of the rule file in a source block. Manual authoring necessary to complete the information.
  • Generate the navigation from the pages list.
  • Generate an overview with some helpers to navigate the pages.

Review the Reference guide pages to make them meaningful:

Cite https://source.redhat.com/groups/public/ccs/ccs_wiki/ccs_style_guides_and_term_conventions

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Cite https://source.redhat.com/groups/public/ccs/ccs_wiki/ccs_style_guides_and_term_conventions in the list of definitive sources.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.