Spell check config updates.

Continuation of https://review.opendev.org/c/starlingx/docs/+/826142
Move sphinxcontrib.spelling dependency out of 'docs' build env
Minor updates to spelling_wordlist.txt for testing
Note: shared/strings.txt do not current load into spellcheck env. This causes
numerous warnings but does not interfere with spell check. More investigation
TBD.
Note above no longer relevant. Fixed.
Incorporated Patchset 1 review comments.
Remove terms from wordlist
Exclude Chinese doc from EN-US spellcheck
Updates to wordlist
Resolve merge conflicts.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I78639c2dc468f9132297b75280ba373d05c28233
This commit is contained in:
Ron Stone 2022-02-02 14:04:11 -05:00
parent af03069bf9
commit f95ffd6878
5 changed files with 103 additions and 105 deletions

View File

@ -1,6 +1,5 @@
sphinx==4.2.0 sphinx==4.2.0
openstackdocstheme>=2.2.1,<=2.3.1 # Apache-2.0 openstackdocstheme>=2.2.1,<=2.3.1 # Apache-2.0
sphinxcontrib-spelling==7.3.2
# API Reference Guide # API Reference Guide
os-api-ref>=1.5.0 # Apache-2.0 os-api-ref>=1.5.0 # Apache-2.0

View File

@ -36,10 +36,14 @@ author = 'StarlingX'
# ones. # ones.
extensions = [ extensions = [
# 'openstackdocstheme', # 'openstackdocstheme',
'sphinxcontrib.spelling',
'starlingxdocs_plus' 'starlingxdocs_plus'
] ]
if tags.has('use_spellext'):
extensions.append('sphinxcontrib.spelling')
spelling_word_list_filename='spelling_wordlist.txt'
spelling_exclude_patterns=['developer_resources/Layered_Build_cn.rst']
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
#templates_path = ['_templates'] #templates_path = ['_templates']
@ -59,8 +63,6 @@ master_doc = 'index'
# Usually you set "language" from the command line for these cases. # Usually you set "language" from the command line for these cases.
language = None language = None
spelling_word_list_filename='spelling_wordlist.txt'
# List of patterns, relative to source directory, that match files and # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path . # This pattern also affects html_static_path and html_extra_path .

View File

