summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTAKAHASHI Shuuji2022-11-29 02:24:45 +0900
committerGitHub2022-11-28 10:24:45 -0700
commitdd21619228976712750a6edafc60a08f2eab761c (patch)
treeb0bfa4e89440fd62f3e78e33950b8cbe01cfce42
parentab1247fd2d1de5265f4bb956dafdbe06cea6efa2 (diff)
downloadtakahe-dd21619228976712750a6edafc60a08f2eab761c.tar.gz
takahe-dd21619228976712750a6edafc60a08f2eab761c.tar.bz2
takahe-dd21619228976712750a6edafc60a08f2eab761c.zip
Fix docs code block and separate docs tests
-rw-r--r--.github/workflows/test-docs.yml23
-rw-r--r--.github/workflows/test.yml8
-rw-r--r--docs/contributing.rst2
3 files changed, 31 insertions, 2 deletions
diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml
new file mode 100644
index 0000000..070ce7a
--- /dev/null
+++ b/.github/workflows/test-docs.yml
@@ -0,0 +1,23 @@
+name: Test Documentation Build
+
+on: [push, pull_request]
+
+jobs:
+ test_docs:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.10"]
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ cache: pip
+ - name: Install dependencies for docs
+ run: |
+ python -m pip install -r docs/requirements.txt
+ - name: Build documentation
+ run: |
+ cd docs && make clean && make html
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e62604e..5122986 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,6 +1,12 @@
name: Test
-on: [push, pull_request]
+on:
+ push:
+ paths-ignore:
+ - 'docs/**'
+ pull_request:
+ paths-ignore:
+ - 'docs/**'
jobs:
test:
diff --git a/docs/contributing.rst b/docs/contributing.rst
index 34a93a7..d7b8842 100644
--- a/docs/contributing.rst
+++ b/docs/contributing.rst
@@ -101,7 +101,7 @@ You will need to run Stator in order to have background actions work::
./manage.py runstator
-Make yourself a superuser account in order to log in:
+Make yourself a superuser account in order to log in::
./manage.py createsuperuser