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

doc: add initial documentation setup #48

Merged
merged 1 commit into from
Apr 17, 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
16 changes: 16 additions & 0 deletions .github/workflows/automatic-doc-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Documentation checks

on:
- push
- pull_request
- workflow_dispatch

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
documentation-checks:
uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
with:
working-directory: 'doc'
4 changes: 2 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
run: make doc

- name: Print warnings
run: if [ -s .sphinx/warnings.txt ]; then cat .sphinx/warnings.txt; exit 1; fi
run: if [ -s doc/.sphinx/warnings.txt ]; then cat doc/.sphinx/warnings.txt; exit 1; fi

- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: documentation
path: doc/html
path: doc/_build
32 changes: 0 additions & 32 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,3 @@ jobs:

- name: Unit tests (all)
run: make check

documentation:
name: Documentation tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get install aspell aspell-en
sudo snap install mdl

- name: Run markdown linter
run: |
make doc-lint

- name: Run spell checker
run: |
make doc-spellcheck

- name: Run inclusive naming checker
uses: get-woke/woke-action@v0
with:
fail-on-error: true
woke-args: "*.md **/*.md -c https://github.com/canonical-web-and-design/Inclusive-naming/raw/main/config.yml"

- name: Run link checker
# This can fail intermittently due to external resources being unavailable.
continue-on-error: true
run: |
make doc-linkcheck
34 changes: 0 additions & 34 deletions .sphinx/.markdownlint/doc-lint.sh

This file was deleted.

Empty file.
44 changes: 0 additions & 44 deletions .sphinx/.markdownlint/rules.rb

This file was deleted.

12 changes: 0 additions & 12 deletions .sphinx/.markdownlint/style.rb

This file was deleted.

6 changes: 0 additions & 6 deletions .sphinx/_extra/versions.json

This file was deleted.

176 changes: 0 additions & 176 deletions .sphinx/_static/custom.css

This file was deleted.

Loading
Loading