@ -330,7 +330,8 @@ Formatting checks
.. begin-post-build-checks .. begin-post-build-checks
After every successful build several quality checks are performed against the You can build the HTML documentation locally using the ``tox -e docs`` command.
After every successful build, several quality checks are performed against the
build HTML output. build HTML output.
.. code-block:: none .. code-block:: none
@ -395,23 +396,24 @@ This sample shows three problems.
https://docutils.sourceforge.io/docs/ref/rst/directives.html#include https://docutils.sourceforge.io/docs/ref/rst/directives.html#include
* - Substitution errors * - Substitution errors
- Scans the output for potential unexpanded substitutions such as - Scans the output for potential unexpanded substitutions such as
``|prod|`` and reports which files they were found in along with the ``|prod|`` and reports which files they were found in, along with the
offending lines of HTML. offending lines of HTML.
.. note:: .. note::
This check cannot distinguish between a substitution and an ascii This check cannot distinguish between a substitution and an ascii
output table where cells are not properly padded. In either case the output table where cells are not properly padded. In either case, the
problem needs to be fixed. problem needs to be fixed.
- As above, find the problem in the appropriate :file:`.rst` file by - As above, find the problem in the appropriate :file:`.rst` file by
examining the :file:`.html` file reported. Look for ``|<text>|`` code examining the :file:`.html` file reported. Look for ``|<text>|`` code
exposed in the output. In the corresponding :file:`.rst`, find and exposed in the output. In the corresponding :file:`.rst`, find and
correct the issue. correct the issue.
.. hint:: .. hint::
Substitions are not allowed in code blocks, :ref:, :doc:, Substitutions are not allowed in code blocks, :ref:, :doc:,
or within |RST| markup such as ``**``, ``*```, `````, and so on. or within |RST| markup such as ``**``, ``*```, `````, and so on.
Substitions cannot be used in ASCII "picture" style tables. If you Substitutions cannot be used in ASCII "picture" style tables. If you
need a substitution in a table, use the ``.. list-table::`` format need a substitution in a table, use the ``.. list-table::`` format
instead. instead.
@ -456,12 +458,12 @@ not found* error. This indicates that the page may have moved or been deleted.
**Logs** **Logs**
Non "OK" results such as *file not found* and *permanent redirect* are Non "OK" results such as *file not found* and *permanent redirect* are
logged under :file:`doc/builds/linkcheck` in two files: logged under :file:`doc/build/linkcheck` in two files:
* :file:`doc/builds/linkcheck/output.txt` provides a results log in plain-text * :file:`doc/build/linkcheck/output.txt` provides a results log in plain-text
format. format.
* :file:`doc/builds/linkcheck/output.json` provides the same information in * :file:`doc/build/linkcheck/output.json` provides the same information in
``JSON`` format. ``JSON`` format.
Investigate all issues and update the links as needed. In the case of permanent Investigate all issues and update the links as needed. In the case of permanent
@ -559,8 +561,9 @@ RST conventions
--------------- ---------------
StarlingX documentation follows many (but not all!) of the RST conventions StarlingX documentation follows many (but not all!) of the RST conventions
described in the `OpenStack documentation RST conventions guide <https://docs.openstack.org/doc-contrib-guide/rst-conv.html>`_. If RST markup is described in the `OpenStack documentation RST conventions guide
not listed in this section's quick reference, refer to the OpenStack guide. <https://docs.openstack.org/doc-contrib-guide/rst-conv.html>`_. If RST markup
is not listed in this section's quick reference, refer to the OpenStack guide.
For detailed information about RST and Sphinx extensions, refer to the following For detailed information about RST and Sphinx extensions, refer to the following
documents: documents:
@ -836,5 +839,6 @@ Example RST:
Subsection heading Subsection heading
****************** ******************
Integer sed tortor nisi. Vivamus feugiat, urna in posuere gravida, ligula nunc hendrerit magna, nec tristique ex tortor non lorem. Integer sed tortor nisi. Vivamus feugiat, urna in posuere gravida, ligula
nunc hendrerit magna, nec tristique ex tortor non lorem.

View File

