#195
gdtest_theme_lumen
OK
CONFIG
Tests site.theme: 'lumen' config.
Tests site.theme: 'lumen'. Site renders with the Lumen theme.
Build Mode
● Has great-docs.yml
This package ships a pre-supplied config.
The great-docs init step is skipped and
great-docs build uses the spec-defined configuration directly.
Tests specific config options and their rendered output.
Dimensions
Q2
Q2Lumen themetheme
Source Files
gdtest_theme_lumen/
__init__.py
"""Package testing site theme lumen config."""
__all__ = ["illuminate", "dim"]
def illuminate(scene: str) -> str:
"""Illuminate a scene by adding light.
Parameters
----------
scene : str
The scene description to illuminate.
Returns
-------
str
The illuminated scene description.
Examples
--------
>>> illuminate("dark room")
'bright dark room'
"""
return f"bright {scene}"
def dim(brightness: float) -> float:
"""Reduce brightness by half.
Parameters
----------
brightness : float
The current brightness level.
Returns
-------
float
The dimmed brightness level.
Examples
--------
>>> dim(1.0)
0.5
"""
return brightness / 2.0README.md
# gdtest-theme-lumen Test site theme lumen config.
great-docs.yml
site: theme: lumen