ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs ScyllaDB Sphinx Theme Upgrade guides Migrating from 1.1 to 1.2

Caution

You're viewing documentation for a previous version of ScyllaDB Sphinx Theme. Switch to the latest stable version.

Migrating from 1.1 to 1.2¶

This guide explains how to upgrade the version of the ScyllaDB Sphinx Theme.

How to check your current theme version¶

The theme version is displayed in the footer of the project’s documentation site.

../_images/version.png

If your project theme’s version is >=1.1, follow this guide to get the latest version.

Upgrade to version 1.2¶

Here are the main breaking changes between the 1.1 and 1.2 versions.

  1. Update the following Python dependencies in docs/pyproject.toml:

    sphinx-scylladb-theme = "~1.2.1"
    sphinx-multiversion-scylla = "~0.2.11"
    sphinx-sitemap = "2.2.0"
    
  2. Edit docs/Makefile:

    1. Replace:

      POETRY = $(HOME)/.local/bin/poetry
      

      With:

      POETRY = poetry
      
      # Windows variables
      ifeq ($(OS),Windows_NT)
          POETRY = $(APPDATA)\Python\Scripts\poetry
      endif
      
    1. Add:

       # Setup commands
      .PHONY: setupenv
      setupenv:
          pip install -q poetry
      
  3. Remove the files .github/workflows/docs-*.yml. Then, copy the new workflows in the .github/workflows folder. You can download the latest workflows here.

    If the default branch is not master or the docs are not under the docs folder, the workflows to match the project configuration. For example:

    on:
    push:
        branches:
        - master # edit this line
        paths:
        - "docs/**" # edit this line
    
  4. Commit and push the changes to GitHub (default branch).

To check if the upgrade completed successfully, run the command make preview. Then, check if the site footer displays version 1.2 or greater.

Optional features¶

Listing unstable versions¶

To list versions as unstable:

  1. Define in your conf.py the list UNSTABLE_VERSIONS:

    # Set which versions are not released yet.
    UNSTABLE_VERSIONS = ["master"]
    
  2. Add a new option versions_unstable in html_options:

    html_theme_options = {
        "versions_unstable": UNSTABLE_VERSIONS,
        ...
    }
    

Sitemap¶

Sitemaps are useful for search engines to index content. The toolchain now automatically generates a sitemap for the site.

To install the sitemap extension, list it the conf.py file:

extensions = [
    ...,
    "sphinx_sitemap",
]

If the project has the multiversion extension enabled, add the following line at the end of the file:

sitemap_url_scheme = "stable/{link}"

Changes in custom landing pages¶

If your project uses the Custom landing page feature, add the following lines at the top of the file docs/source/index.rst:

:hide-sidebar:
:hide-secondary-sidebar:

Was this page helpful?

PREVIOUS
Migrating from 1.2 to 1.3
NEXT
Migrating from 1.0 to 1.1
  • Create an issue
  • Edit this page

On this page

  • Migrating from 1.1 to 1.2
    • How to check your current theme version
    • Upgrade to version 1.2
    • Optional features
      • Listing unstable versions
      • Sitemap
      • Changes in custom landing pages
ScyllaDB Sphinx Theme
  • 1.3
    • 1.8
    • 1.7
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.2
    • 1.1
  • Getting started
    • Toolchain
    • Installation
    • Quickstart
  • Configuration
    • Template options
    • Page options
    • Multiversion options
    • Markdown support
    • Redirects support
    • Search support
    • Troubleshooting
  • Commands
  • Deployment
    • Production deployment
    • Pull requests previews
  • Examples
    • Admonitions
    • Collapse
    • Code blocks
    • Glossary
    • Headings
    • Hero box
    • Includes
    • Images
    • Labels
    • Links
    • Lists
    • Panel box
    • Substitutions
    • Tables
    • Tabs
    • Text
    • TOC
    • Topic box
    • Versions
  • Upgrade guides
    • Migrating from 1.2 to 1.3
    • Migrating from 1.1 to 1.2
    • Migrating from 1.0 to 1.1
    • Migrating from 0.x to 1.0
    • Changelog
  • Contribute
    • Contribute to the documentation
    • Contribute to the theme
    • Source Code
Docs Tutorials University Contact Us About Us
© 2025 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 01 Apr 2025.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.6
Ask AI