Links
AI / Agents
gdtest-theme-cosmo
Test site theme cosmo config.
Tests site.theme: ‘cosmo’. The site should render with the Cosmo Bootstrap theme. All pages should apply the theme consistently.
Source files
gdtest_theme_cosmo/
__init__.py
"""Package testing site theme cosmo config."""
__all__ = ["style", "theme"]
def style(text: str) -> str:
"""Apply a style transformation to the text.
Parameters
----------
text : str
The text to style.
Returns
-------
str
The styled text.
Examples
--------
>>> style("hello")
'HELLO'
"""
return text.upper()
def theme(name: str) -> dict:
"""Get a theme configuration by name.
Parameters
----------
name : str
The name of the theme.
Returns
-------
dict
A dictionary of theme settings.
Examples
--------
>>> theme("dark")
{'name': 'dark', 'bg': '#000'}
"""
return {"name": name, "bg": "#000"}README.md
# gdtest-theme-cosmo Test site theme cosmo config.
great-docs.yml
site: theme: cosmo