File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change
1
+ content/en/blog/_posts/2016-05-00-Coreosfest2016-Kubernetes-Community.md
2
+ content/en/blog/_posts/2016-10-00-Dynamic-Provisioning-And-Storage-In-Kubernetes.md
3
+ content/en/blog/_posts/2017-02-00-Postgresql-Clusters-Kubernetes-Statefulsets.md
4
+ content/en/blog/_posts/2018-06-28-Airflow-Kubernetes-Operator.md
5
+ content/en/blog/_posts/2018-10-02-network-bootable-farm-with-ltsp.md
6
+ content/en/blog/_posts/2019-03-19-kubeedge-k8s-based-edge-intro.md
7
+ content/en/blog/_posts/2020-05-06-third-party-dual-sourced-content.md
8
+ content/en/blog/_posts/2020-05-21-wsl2-dockerdesktop-k8s.md
9
+ content/en/blog/_posts/2020-07-27-kubernetes-1-17-release-interview.md
10
+
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
# #########
17
17
# This script verifies mispellings in location. Today it only supports
18
- # verifying English locale but can be modified in a future to support
18
+ # verifying English locale but can be modified in a future to support
19
19
# also other locales.
20
20
# You need to run this script inside the root directory of "website" git repo.
21
- #
21
+ #
22
22
# Syntax: verify-spelling.sh LOCALE
23
23
# Example: verify-spelling.sh en
24
24
# If no locale is passed, it will assume "en"
25
- #
25
+ #
26
26
# Requirements:
27
27
# - go v1.14 or superior version
28
28
@@ -34,6 +34,9 @@ set -o pipefail
34
34
35
35
TOOL_VERSION=" v0.3.4"
36
36
37
+ KUBE_ROOT=$( dirname " ${BASH_SOURCE[0]} " ) /..
38
+ export KUBE_ROOT
39
+
37
40
LANGUAGE=" ${1:- en} "
38
41
# cd to the root path
39
42
ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd -P) "
@@ -60,7 +63,9 @@ cd "${ROOT}"
60
63
RES=0
61
64
echo " Checking spelling..."
62
65
ERROR_LOG=" ${TMP_DIR} /errors.log"
63
- git ls-files | grep content/${LANGUAGE} | xargs misspell > " ${ERROR_LOG} "
66
+ skipping_file=" ${KUBE_ROOT} /scripts/.spelling_failures"
67
+ failing_packages=$( sed " s| | -e |g" " ${skipping_file} " )
68
+ git ls-files | grep content/${LANGUAGE} | grep -v -e " ${failing_packages} " | xargs misspell > " ${ERROR_LOG} "
64
69
if [[ -s " ${ERROR_LOG} " ]]; then
65
70
sed ' s/^/error: /' " ${ERROR_LOG} " # add 'error' to each line to highlight in e2e status
66
71
echo " Found spelling errors!"
You can’t perform that action at this time.
0 commit comments