You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contributing/authors.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ myst:
4
4
"description": "Authors' guide to writing Plone Documentation. It covers configuring quality checks and syntax for writing markup that is of particular interest to authors."
5
5
"property=og:description": "Authors' guide to writing Plone Documentation. It covers configuring quality checks and syntax for writing markup that is of particular interest to authors."
6
6
"property=og:title": "Authors Guide"
7
-
"keywords": "Plone, Documentation, SEO, meta, exercises, solutions, spellcheck, linkcheck, lexer"
"description": "Authors' guide to writing Plone Documentation. It covers configuring quality checks and syntax for writing markup that is of particular interest to authors."
35
35
"property=og:description": "Authors' guide to writing Plone Documentation. It covers configuring quality checks and syntax for writing markup that is of particular interest to authors."
36
36
"property=og:title": "Authors Guide"
37
-
"keywords": "Plone, Documentation, SEO, meta, spellcheck, linkcheck, lexer"
@@ -44,7 +44,7 @@ This renders in the HTML `<head>` section as follows.
44
44
<metacontent="Authors' guide to writing Plone Documentation. It covers configuring quality checks and syntax for writing markup that is of particular interest to authors."name="description" />
45
45
<metacontent="Authors' guide to writing Plone Documentation. It covers configuring quality checks and syntax for writing markup that is of particular interest to authors."property="og:description" />
Additional {term}`Open Graph` metadata is implemented through the Sphinx extension [`sphinxext-opengraph`](https://github.com/wpilibsuite/sphinxext-opengraph) and the [MyST `html_meta` directive](https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#setting-html-metadata), which resolves to the [Docutils `meta` directive](https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata).
@@ -75,25 +75,23 @@ Open `/_build/html/index.html` in a web browser.
75
75
76
76
(authors-english-label)=
77
77
78
-
### American English Spelling, Grammar, and Syntax
78
+
### American English Spelling, Grammar, and Syntax, and Style Guide
79
79
80
-
Spellings are enforced through [`spellcheck`](https://sphinxcontrib-spelling.readthedocs.io/en/latest/index.html).
81
-
We use the locale `en_US`.
80
+
Spellings are enforced through [`Vale`](https://vale.sh/).
81
+
Plone uses American English.
82
82
83
-
Spelling is configured in {file}`Makefile`, {file}`docs/conf.py`, and {file}`docs/spelling_wordlist.txt`.
83
+
Spelling is configured in {file}`Makefile`, {file}`.vale.ini`, and in files in `styles/Vocab/Plone/`.
84
84
85
-
Authors should add new words and proper names using correct casing to {file}`docs/spelling_wordlist.txt`, sorted alphabetically.
85
+
Authors should add new words and proper names using correct casing to {file}`styles/Vocab/Plone/accept.txt`, sorted alphabetically and case-insensitive.
86
86
87
-
See [default settings and configuration options](https://sphinxcontrib-spelling.readthedocs.io/en/latest/customize.html).
87
+
Vale also provides English grammar and syntax checking, as well as a Style Guide.
88
88
89
-
To validate spelling, run the following command.
89
+
To perform all these checks, run the following command.
90
90
91
91
```shell
92
-
make spellcheck
92
+
make vale
93
93
```
94
94
95
-
Open `/_build/spellcheck/` for misspellings.
96
-
97
95
Because it is difficult to automate good English grammar and syntax, we do not strictly enforce it.
98
96
We also understand that contributors might not be fluent in English.
99
97
We encourage contributors to make a reasonable effort, and to seek help from community members who are fluent in English.
@@ -18,25 +18,40 @@ This document covers how to build the Plone Documentation and check it for quali
18
18
19
19
## Installation
20
20
21
-
Optionally install [Enchant](https://abiword.github.io/enchant/) to check spelling.
21
+
Installation of Plone 6 Documentation includes pre-requisites and the repository itself.
22
22
23
-
```{todo}
24
-
Due to the complexity of installing Enchant and the inability of its Python bindings in [pyenchant to properly spellcheck hyphenated words](https://github.com/pyenchant/pyenchant/issues/286) through the Sphinx extension [`sphinxcontrib-spelling`](https://github.com/sphinx-contrib/spelling), the [Plone Documentation Team](https://github.com/orgs/plone/teams/documentation-team/members) is [evaluating Vale as a replacement](https://github.com/plone/documentation/issues/1347).
25
-
```
26
23
24
+
(setup-build-installation-vale-label)=
27
25
28
-
**macOS**
26
+
### Vale
29
27
30
-
```shell
31
-
brew install enchant
32
-
```
28
+
Vale is a linter for narrative text.
29
+
It checks spelling, English grammar, and style guides.
30
+
Plone documentation uses a custom spelling dictionary, with accepted and rejected spellings in `styles/Vocab/Plone`.
33
31
34
-
**Ubuntu**
32
+
Use your operating system's package manager to [install Vale](https://vale.sh/docs/vale-cli/installation/).
35
33
36
-
```shell
37
-
sudo apt-get install enchant
34
+
Vale also has [integrations](https://vale.sh/docs/integrations/guide/) with various IDEs.
Plone documentation uses a file located at the root of the repository, `.vale.ini`, to configure Vale.
41
+
This file allows overriding rules or changing their severity.
42
+
43
+
The Plone Documentation Team selected the [Microsoft Writing Style Guide](https://docs.microsoft.com/en-us/style-guide/welcome/) for its ease of use—especially for non-native English readers and writers—and attention to non-technical audiences.
44
+
45
+
```{note}
46
+
More corrections to spellings and Vale's configuration are welcome by submitting a pull request.
47
+
This is an easy way to become a contributor to Plone.
Clone the Plone Documentation repository, and change your working directory into the cloned project.
41
56
Then with a single command using `Makefile`, create a Python virtual environment, install project dependencies, pull in Volto documentation as a git submodule, build the docs, and view the results in a web browser by opening `/_build/html/index.html`.
42
57
@@ -46,11 +61,6 @@ cd documentation
46
61
make html
47
62
```
48
63
49
-
```{note}
50
-
If you are using an M1 Mac to build the documentation, there is currently [an issue with pyenchant](https://github.com/pyenchant/pyenchant/issues/265) that throws an error that the enchant library can't be found.
51
-
This happens for example if you install Python 3 with `pyenv` in the default M1 architecture (aarch64), so without following instructions to use Rosetta2 x86 emulation.
52
-
A workaround until pyenchant is fixed is to run `export PYENCHANT_LIBRARY_PATH=/opt/homebrew/lib/libenchant-2.dylib` in the terminal session before you execute `make html`.
Copy file name to clipboardExpand all lines: docs/contributing/writing-docs-guide.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,7 +286,6 @@ We use several extensions to enhance the presentation of Plone documentation.
286
286
-[`sphinxcontrib.httpexample`](https://sphinxcontrib-httpexample.readthedocs.io/en/latest/) enhances `sphinxcontrib-httpdomain` by generating RESTful HTTP API call examples for different tools from a single HTTP request example.
287
287
Supported tools include [curl](https://curl.se/), [wget](https://www.gnu.org/software/wget/), [httpie](https://httpie.io/), and [python-requests](https://requests.readthedocs.io/en/latest/).
288
288
It is used by Plone's {doc}`plone.restapi/docs/source/index`.
-[`sphinx.ext.viewcode`](https://www.sphinx-doc.org/en/master/usage/extensions/viewcode.html) generates pages of source code modules and links between the source and the description.
292
291
It is used by {doc}`/plone.api/index`.
@@ -321,5 +320,7 @@ This will greatly improve the editing and maintenance of your documentation.
321
320
322
321
Because it is difficult to automate good English grammar and syntax, we do not strictly enforce it.
323
322
We also understand that contributors might not be fluent in English.
323
+
We use [Vale](https://vale.sh/) as a tool to check spelling, grammar, and style.
324
+
Vale can help contributors improve their writing.
324
325
We encourage contributors to make a reasonable effort, and to seek help from community members who are fluent in English.
0 commit comments