Build Failed!

11 Mar 2025 20:04:58 UTC
Unless all site previews are broken, this is a problem with the topos-theme package.
Configuration
{'html_theme': 'topos-theme'}
Output
======================================== stdout ========================================
Running Sphinx v8.2.3
loading translations [en]... locale_dir /home/runner/work/sphinx-themes.org/sphinx-themes.org/sample-docs/locales/en/LC_MESSAGES does not exist
locale_dir /home/runner/work/sphinx-themes.org/sphinx-themes.org/sample-docs/locales/en/LC_MESSAGES does not exist
done
making output directory... done
locale_dir /home/runner/work/sphinx-themes.org/sphinx-themes.org/sample-docs/locales/en/LC_MESSAGES does not exist
loading intersphinx inventory 'sphinx' from https://www.sphinx-doc.org/objects.inv ...
intersphinx inventory has moved: https://www.sphinx-doc.org/objects.inv -> https://www.sphinx-doc.org/en/master/objects.inv
locale_dir /home/runner/work/sphinx-themes.org/sphinx-themes.org/sample-docs/locales/en/LC_MESSAGES does not exist
building [mo]: targets for 0 po files that are out of date
writing output... 
building [dirhtml]: targets for 18 source files that are out of date
updating environment: locale_dir /home/runner/work/sphinx-themes.org/sphinx-themes.org/sample-docs/locales/en/LC_MESSAGES does not exist
[new config] 18 added, 0 changed, 0 removed
reading sources... [  6%] index
reading sources... [ 11%] kitchen-sink/admonitions
reading sources... [ 17%] kitchen-sink/api
reading sources... [ 22%] kitchen-sink/blocks
reading sources... [ 28%] kitchen-sink/generic
reading sources... [ 33%] kitchen-sink/images
reading sources... [ 39%] kitchen-sink/index
reading sources... [ 44%] kitchen-sink/lists
reading sources... [ 50%] kitchen-sink/really-long
reading sources... [ 56%] kitchen-sink/structure
reading sources... [ 61%] kitchen-sink/tables
reading sources... [ 67%] kitchen-sink/typography
reading sources... [ 72%] long-page
reading sources... [ 78%] placeholder-four
reading sources... [ 83%] placeholder-one
reading sources... [ 89%] placeholder-three
reading sources... [ 94%] placeholder-two
reading sources... [100%] really-long-title

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... 
copying static files... 
Writing evaluated template result to /home/runner/work/sphinx-themes.org/sphinx-themes.org/public/sample-sites/topos-theme/_static/language_data.js
Writing evaluated template result to /home/runner/work/sphinx-themes.org/sphinx-themes.org/public/sample-sites/topos-theme/_static/documentation_options.js
Writing evaluated template result to /home/runner/work/sphinx-themes.org/sphinx-themes.org/public/sample-sites/topos-theme/_static/basic.css
Writing evaluated template result to /home/runner/work/sphinx-themes.org/sphinx-themes.org/public/sample-sites/topos-theme/_static/css/theme.css
copying static files: done
copying extra files... 
copying extra files: done
copying assets: done
writing output... [  6%] index

======================================== stderr ========================================
/usr/lib/python3.12/code.py:docstring of codeop.compile_command:7: ERROR: Unexpected indentation. [docutils]
/usr/lib/python3.12/code.py:docstring of codeop.compile_command:8: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]

Theme error!

Versions
========

* Platform:         linux; (Linux-6.8.0-1021-azure-x86_64-with-glibc2.39)
* Python version:   3.12.3 (CPython)
* Sphinx version:   8.2.3
* Docutils version: 0.21.2
* Jinja2 version:   3.1.6
* Pygments version: 2.19.1

Last Messages
=============

    Writing evaluated template result to /home/runner/work/sphinx-themes.org/sphinx-themes.org/public/sample-sites/topos-theme/_static/documentation_options.js
    Writing evaluated template result to /home/runner/work/sphinx-themes.org/sphinx-themes.org/public/sample-sites/topos-theme/_static/basic.css
    Writing evaluated template result to /home/runner/work/sphinx-themes.org/sphinx-themes.org/public/sample-sites/topos-theme/_static/css/theme.css
    copying static files: done
    copying extra files...
    copying extra files: done
    copying assets: done
    writing output... [  6%]
    index

Loaded Extensions
=================

* sphinx.ext.mathjax (8.2.3)
* alabaster (0.7.16)
* sphinxcontrib.applehelp (2.0.0)
* sphinxcontrib.devhelp (2.0.0)
* sphinxcontrib.htmlhelp (2.1.0)
* sphinxcontrib.serializinghtml (2.0.0)
* sphinxcontrib.qthelp (2.0.0)
* sphinx.ext.autodoc.preserve_defaults (8.2.3)
* sphinx.ext.autodoc.type_comment (8.2.3)
* sphinx.ext.autodoc.typehints (8.2.3)
* sphinx.ext.autodoc (8.2.3)
* sphinx.ext.extlinks (8.2.3)
* sphinx.ext.intersphinx (8.2.3)
* sphinx.ext.viewcode (8.2.3)
* sphinx.ext.todo (8.2.3)
* topos_theme (0.0.14)

Traceback
=========

    Traceback (most recent call last):
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/html/__init__.py", line 1212, in handle_page
        output = self.templates.render(templatename, ctx)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/jinja2glue.py", line 217, in render
        return self.environment.get_template(template).render(context)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/jinja2/environment.py", line 1295, in render
        self.environment.handle_exception()
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/jinja2/environment.py", line 942, in handle_exception
        raise rewrite_traceback_stack(source=source)
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/themes/basic/page.html", line 2, in top-level template code
        {%- extends "layout.html" %}
        ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/topos_theme/layout.html", line 1, in top-level template code
        {%- extends "basic/layout.html"  %}
        ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/themes/basic/layout.html", line 103, in top-level template code
        {%- block css %}
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/topos_theme/layout.html", line 8, in block 'css'
        <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    jinja2.exceptions.UndefinedError: 'style' is undefined
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/cmd/build.py", line 432, in build_main
        app.build(args.force_all, args.filenames)
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/application.py", line 426, in build
        self.builder.build_update()
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 375, in build_update
        self.build(
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 454, in build
        self.write(docnames, updated_docnames, method)
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 735, in write
        self.write_documents(docnames)
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 749, in write_documents
        self._write_serial(sorted_docnames)
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 768, in _write_serial
        self.write_doc(docname, doctree)
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/html/__init__.py", line 677, in write_doc
        self.handle_page(docname, ctx, event_arg=doctree)
      File "/home/runner/work/sphinx-themes.org/sphinx-themes.org/.nox/publish/lib/python3.12/site-packages/sphinx/builders/html/__init__.py", line 1228, in handle_page
        raise ThemeError(msg) from exc
    sphinx.errors.ThemeError: An error happened in rendering the page index.
    Reason: UndefinedError("'style' is undefined")


The full traceback has been saved in:
/tmp/sphinx-err-fml4hh1z.log

To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.