Skip to content

Commit

Permalink
Merge branch 'master' into fix/copy_extension_relations
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Sep 12, 2023
2 parents 9c95954 + 910ce03 commit d87b270
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Docs

on: [push, pull_request]

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

jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: python -m pip install -r docs/requirements.txt
- name: Build docs
run: |
cd docs
make html
spelling:
runs-on: ubuntu-latest
name: spelling
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: python -m pip install -r docs/requirements.txt
- name: Check spelling
run: |
cd docs
make spelling
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ help:

.PHONY: help Makefile

spelling:
$(SPHINXBUILD) -b spelling "$(SOURCEDIR)" $(BUILDDIR)/spelling $(SPHINXOPTS) $(O)

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx
sphinxcontrib-spelling
9 changes: 9 additions & 0 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ Settings for djangocms Versioning

The latest version (which is not a source of a newer version) can always be
deleted (if the user has the appropriate rights).


.. py:attribute: DJANGOCMS_VERSIONING_LOCK_VERSIONS
Defaults to ``False``
This setting controls if draft versions are locked. If they are, only the user
who created the draft can change the draft. See :ref:`locking versions` for more
details.

0 comments on commit d87b270

Please sign in to comment.