mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
`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.
23 lines
1.1 KiB
YAML
23 lines
1.1 KiB
YAML
extends: substitution
|
|
message: "Use '%s' instead of '%s'."
|
|
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
|
|
# local disk or in object storage. Identifiers such as the `oss` product key
|
|
# are code, and code is never prose.
|
|
swap:
|
|
'LanceDB\s+(?:OSS|Oss|oss|Local|local)': LanceDB Embedded
|
|
'[Ll]ocal\s+mode': LanceDB Embedded
|
|
tests:
|
|
- name: replaces the old names of the execution model
|
|
input: Start with LanceDB OSS, also called LanceDB Local, and move off local mode later.
|
|
want: |
|
|
1:12:LanceDB.EmbeddedName:Use 'LanceDB Embedded' instead of 'LanceDB OSS'.
|
|
1:37:LanceDB.EmbeddedName:Use 'LanceDB Embedded' instead of 'LanceDB Local'.
|
|
1:65:LanceDB.EmbeddedName:Use 'LanceDB Embedded' instead of 'local mode'.
|
|
- name: leaves the current name, other uses of local, and code alone
|
|
input: |
|
|
LanceDB Embedded reads local disk or object storage. Run LanceDB locally, set `availability.oss`, or call `LanceDB OSS` in a literal.
|
|
want: ''
|