Skip to content

Commit 0beb74f

Browse files
authored
Update starter pack (#418)
* Add new starter pack workflows * rename README file * Move Diataxis folders to docs dir * Consolidate ignore lists * Move gitignore to docs folder * Add starter pack version of readthedocs.yaml * Remove files not needed by starter pack * Consolidate Makefile * Consolidate conf.py files * Move files to docs/ dir * Remove unneeded files, add starter pack versions * add new requirements file * remove unneeded python module * Remove problematic and unnecessary tests * Fix incorrect path for doc checks * disable automatic checks * Add Makefile wrapper to run commands anywhere * Remove page, not different from Starter Pack * Override SP defaults to retain edit/view source links * remove hardcoded link to bundle.js * Fix cookie banner * Fix feedback button so it points to template * Move remaining js/css files * Various fixes to broken configuration
1 parent dc8671f commit 0beb74f

File tree

339 files changed

+982
-1119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+982
-1119
lines changed
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
name: Main Documentation Checks
1+
name: Automatic doc checks
2+
3+
#on:
4+
# push:
5+
# branches: [ main ]
6+
# pull_request:
7+
# paths:
8+
# - 'docs/**' # Only run on changes to the docs directory
9+
10+
workflow_dispatch:
11+
# Manual trigger
212

3-
on:
4-
- workflow_dispatch
513

614
concurrency:
715
group: ${{ github.workflow }}-${{ github.ref }}
8-
cancel-in-progress: true
16+
cancel-in-progress: true
917

1018
jobs:
1119
documentation-checks:
1220
uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
1321
with:
14-
working-directory: '.'
22+
working-directory: 'docs'
23+
fetch-depth: 0

.github/workflows/cla-check.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
---
1+
# This workflow checks if the contributor has signed the Canonical Contributor Licence Agreement (CLA)
2+
name: Canonical Contributor Licence Agreement check
23

3-
name: cla-check
4-
5-
on: [pull_request_target]
4+
on:
5+
pull_request:
6+
branches: [main]
67

78
jobs:
89
cla-check:

.readthedocs.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ build:
1212
python: "3.11"
1313
jobs:
1414
post_checkout:
15-
- python3 .sphinx/build_requirements.py
16-
apt_packages:
17-
- distro-info
15+
- git fetch --unshallow || true
16+
# Cancel building pull requests when there aren't changed in the docs directory.
17+
# If there are no changes (git diff exits with 0) we force the command to return with 183.
18+
# This is a special exit code on Read the Docs that will cancel the build immediately.
19+
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
20+
- |
21+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- 'docs/' '.readthedocs.yaml';
22+
then
23+
exit 183;
24+
fi
1825
19-
# Build documentation in the docs/ directory with Sphinx
26+
# Build documentation with Sphinx
2027
sphinx:
2128
builder: dirhtml
22-
configuration: conf.py
29+
configuration: docs/conf.py
2330
fail_on_warning: false
2431

2532
# If using Sphinx, optionally build your docs in additional formats such as PDF
@@ -29,4 +36,4 @@ formats:
2936
# Optionally declare the Python requirements required to build your docs
3037
python:
3138
install:
32-
- requirements: .sphinx/requirements.txt
39+
- requirements: docs/requirements.txt

.sphinx/_static/github_issue_links.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

.sphinx/_templates/base.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

.sphinx/build_requirements.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

.sphinx/fonts/Ubuntu-B.ttf

-326 KB
Binary file not shown.

.sphinx/fonts/Ubuntu-R.ttf

-346 KB
Binary file not shown.

.sphinx/fonts/Ubuntu-RI.ttf

-377 KB
Binary file not shown.

.sphinx/fonts/UbuntuMono-R.ttf

-201 KB
Binary file not shown.

0 commit comments

Comments
 (0)