Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs spec check #707

Merged
merged 23 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/docs-spelling-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Documentation Spelling Check

on:
workflow_dispatch:
pull_request:
paths:
- 'docs/**'

jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install aspell
run: sudo apt-get install aspell aspell-en
- id: spell-check
name: Spell Check
run: make spelling
working-directory: docs/tools
continue-on-error: true
- if: ${{ github.event_name == 'pull_request' && steps.spell-check.outcome == 'failure' }}
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Hi, looks like pyspelling job found some issues, you can check it [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})'
})
1 change: 1 addition & 0 deletions docs/moonray/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
git+https://github.com/canonical/canonical-sphinx@main#egg=canonical-sphinx
sphinx-autobuild
pyspelling
66 changes: 66 additions & 0 deletions docs/tools/.custom_wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiserver
apparmor
AppArmor
autostart
aws
CAPI
Ceph
cgroup
CIDRS
CIDRs
CNI
config
containerd
CoreDNS
CPUs
cpuset
daemonset
datastore
dbus
DNS
dqlite
EasyRSA
etcd
GCP
ghcr
grafana
html
http
https
initialise
juju
kubeconfig
kubectl
kubelet
kubepods
kubernetes
libcontainer
lifecycle
linux
localhost
lxc
LXD
MAAS
Multipass
nameservers
NGINX
OCI
OpenStack
proc
RBAC
regsync
roadmap
Rockcraft
rw
snapd
stackexchange
sys
systemd
TLS
ubuntu
unix
VMs
VMWare
VSphere
www
yaml
3 changes: 1 addition & 2 deletions docs/tools/.sphinx/spellingcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ matrix:
- .custom_wordlist.txt
output: .sphinx/.wordlist.dic
sources:
- _build/**/*.html
- ../_build/**/*.html
pipeline:
- pyspelling.filters.html:
comments: false
Expand All @@ -21,7 +21,6 @@ matrix:
- pre
- spellexception
- link
- title
- div.relatedlinks
- strong.command
- div.visually-hidden
Expand Down
Loading