Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
8 changes: 5 additions & 3 deletions .github/workflows/automatic-doc-checks.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Main Documentation Checks
#
name: Automatic doc checks

on:
push:
branches: [main]
branches: [ main ]
pull_request:
paths:
- "docs/**" # Only run on changes to the docs directory
- 'docs/**' # Only run on changes to the docs directory

workflow_dispatch:
# Manual trigger

Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/check-removed-urls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Check for removed URLs

on:
workflow_call:
pull_request:
branches: [main]

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
uses: actions/checkout@v5
with:
# This implicitly gets the PR branch. Making it explicit causes problems
# with private forks, but it is equivalent to the following:
# repository: ${{ github.event.pull_request.head.repo.full_name }}
# ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
path: compare
- name: Checkout base branch
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.base.ref }}
repository: ${{ github.event.pull_request.base.repo.full_name }}
fetch-depth: 0
path: base
- uses: actions/setup-python@v6
- name: Build docs
run: |
for dir in compare base; do
pushd ${dir}/docs
make html
popd
done
- name: Generate current URLs list
run: |
for dir in compare base; do
pushd ${dir}/docs
find ./_build/ -name '*.html' \
| sed 's|/_build||;s|/index.html$|/|;s|.html$||' \
| sort > urls.txt
popd
done
- name: Compare URLs
run: |
BASE_URLS_PATH="base/docs/urls.txt"
COMPARE_URLS_PATH="compare/docs/urls.txt"
removed=$(comm -23 ${BASE_URLS_PATH} ${COMPARE_URLS_PATH} \
| grep -v '^\./explanation/security/full-disk-encryption/$' )
if [ -n "$removed" ]; then
echo "The following URLs were removed:"
echo "$removed"
echo "Please ensure removed pages are redirected"
exit 1
fi
17 changes: 17 additions & 0 deletions .github/workflows/cla-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This workflow checks if the contributor has signed the Canonical Contributor Licence Agreement (CLA)
name: Canonical Contributor Licence Agreement check

on:
pull_request:
branches: [main]

permissions:
contents: read
pull-requests: read

jobs:
cla-check:
runs-on: ubuntu-latest
steps:
- name: Check if CLA signed
uses: canonical/has-signed-canonical-cla@v2
11 changes: 11 additions & 0 deletions docs/.custom_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Permalink
PKI
POSIX
pre
preboot
prometheus
radosgw
ReadMe
Expand Down Expand Up @@ -192,6 +193,7 @@ API
APIs
arounds
Auth
AZs
auth
authorization
auto-generated
Expand All @@ -204,6 +206,7 @@ catalog
centralized
Centralized
ceph
cephadm
CephFS
CephHealthWarning
Cephx
Expand Down Expand Up @@ -280,9 +283,12 @@ manpage
md
mds
MDS
MDSs
mees
mentorship
MgrReports
MGRs
MONs
MiB
MicroCeph
MicroCeph's
Expand Down Expand Up @@ -320,6 +326,7 @@ qemu
radosgw
rbd
RBD
reachability
readme
ReadMe
reST
Expand All @@ -328,6 +335,7 @@ reStructuredText
resync
rgw
RGW
RGWs
RO
rsyslog
RTD
Expand Down Expand Up @@ -389,10 +397,13 @@ Hyperconverged
RadosGW
NICs
OOB
SSDs
SSD
SSHing
unpartitioned
GateWay
Gbps
HDDs
Certbot
LetsEncrypt
utilize
Expand Down
17 changes: 9 additions & 8 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Environment
*env*/
.sphinx/venv/
.venv/

# Sphinx
.sphinx/warnings.txt
.sphinx/.wordlist.dic
.sphinx/.doctrees/
.sphinx/update/
.sphinx/node_modules/
.sphinx/
_dev/warnings.txt
_dev/.wordlist.dic
_dev/.doctrees/
_dev/update/
_dev/node_modules/

# Vale
.sphinx/styles/*
.sphinx/vale.ini
_dev/styles/*
_dev/vale.ini

# Build outputs
_build
Expand Down
Loading
Loading