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

chore: release 1.8.4 #1331

Merged
merged 3 commits into from
Jan 14, 2025
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
48 changes: 47 additions & 1 deletion docs/source/configuration/multiversion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,53 @@ For example, if you want to build docs for the tags ``3.22.0`` and ``3.21.0``, `
The extension allows configuring additional settings.
To know more about them, refer to `sphinx-multiversion documentation <https://holzhaus.github.io/sphinx-multiversion/master/configuration.html>`_.

Listing new versions from an external URL
-----------------------------------------

Multiversion configuration can be loaded from an external URL.
The following example shows how to load the multiversion configuration in the ``conf.py`` file:

.. code-block:: python

# Load the multiversion configuration from an external URL
VERSIONS_URL = "https://<URL>/versions.json"
MULTIVERSION_CONFIG = fetch_multiversion_configuration(VERSIONS_URL)

# Builds documentation for the following tags and branches
TAGS = MULTIVERSION_CONFIG.get("tags", [])
BRANCHES = MULTIVERSION_CONFIG.get("branches", [])

# Sets the latest version
LATEST_VERSION = MULTIVERSION_CONFIG.get("latest", "master")

# Defines unstable versions
UNSTABLE_VERSIONS = MULTIVERSION_CONFIG.get("unstable", [])

# Defines deprecated versions
DEPRECATED_VERSIONS = MULTIVERSION_CONFIG.get("deprecated", [])

# Sets custom build flags
FLAGS = ["theme"]

The JSON file used for configuration must follow this structure:

.. code-block:: json

{
"tags": [],
"branches": ["master", "branch-1.8"],
"latest": "branch-1.8",
"unstable": ["master"],
"deprecated": []
}

- **tags:** List of Git tags to build documentation for.
- **branches:** List of Git branches to build documentation for.
- **latest:** The version considered as the latest, used as the default version.
- **unstable:** List of versions marked as unstable (e.g., under development).
- **deprecated:** List of versions marked as deprecated.


Defining a stable URL
---------------------

Expand Down Expand Up @@ -87,7 +134,6 @@ By doing so, the warning message that appears at the top of the page will change

You are viewing documentation for a deprecated version of <PROJECT_NAME>. Switch to the latest stable version.


Previewing local changes with multiversion
------------------------------------------

Expand Down
16 changes: 16 additions & 0 deletions docs/source/upgrade/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.8.4 - 14 Jan 2024

### Added

- [#1277](https://github.com/scylladb/sphinx-scylladb-theme/pull/1289): Added a troubleshooting note for users encountering issues with keyring and Poetry.
- [#1302](https://github.com/scylladb/sphinx-scylladb-theme/pull/1302): Introduced Mermaid.js support for rendering diagrams from text.
- [#1303](https://github.com/scylladb/sphinx-scylladb-theme/pull/1303): Implemented a helper to fetch multiversion data from a remote URL.
- [#1314](https://github.com/scylladb/sphinx-scylladb-theme/pull/1314): Updated the user interface, including the homepage, sidebars, and breadcrumbs.
- [#1316](https://github.com/scylladb/sphinx-scylladb-theme/pull/1316): Added a license banner to announce changes to ScyllaDB’s licensing and versioning policy.
- [#1316](https://github.com/scylladb/sphinx-scylladb-theme/pull/1316): Added an option to copy the anchor link when hovering over a heading.
- [#1330](https://github.com/scylladb/sphinx-scylladb-theme/pull/1329): Added an option to override the multiversion redirect for the main domain, enabling redirection of `docs.scylladb.com/manual` to `docs.scylladb.com/manual/stable` instead of `docs.scylladb.com/stable`.

### Fixed

- [#1330](https://github.com/scylladb/sphinx-scylladb-theme/pull/1330): Resolved an issue with the alert banner position.

## 1.8.3 - 25 Oct 2024

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sphinx-scylladb-theme"
version = "1.8.2"
version = "1.8.4"
description = "A Sphinx Theme for ScyllaDB documentation projects"
authors = ["David García <[email protected]>"]
exclude = [".github", "config", "docs", "extensions", ".postcss.config.js", ".prettierrc.json", "deploy.sh", "src", "package.json", "package-lock.json"]
Expand Down
Loading