docs: add the documentation style guide to this repository (#5132)

`CONTRIBUTING.md` and the Vale rules link to `lancedb/docs`, which is
private, so outside contributors get a 404. Fixes #5070.

This copies the style guide to `docs/STYLE.md` and points the links at
it. The text is the same apart from the intro, which now describes the
scope from this repository's side, and the internal-names bullet, which
no longer lists the names.

The other three links in `CONTRIBUTING.md` went to the docs repository's
README. The draft-section example is now inline. The combined preview
and saved-edition corrections need the private repositories, so the
guide says to ask a maintainer in the pull request instead.

Replaces #5091.
This commit is contained in:
Brendan Clement
2026-11-20 09:47:14 -08:00
committed by GitHub
parent b4459f35e6
commit cfa94f0077
13 changed files with 182 additions and 19 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ come from the `LanceDB.zip` asset of `lancedb/docs` release
The product-terminology rules were added here: `EmbeddedName`,
`RemoteExecution`, `OSSProduct`, `InternalNames`
(warnings) and `LegacyCloud` (suggestion). They enforce the names in the
docs repository's `STYLE.md#names`. Run every rule's tests from
[style guide](../../docs/STYLE.md#names). Run every rule's tests from
`.github/vale` with `vale test --coverage styles`.
Keeping the rules here lets contributors and CI run Vale without access to the
+1 -1
View File
@@ -1,6 +1,6 @@
extends: existence
message: "Avoid '%s' in prose. Use a comma, a colon, parentheses or two sentences."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#punctuation
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#punctuation
level: warning
nonword: true
# An em dash in prose, and a double hyphen or en dash used as one, with a
+1 -1
View File
@@ -1,6 +1,6 @@
extends: substitution
message: "Use '%s' instead of '%s'."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#names
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
level: warning
ignorecase: false
# The in-process execution model is LanceDB Embedded, whether the data is on
@@ -1,6 +1,6 @@
extends: substitution
message: "Use '%s' instead of the internal name '%s'."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#names
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
level: warning
ignorecase: false
# Internal component names stay out of public text. Environment variables such
+1 -1
View File
@@ -1,6 +1,6 @@
extends: existence
message: "'%s' is the legacy hosted service. Unless the text is specific to it, write 'LanceDB Enterprise'."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#names
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
level: suggestion
ignorecase: false
# A suggestion, because `db://` URIs, `api_key` and `region` for the hosted
+1 -1
View File
@@ -1,6 +1,6 @@
extends: existence
message: "Avoid '%s'. OSS is not a product name: write 'LanceDB Embedded', or 'open source' as a property."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#names
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
level: warning
ignorecase: false
# Bare OSS used as a product, as in "OSS and Enterprise" or "in OSS". "LanceDB
@@ -1,6 +1,6 @@
extends: substitution
message: "Consider '%s' instead of '%s'."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#say-it-directly
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#say-it-directly
level: suggestion
ignorecase: true
# Keep this list small. Technical nouns such as GPU utilization stay intact.
+1 -1
View File
@@ -1,6 +1,6 @@
extends: substitution
message: "Use '%s' instead of '%s'."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#names
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
level: warning
ignorecase: false
# Case-sensitive. A lowercase package, repository or domain name, such as
@@ -1,6 +1,6 @@
extends: existence
message: "Avoid '%s'. Write 'LanceDB Enterprise' and describe where the operation runs directly."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#names
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
level: warning
ignorecase: false
# Remote storage, remote URLs and a git remote are other things and stay. Class
@@ -1,6 +1,6 @@
extends: existence
message: "'%s' doesn't say what the section covers. Name the task or topic instead."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#headings
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#headings
level: suggestion
scope: heading
ignorecase: true
+1 -1
View File
@@ -1,6 +1,6 @@
extends: existence
message: "'%s' talks about the writing, not the subject. State the point directly."
link: https://github.com/lancedb/docs/blob/main/STYLE.md#say-it-directly
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#say-it-directly
level: suggestion
ignorecase: false
scope: sentence