-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation checks to CI (#1821)
* Add [vale](https://github.com/errata-ai/vale) as a documentation linter to CI * Add custom vocabulary (`ci/vale/styles/config/vocabularies/morpheus/accept.txt`). * Add sphinx's linkcheck to the documentation builds * Fix spelling & grammar errors found in existing documentation Closes #545 ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md). - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - David Gardner (https://github.com/dagardner-nv) Approvers: - Michael Demoret (https://github.com/mdemoret-nv) - https://github.com/hsin-c URL: #1821
- Loading branch information
1 parent
68bbaa9
commit 9fae209
Showing
106 changed files
with
1,133 additions
and
1,005 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
StylesPath = ci/vale/styles | ||
|
||
MinAlertLevel = error | ||
|
||
Vocab = morpheus | ||
|
||
Packages = Microsoft, write-good | ||
|
||
# Configs for markdown and reStructuredText files | ||
[*{.md,.rst}] | ||
|
||
BasedOnStyles = Vale, write-good, Microsoft | ||
|
||
# Lower these checks to just 'suggestion' level. | ||
|
||
# This check enforces usage of contractions (ex: "it is" -> "it's") lowering to suggestion to allow it | ||
Microsoft.Contractions = suggestion | ||
|
||
# This check disallows the use of "there is" and "there are" at the start of a sentence, I tried looking this up to | ||
# determine the reasoning behind the rule but could not find one. Lowering to suggestion to allow it | ||
write-good.ThereIs = suggestion | ||
|
||
# Allow writing dates in numeric form 02/10/2022 | ||
Microsoft.DateOrder = suggestion | ||
|
||
# reStructuredText specific configs | ||
[*.rst] | ||
# Ignore template items inside of curly braces | ||
TokenIgnores = ({.*}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
source ${SCRIPT_DIR}/common.sh | ||
|
||
set +e | ||
|
||
# Intentionally excluding CHANGELOG.md as it immutable | ||
DOC_FILES=$(git ls-files "*.md" "*.rst" | grep -v -E '^CHANGELOG\.md$') | ||
|
||
vale ${DOC_FILES} | ||
RETVAL=$? | ||
exit $RETVAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# List of case-sensitive regular expressions matching words that should be accepted by Vale. For product names like | ||
# "cuDF" or "cuML", we want to ensure that they are capitalized the same way they're written by the product owners. | ||
# Regular expressions are parsed according to the Go syntax: https://golang.org/pkg/regexp/syntax/ | ||
|
||
API(s?) | ||
[Aa]utoencoder | ||
[Aa]nonymize(d?) | ||
[Bb]ackpressure | ||
[Bb]atcher | ||
[Bb]oolean | ||
# Documentation for ccache only capitalizes the name at the start of a sentence https://ccache.dev/ | ||
[Cc]cache | ||
[Cc]hatbot(s?) | ||
# clangd is never capitalized even at the start of a sentence https://clangd.llvm.org/ | ||
clangd | ||
CMake | ||
[Cc]omposable | ||
Conda | ||
CPython | ||
[Cc]ryptocurrenc[y|ies] | ||
[Cc]yber | ||
[Cc]ybersecurity | ||
Cython | ||
Dask | ||
Databricks | ||
[Dd]eserialize | ||
[Dd]ev | ||
[Dd]ocstring(s?) | ||
[Ee]ngineerable | ||
[Ee]xplainability | ||
[Gg]eneratable | ||
glog | ||
GPU(s?) | ||
Grafana | ||
[Gg]ranularities | ||
[Hh]ashable | ||
[Hh]yperparameter(s?) | ||
[Ii]nferencing | ||
jsonlines | ||
# libcudf isn't styled in the way that cuDF is https://docs.rapids.ai/api/libcudf/stable/ | ||
libcudf | ||
LLM(s?) | ||
# https://github.com/logpai/loghub/ | ||
Loghub | ||
Milvus | ||
[Mm]ixin | ||
MLflow | ||
Morpheus | ||
[Nn]amespace(s?) | ||
NeMo | ||
nginx | ||
NIC | ||
NIM(s?) | ||
NVIDIA | ||
[Pp]arallelization | ||
[Pp]arsable | ||
PCIe | ||
PDF(s?) | ||
[Pp]reprocess | ||
[Pp]retrained | ||
pytest | ||
[Rr]epo | ||
[Rr]etarget(ed?) | ||
[Ss]erializable | ||
[Ss]ubclassing | ||
[Ss]ubcard(s?) | ||
[Ss]ubgraph(s?) | ||
[Ss]ubword(s?) | ||
[Tt]imestamp(s?) | ||
[Tt]okenization | ||
[Tt]okenizer(s?) | ||
triages | ||
[Uu]nencrypted | ||
[Uu]nittest(s?) | ||
[Uu]ploader | ||
XGBoost | ||
zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# List of regular expressions matching words we want to reject. Even though we don't have any words listed this | ||
# file needs to exitst in order for vale to pick up our accept.txt file | ||
# Regular expressions are parsed according to the Go syntax: https://golang.org/pkg/regexp/syntax/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.