-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from themr0c/introduce-crontributor-guide
- Loading branch information
Showing
38 changed files
with
361 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.Contributor guide | ||
|
||
* xref:contributing.adoc[] | ||
* xref:vale-at-red-hat-repository.adoc[] | ||
* xref:extending-the-spelling-rule.adoc[] | ||
* xref:extending-the-redhat-style.adoc[] |
Empty file.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
modules/contributor-guide/pages/extending-the-redhat-style.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Metadata for Antora | ||
:navtitle: Extending rules | ||
:keywords: contributing, style, rules | ||
// :page-aliases: | ||
// End of metadata for Antora | ||
|
||
:parent-context-of-extending-styles: {context} | ||
|
||
[id="extending-the-redhat-style_{context}"] | ||
= Extending the _RedHat_ style | ||
|
||
:context: extending-the-redhat-style | ||
|
||
include::partial$proc_extending-the-redhat-style.adoc[leveloffset=+1] | ||
|
||
:context: {parent-context-of-extending-styles} | ||
|
17 changes: 17 additions & 0 deletions
17
modules/contributor-guide/pages/extending-the-spelling-rule.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Metadata for Antora | ||
:navtitle: Extending _Spelling_ | ||
:keywords: contributing, spelling-rule | ||
// :page-aliases: | ||
// End of metadata for Antora | ||
|
||
:parent-context-of-extending-the-spelling-rule: {context} | ||
|
||
[id="extending-the-spelling-rule_{context}"] | ||
= Extending the _Spelling_ rule | ||
|
||
:context: extending-the-spelling-rule | ||
|
||
include::partial$proc_extending-the-spelling-rule.adoc[leveloffset=+1] | ||
|
||
:context: {parent-context-of-extending-the-spelling-rule} | ||
|
18 changes: 18 additions & 0 deletions
18
modules/contributor-guide/pages/vale-at-red-hat-repository.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Metadata for Antora | ||
:navtitle: Repository | ||
:keywords: vale-at-red-hat-repository, repository, concept | ||
// :page-aliases: | ||
// End of metadata for Antora | ||
|
||
:parent-context-of-vale-at-red-hat-repository: {context} | ||
|
||
[id="vale-at-red-hat-repository_{context}"] | ||
= _Vale at Red Hat_ repository | ||
|
||
:context: vale-at-red-hat-repository | ||
|
||
include::partial$con_vale-at-red-hat-repository.adoc[leveloffset=+1] | ||
|
||
|
||
:context: {parent-context-of-vale-at-red-hat-repository}] | ||
|
Empty file.
16 changes: 16 additions & 0 deletions
16
modules/contributor-guide/partials/con_vale-at-red-hat-repository.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:_module-type: CONCEPT | ||
|
||
[id="con_vale-at-red-hat-repository_{context}"] | ||
= link:{repository-url}[_{repository-name}_ repository] | ||
|
||
The link:{repository-url}[_{repository-name}_ repository] contains resources to validate language in documentation projects using Vale: | ||
|
||
* xref:end-user-guide:redhat-style-for-vale.adoc[] in the `.vale/styles/RedHat` directory | ||
* xref:end-user-guide:glossary.adoc#vale-configuration-file_{context}[Vale configuration files] for usage in a local environment or by the GitHub Action. | ||
* xref:end-user-guide:introduction.adoc[End-user guide] | ||
* xref:contributor-guide:contributing.adoc[Contributor guide] | ||
|
||
|
||
.Additional resources | ||
|
||
* link:{repository-url}[{repository-name} repository] |
17 changes: 17 additions & 0 deletions
17
modules/contributor-guide/partials/con_vale-configuration-file.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
:_module-type: CONCEPT | ||
|
||
[id="con_vale-configuration-file_{context}"] | ||
= Vale configuration file | ||
|
||
The Vale configuration file `.vale.ini` defines: | ||
|
||
* File names patterns to match files to validate | ||
* Active styles and vocabulary | ||
* Custom content patterns to modify scoping behavior | ||
|
||
.Additional resources | ||
|
||
* xref:getting-started-with-vale.adoc[] | ||
* xref:adding-vale-configuration-to-a-project.adoc[] | ||
* link:https://docs.errata.ai/vale/config[Vale documentation - Configuration] | ||
|
44 changes: 44 additions & 0 deletions
44
modules/contributor-guide/partials/proc_creating-a-vocabulary-for-a-project.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
:_module-type: PROCEDURE | ||
|
||
[id="proc_creating-a-vocabulary-for-a-project_{context}"] | ||
= Creating a vocabulary for a project | ||
|
||
Consider adding a *Vocabulary* to your project when missing words in the Vale dictionary are causing *Spelling* errors and the word is too specific to benefit to other projects. | ||
|
||
.Prerequisites | ||
|
||
* xref:end-user-guide:getting-started-with-vale.adoc[] | ||
* xref:end-user-guide:understanding-vale-output.adoc[] | ||
* xref:end-user-guide:defining-a-vale-onboarding-strategy.adoc[] | ||
|
||
.Procedure | ||
|
||
* Create or edit the Vocabulary for your project: create or edit the `.vale/styles/Vocab/__<Project>__/accept.txt` file and add the missing word. Ensure the entry is not case-sensitive. | ||
+ | ||
.Entry in the vocabulary, not case-sensitive | ||
---- | ||
[Pp]odman | ||
---- | ||
|
||
|
||
* Register the Vocabulary in the `.vale.ini` file | ||
+ | ||
[source,ini,subs="+quotes,+attributes,+macros"] | ||
---- | ||
Vocab = __<Project>__ | ||
---- | ||
|
||
.Verification | ||
|
||
* Run the `vale` command on a content file containing the word which was missing. | ||
+ | ||
[subs="+quotes,+attributes"] | ||
---- | ||
$ cd __<project_directory>__ | ||
$ vale __<filename>__ | ||
---- | ||
|
||
.Additional resources | ||
|
||
* link:https://docs.errata.ai/vale/vocab[Vale documentation - Vocabularies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
.End-user guide | ||
|
||
* xref:introduction.adoc[] | ||
* xref:redhat-style-for-vale.adoc[] | ||
* xref:glossary.adoc[] | ||
* xref:getting-started-with-vale.adoc[] | ||
* xref:understanding-vale-output.adoc[] | ||
* xref::using-vale-in-the-ide.adoc[] | ||
* xref:defining-a-vale-onboarding-strategy.adoc[] | ||
* xref:adding-vale-configuration-to-a-project.adoc[] | ||
* xref:creating-a-vocabulary-for-a-project.adoc[] | ||
* xref:using-vale-with-a-continuous-integration-service.adoc[] | ||
* xref:contributing.adoc[] | ||
** xref:extending-the-vocabulary.adoc[] | ||
** xref:extending-styles.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Metadata for Antora | ||
:navtitle: Glossary | ||
:keywords: glossary, antora | ||
// :page-aliases: old-glossary | ||
// End of metadata for Antora | ||
|
||
:parent-context-of-glossary: {context} | ||
|
||
[id="glossary_{context}"] | ||
= Glossary | ||
|
||
:context: glossary | ||
|
||
include::partial$con_vale-command-line-tool.adoc[leveloffset=+1] | ||
|
||
|
||
include::partial$con_vale-configuration-file.adoc[leveloffset=+1] | ||
|
||
|
||
include::partial$con_vale-rule.adoc[leveloffset=+1] | ||
|
||
|
||
include::partial$con_vale-style.adoc[leveloffset=+1] | ||
|
||
|
||
include::partial$con_vale-vocabulary.adoc[leveloffset=+1] | ||
|
||
|
||
:context: {parent-context-of-glossary}] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Metadata for Antora | ||
:navtitle: RedHat Style | ||
:keywords: redhat-style-for-vale, antora | ||
// :page-aliases: old-redhat-style-for-vale | ||
// End of metadata for Antora | ||
|
||
:parent-context-of-redhat-style-for-vale: {context} | ||
|
||
|
||
[id="redhat-style-for-vale_{context}"] | ||
pass:[<!-- vale RedHat.Spelling = NO -->] | ||
= _Redhat_ style for vale | ||
|
||
:context: redhat-style-for-vale | ||
|
||
|
||
include::partial$con_redhat-style-for-vale.adoc[leveloffset=+1] | ||
|
||
|
||
:context: {parent-context-of-redhat-style-for-vale}] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.