mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +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.
26 lines
1.2 KiB
YAML
26 lines
1.2 KiB
YAML
extends: substitution
|
|
message: "Use '%s' instead of the internal name '%s'."
|
|
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
|
|
# as `PHALANX_*` and Helm keys such as `planExecutorNodes` are code. Geneva is
|
|
# a product name and is not listed.
|
|
swap:
|
|
Phalanx: query node
|
|
'[Pp]lan\s+[Ee]xecutor': executor
|
|
'[Pp]lan\s+[Ee]xecutors': executors
|
|
Sophon: LanceDB Enterprise
|
|
tests:
|
|
- name: replaces internal component names
|
|
input: Phalanx sends work to a Plan Executor. Plan executors cache data in Sophon.
|
|
want: |
|
|
1:1:LanceDB.InternalNames:Use 'query node' instead of the internal name 'Phalanx'.
|
|
1:25:LanceDB.InternalNames:Use 'executor' instead of the internal name 'Plan Executor'.
|
|
1:40:LanceDB.InternalNames:Use 'executors' instead of the internal name 'Plan executors'.
|
|
1:69:LanceDB.InternalNames:Use 'LanceDB Enterprise' instead of the internal name 'Sophon'.
|
|
- name: leaves Geneva, configuration keys and code alone
|
|
input: |
|
|
Geneva runs on the executor + cache fleet. Set `PHALANX_REMOTE_FTS_SCORER` and `planExecutorNodes`.
|
|
want: ''
|