@ -1,17 +1,17 @@
µs
accessMode accessMode
acmesolver acmesolver
addon addon
addrpool addrpool
affined
AIO AIO
AlarmID AlarmID
AlarmSeverity AlarmSeverity
allowMultiplePerNode allowMultiplePerNode
analytics analytics
ansible
Ansible Ansible
aodh ansible
Aodh Aodh
aodh
api api
apiGroups apiGroups
apis apis
@ -27,10 +27,11 @@ authNoPriv
authPriv authPriv
autoboot autoboot
autoscale autoscale
autoscaler
Autoscaler Autoscaler
autoscaler
autoscaling autoscaling
autounseal autounseal
Auth
awk awk
backend backend
Backend Backend
@ -43,15 +44,15 @@ billingDeptGroup
bindDN bindDN
bindep bindep
bindPW bindPW
bitbake
Bitbake Bitbake
bitbake
bitstream bitstream
blkin blkin
blockchain blockchain
bmc bmc
boolean boolean
bootable
Bootable Bootable
bootable
bootimage bootimage
bootloader bootloader
Broadcom Broadcom
@ -66,8 +67,8 @@ ceph
Ceph Ceph
cephfs cephfs
cephx cephx
certifcate
certtype certtype
cfg
cgroup cgroup
cgroups cgroups
cgts cgts
@ -87,17 +88,17 @@ Coleto
collectd collectd
Columbiaville Columbiaville
commandline commandline
config
Config Config
config
configmap configmap
configmaps configmaps
configs configs
ConnectX ConnectX
containerd
Containerd Containerd
containerd
controllerstorage controllerstorage
coredns
Coredns Coredns
coredns
CoW CoW
cpio cpio
cpu cpu
@ -118,8 +119,8 @@ cutover
cyber cyber
Cygwin Cygwin
daemonset daemonset
Daemonsets
daemonsets daemonsets
Daemonsets
datafile datafile
datanet datanet
datanetwork datanetwork
@ -131,23 +132,23 @@ dcdbsync
dcmanager dcmanager
dcorch dcorch
dedicatedstorage dedicatedstorage
deprovision
Deprovision Deprovision
deprovision
deprovisioned deprovisioned
deprovisioning deprovisioning
dev dev
Dev Dev
devtoolset devtoolset
dex
Dex Dex
dex
distcloud distcloud
distro
Distro Distro
distro
distros distros
DL DL
dns dns
dockerfile
Dockerfile Dockerfile
dockerfile
dpdk dpdk
dpdkBasebandDevice dpdkBasebandDevice
dracut dracut
@ -155,13 +156,13 @@ DRBD
dropdown dropdown
eASIC eASIC
ebtables ebtables
edgeworker
Edgeworker Edgeworker
edgeworker edgeworker
edgeworker
Edgeworkers Edgeworkers
EF EF
efi
EFI EFI
efi
Emulex Emulex
enablement enablement
engineID engineID
@ -172,13 +173,11 @@ etcd
Etcd Etcd
EtcdCA EtcdCA
EtcdRootCA EtcdRootCA
etf
eth eth
ethernet ethernet
EventID EventID
EventSeverity EventSeverity
EventType EventType
examplex
eXtensible eXtensible
facto facto
failover failover
@ -191,11 +190,10 @@ fieldname
fileName fileName
filepath filepath
filestore filestore
filesystem
Filesystem Filesystem
filesystem
filesystems filesystems
Filesystems Filesystems
filesystems
Fortville Fortville
fqdn fqdn
Freerun Freerun
@ -221,8 +219,8 @@ hardcode
hardcoded hardcoded
hexidecimal hexidecimal
hieradata hieradata
hostname
Hostname Hostname
hostname
hostnames hostnames
hostwd hostwd
hpa hpa
@ -231,8 +229,8 @@ https
hugepage hugepage
hugepages hugepages
Hugepages Hugepages
hyperthreading
Hyperthreading Hyperthreading
hyperthreading
hyperthreads hyperthreads
hypervisor hypervisor
hypervisors hypervisors
@ -252,7 +250,6 @@ initrd
inprogress inprogress
insync insync
integ integ
intel
intermediateCA intermediateCA
intnet intnet
IoT IoT
@ -267,8 +264,9 @@ isohybrid
isolcpus isolcpus
javascript javascript
jetstack jetstack
kata jsmith
Kata Kata
kata
keypairs keypairs
keystoneUserName keystoneUserName
KiB KiB
@ -279,18 +277,18 @@ kubeadm
kubeconfig kubeconfig
kubectl kubectl
kubelet kubelet
kubelets
Kubelets Kubelets
kubernetes kubelets
Kubernetes Kubernetes
kubernetes
kubesystem kubesystem
kustomize kustomize
kvm kvm
libnetwork
Libnetwork Libnetwork
libnetwork
libvirt libvirt
lifecycle
Lifecycle Lifecycle
lifecycle
linters linters
linux linux
linuxptp linuxptp
@ -299,6 +297,7 @@ loadbuild
localdisk localdisk
localhost localhost
localrc localrc
login
logrotate logrotate
loopback loopback
losetup losetup
@ -309,15 +308,15 @@ lvmthinpool
macOS macOS
makefile makefile
managerGroup managerGroup
mariadb
Mariadb Mariadb
mariadb
Mbps Mbps
Mellanox Mellanox
Memcached Memcached
mgmt
Mgmt Mgmt
mib mgmt
MiB MiB
mib
mins mins
mitigations mitigations
mkisofs mkisofs
@ -333,8 +332,8 @@ mqprio
msec msec
mtcAgent mtcAgent
mtu mtu
multicast
Multicast Multicast
multicast
multichassis multichassis
multus multus
myApplication myApplication
@ -346,8 +345,8 @@ Namespace
namespaced namespaced
namespaces namespaces
Namespaces Namespaces
netapp
Netapp Netapp
netapp
Netapps Netapps
netboot netboot
netdevice netdevice
@ -358,8 +357,8 @@ networktype
newnote newnote
nfd nfd
nfv nfv
nginx
Nginx Nginx
nginx
Niantic Niantic
NIC NIC
nn nn
@ -374,12 +373,12 @@ numa
numvfs numvfs
nvidia nvidia
nvme nvme
oam
OAM OAM
oam oam
oam
OCI OCI
oidc
Oidc Oidc
oidc
ok ok
onboard onboard
Onboard Onboard
@ -393,23 +392,23 @@ Openssh
openssl openssl
openstack openstack
Openstack Openstack
openstack
openstackclients openstackclients
Orchestrator
orchestrator
osd osd
overrideable overrideable
ovs ovs
ovverrides
panko panko
Panko Panko
Paravirtualized Paravirtualized
passhtru passhtru
passthrough
Passthrough Passthrough
pci passthrough
PCI PCI
pci
pciaddress pciaddress
pcnet
PCnet PCnet
pcnet
peergroup peergroup
pem pem
persistentvolume persistentvolume
@ -418,22 +417,22 @@ pgp
pgs pgs
phc phc
pids pids
pkgs
Pkgs Pkgs
pkgs
platformclients platformclients
playbookconfig playbookconfig
pmon pmon
pmond pmond
pnet pnet
podAntiAffinity podAntiAffinity
portieris
Portieris Portieris
portieris
portState portState
postgres
Postgres Postgres
postgres
Postgresql Postgresql
postrequisites
Postrequisites Postrequisites
postrequisites
poweroff poweroff
Powerville Powerville
Pre Pre
@ -441,13 +440,13 @@ pre
preconfigured preconfigured
prepended prepended
prepends prepends
prestage
Prestage Prestage
prestaged prestage
Prestaged Prestaged
prestaged
Prestages Prestages
prestaging
Prestaging Prestaging
prestaging
prestart prestart
ProbableCause ProbableCause
processname processname
@ -455,17 +454,16 @@ project
ProposedRepairAction ProposedRepairAction
Proto Proto
providernet providernet
provisoner Provisioner
provsioner provisioner
pruposes
psp psp
ptp ptp
ptptracking ptptracking
pv pv
pvc pvc
pxe pxe
pxeboot
Pxeboot Pxeboot
pxeboot
pxebooting pxebooting
pxelinux pxelinux
py py
@ -495,26 +493,28 @@ Realtek
ReasonText ReasonText
rebase rebase
reconfig reconfig
Redfish
redfish
redirectURIs redirectURIs
redis redis
rehome rehome
Rehome Rehome
rehomed rehomed
rehoming
Rehoming Rehoming
rehoming rehoming
reinstallation reinstall
Reinstallation Reinstallation
reinstallation
reinstallations reinstallations
Rendevous reinstalled
reno reno
replicaCount replicaCount
replicaSet replicaSet
ReplicaSets ReplicaSets
repo repo
Repo
REPO
repo repo
REPO
Repo
Repo Repo
repo repo
repos repos
@ -526,18 +526,18 @@ resourceName
restapi restapi
reStructuredText reStructuredText
retestneeded retestneeded
retimer
Retimer Retimer
retimer
rgw rgw
rk
RK RK
rk
rmdir rmdir
rolebindings
RoleBindings RoleBindings
rolebindings
rookstorage rookstorage
rootca rootca
rootfs
Rootfs Rootfs
rootfs
rootkey rootkey
rpc rpc
rpmbuild rpmbuild
@ -556,6 +556,7 @@ rvmc
Salesforce Salesforce
sampleimage sampleimage
sbin sbin
scalable
sched sched
schemas schemas
sda sda
@ -563,69 +564,62 @@ sdb
sdc sdc
secureboot secureboot
sed sed
selectwhich
sensorname sensorname
seperated
serviceAccount serviceAccount
serviceaccount serviceaccount
serviceaccounts serviceaccounts
serviceAccounts serviceAccounts
ServiceAffecting ServiceAffecting
severities severities
snmp
SNMP SNMP
snmp snmp
snmpd snmpd
specfile specfile
spectre spectre
Spectre Spectre
spectre
Springville Springville
src
Src Src
src
sriov sriov
sRootCA sRootCA
srpm srpm
srpms srpms
SSD SSD
ssl ssl
starlingx
Starlingx
StarlingX StarlingX
starlingx
statefulset statefulset
staticClients staticClients
stdout stdout
storages storages
stx
Stx
STX STX
Stx
stx stx
Subcloud Subcloud
subcloud subcloud
subclouds
Subclouds Subclouds
subclouds
subcommand subcommand
subcommands
Subcommands Subcommands
subcommands
subfunctions subfunctions
subgit subgit
subinterface subinterface
subnet subnet
Subnet Subnet
subnetpool subnetpool
subnets
Subnets Subnets
subnets
sudo sudo
sudoers sudoers
SuppressionAllowed SuppressionAllowed
svc svc
sw sw
swact
Swact Swact
swact
Swacted Swacted
swacting
Swacting Swacting
swacting
Swacts Swacts
SX SX
Symkloud Symkloud
@ -633,8 +627,8 @@ symlink
symlinks symlinks
synching synching
sys sys
sysinv
Sysinv Sysinv
sysinv
syslog syslog
systemController systemController
systemctl systemctl
@ -659,8 +653,8 @@ tls
TLS TLS
tmp tmp
toml toml
Triaged
triaged triaged
Triaged
triages triages
triaging triaging
trustServer trustServer
@ -668,7 +662,6 @@ TSN
tty tty
tx tx
Tx Tx
tx
txt txt
udisksctl udisksctl
udp udp
@ -683,14 +676,13 @@ unixPermissions
Unmanage Unmanage
unmanaged unmanaged
Unmanaged Unmanaged
unmanaged
unmanaging unmanaging
Unmount Unmount
unmounting unmounting
Unpause Unpause
unreferenced unreferenced
unsuppress
Unsuppress Unsuppress
unsuppress
unsuppressing unsuppressing
untrusted untrusted
uptime uptime
@ -698,8 +690,8 @@ upversion
Upversion Upversion
upversioned upversioned
uri uri
Url
url url
Url
urls urls
useradd useradd
userid userid
@ -712,19 +704,18 @@ varbinds
vdi vdi
Venafi Venafi
vf vf
vfio
Vfio Vfio
vfio vfio
vfor vfor
vg vg
vhost
Vhost Vhost
vhost
Vid Vid
Vids Vids
virsh virsh
virt virt
virtio
Virtio Virtio
virtio
virtualized virtualized
vlan vlan
Vlan Vlan
@ -734,16 +725,16 @@ volumegroup
volumev volumev
vPC vPC
vRAN vRAN
vswitch
vSwitch vSwitch
vswitch
VTx VTx
vxlan vxlan
wadcert wadcert
warmStart warmStart
webhook webhook
Webhook Webhook
webserver
Webserver Webserver
webserver
wget wget
windriver windriver
winpty winpty
@ -760,4 +751,5 @@ yaml
yml yml
yums yums
zoneinfo zoneinfo
zuul zuul
µs

View File

@ -58,6 +58,7 @@ commands =
[testenv:spellcheck] [testenv:spellcheck]
deps = deps =
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
sphinxcontrib-spelling==7.3.2
commands = commands =
sphinx-build -a -E -W --keep-going -d doc/build/doctrees -t starlingx -t openstack -b spelling doc/source doc/build/spelling {posargs} sphinx-build -a -E --keep-going -d doc/build/doctrees -t starlingx -t openstack -t use_spellext -b spelling doc/source doc/build/spelling {posargs}