Repository navigation
Presto Documentation Style Guide
In general, Presto documentation follows the GitLab Documentation Style Guide.
The GitLab Documentation Style Guide Recommended Word List is the page in that guide that has been most helpful.
If a topic is absent from the GitLab style guide, the following two resources might be helpful:
- Google developer documentation style guide, and specifically the Word list
- Microsoft Writing Style Guide
If a topic is in both the GitLab and either or both of the Google or Microsoft style guides, and the guides disagree, follow the GitLab style guide.
Designing Your Code in CONTRIBUTING.md states:
"All new language features, new functions, session and config properties, and major features have documentation added"
If a PR adds a session property, the PR should include documentation for that session property.
Also see Documentation in the Review and Commit Guidelines.
A build of the documentation fails if any warnings or errors are generated during the doc build.
Local doc builds are helpful to find these warnings and errors, as well as formatting mistakes, before opening a PR. For information on running local doc builds, see Building the Documentation in the Presto docs README.
One common error when adding a new page to the Presto documentation is that new pages are not automatically added to the index page for that topic. For example, if a page documenting a new connector is added in the https://github.com/prestodb/presto/tree/master/presto-docs/src/main/sphinx/connector directory, that page must be added to the Connectors index page at https://github.com/prestodb/presto/blob/master/presto-docs/src/main/sphinx/connector.rst.
-
Avoid Latin abbreviations. See the GitLab documentation style guide recommended word list entry for e.g. for discussion and alternatives.
-
Avoid Latin abbreviations. See the GitLab documentation style guide recommended word list entry for via for discussion and alternatives.
-
Avoid Latin abbreviations. See the GitLab documentation style guide recommended word list entry for etc for discussion and alternatives.
-
Avoid Latin abbreviations. See the GitLab documentation style guide recommended word list entry for I.e. for discussion and alternatives.
-
Avoid Latin abbreviations. See the GitLab documentation style guide recommended word list entry for per for discussion and other alternatives.
-
Use current tense to describe the current state of the product in general and to improve clarity of action in steps. Avoid future tense.
-
A formatting line should be exactly the same number of characters as the line being formatted.
Examples:
Good:
Plugin Implementation---------------------Bad:
Plugin Implementation-------------------Plugin Implementation-----------------------
Presto Open Source Community Roles & Responsibilities
How to Become a Presto Committer?
Presto Documentation Style Guide
Presto Client Protocol v2 Draft
Presto Client Protocol v2 Requirements
HiveSplitSource and Grouped Execution
Stage and Source Scheduler and Grouped Execution