Skip to content
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
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ SPHINX_APIDOC_OPTIONS = ignore-module-all,members,show-inheritance
TESTS = src/calendaring_sync/tests
INTEGRATION = $(TESTS)/test_caldav_integration.py $(TESTS)/test_jmap_integration.py
FIXTURES = stalwart cyrus baikal
VALEFILES := $(shell find $(DOCS_DIR) -type f -name "*.rst" -print)
# The news fragments too, so a fragment's wording is checked in its own pull
# request rather than first in the change log a release builds.
VALEFILES := $(shell find $(DOCS_DIR) news/ -type f -name "*.rst" -print)
VALEOPTS ?=

.PHONY: help
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Calendar sync state: sync tokens, object versions, change tracking, and conflict

Part of the [Python Calendaring Ecosystem](https://pycal.org).

[![Documentation](https://readthedocs.org/projects/calendaring-sync/badge/?version=stable)](https://calendaring-sync.readthedocs.io/en/stable/)
[![Documentation](https://app.readthedocs.org/projects/calendaring-sync/badge/?version=stable)](https://calendaring-sync.readthedocs.io/en/stable/)
[![Tests](https://github.com/PyCalendar/calendaring-sync/actions/workflows/tests.yml/badge.svg)](https://github.com/PyCalendar/calendaring-sync/actions/workflows/tests.yml)
[![codecov](https://codecov.io/gh/PyCalendar/calendaring-sync/branch/main/graph/badge.svg)](https://codecov.io/gh/PyCalendar/calendaring-sync)
[![codecov](https://codecov.io/gh/PyCalendar/calendaring-sync/branch/main/graph/badge.svg)](https://app.codecov.io/gh/PyCalendar/calendaring-sync)
[![REUSE status](https://api.reuse.software/badge/github.com/PyCalendar/calendaring-sync)](https://api.reuse.software/info/github.com/PyCalendar/calendaring-sync)
[![License: AGPL-3.0-or-later](https://img.shields.io/badge/License-AGPL%203.0--or--later-blue.svg)](https://github.com/PyCalendar/calendaring-sync/blob/main/LICENSE)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/rtd-pr-previews.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!--- SPDX-FileCopyrightText: 2026 calendaring-sync contributors -->
<!--- SPDX-License-Identifier: AGPL-3.0-or-later -->
<p>Pull request previews by <a href="https://readthedocs.org/">Read the Docs</a>.</p>
<p>Pull request previews by <a href="https://about.readthedocs.com/">Read the Docs</a>.</p>
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
linkcheck_retries = 2

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"python": ("https://docs.python.org/3/", None),
"caldav": ("https://caldav.readthedocs.io/stable/", None),
"calendaring_jmap": ("https://calendaring-jmap.readthedocs.io/en/stable/", None),
}
Expand Down
2 changes: 1 addition & 1 deletion docs/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ The ``docs`` group installs Vale, so run:

make vale

It checks every page with the Microsoft style package, calendaring-sync's own rules in :file:`docs/styles/calendaring-sync/`, and the words in :file:`docs/styles/config/vocabularies/calendaring-sync/accept.txt`, which catch many of the rules above. CI fails on an error and shows warnings too, as ``make vale VALEOPTS="--minAlertLevel='warning'"`` does. To check one page, add ``VALEFILES="docs/index.rst"``.
It checks every page and every news fragment with the Microsoft style package, calendaring-sync's own rules in :file:`docs/styles/calendaring-sync/`, and the words in :file:`docs/styles/config/vocabularies/calendaring-sync/accept.txt`, which catch many of the rules above. CI fails on an error and shows warnings too, as ``make vale VALEOPTS="--minAlertLevel='warning'"`` does. To check one page, add ``VALEFILES="docs/index.rst"``.

Where a page has to break a rule, such as a diagram's source or a sentence naming a word the rules forbid, turn that one rule off around it with ``.. vale RULE = NO`` and back on with ``.. vale RULE = YES``, or all of them with ``.. vale off`` and ``.. vale on``.

Expand Down
13 changes: 11 additions & 2 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ Cut a release

This writes the new section into ``docs/changelog.rst`` and deletes the fragments it consumed. Review the diff: towncrier orders the entries in each category by issue number, not in the order the fragments were added.

#. Check the new section the way CI will, since an error in it fails the release's docs job:

.. code-block:: bash

make vale VALEOPTS="--minAlertLevel='warning'"
make html

Fix any error in ``docs/changelog.rst`` itself before you commit.

#. Commit directly to ``main``, the one exception :ref:`commits-and-prs` makes to going through a pull request: the commit is mechanical, with nothing for a reviewer to review.

.. code-block:: bash
Expand All @@ -43,7 +52,7 @@ Cut a release
git commit -m "chore: build 1.2.0 changelog"
git push

#. Tag the commit you pushed, and push the tag:
#. Once CI is green on the commit you pushed, tag it and push the tag:

.. code-block:: bash

Expand All @@ -52,7 +61,7 @@ Cut a release

Pushing the tag triggers the ``release`` GitHub Actions workflow: it runs the unit tests, the integration tests against every server, and the docs build, and only if all of them pass, builds the package, publishes to PyPI through trusted publishing, and creates a GitHub release that links this release's change log on Read the Docs. Nothing past the tag push is manual.

Read the Docs builds the new version from the same tag push.
Read the Docs builds the new version from the same tag push: an automation rule activates every tag that looks like a version, and ``stable`` follows the newest one.

Dependency maintenance
======================
Expand Down
Loading