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/backend/upgrading/version-specific-migration/upgrade-to-python3.md
-10Lines changed: 0 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,16 +305,6 @@ These should be changed so that Python 3 is the default.
305
305
For example, string types (or text) should be represented as `'foo'`, not `u'foo'`, and bytes types (or data) should be represented as `b'bar'`, not `'bar'`.
306
306
Search for examples of `Py23DocChecker` in Plone's packages to find a pattern which allows updated doctests to pass in Python 2.
307
307
308
-
- To test your code against `buildout.coredev`, start by browsing to [Add-ons \[Jenkins\]](https://jenkins.plone.org/view/Add-ons/).
309
-
- Note there are jobs set up for Plone 4.3, 5.0, 5.1, and 5.2 on Python 2, and three jobs that run tests for Plone 5.2 on Python 3.6, Python 3.7, Python 3.8, and Python 3.9.
310
-
- Click the link {guilabel}`log in` on Jenkins website (top right).
311
-
For the first login, you must authorize Jenkins to have access to your GitHub account to authenticate.
312
-
- Click the link for the job you want to run.
313
-
For example, {guilabel}`Test add-on against Plone 5.2 on Python3.8`.
314
-
- Choose the link {guilabel}`Build with parameters` in the menu on the left-hand side.
315
-
- Fill the fields {guilabel}`ADDON_URL` and {guilabel}`ADDON_BRANCH` with your repository's URL and the branch name ("python3" if you followed these instructions).
316
-
- Start the build with the {guilabel}`Build` button.
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.
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.
36
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`.
37
57
@@ -41,11 +61,6 @@ cd documentation
41
61
make html
42
62
```
43
63
44
-
```{note}
45
-
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.
46
-
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.
47
-
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`.
0 commit comments