#294
gdtest_inline_never
OK
CONFIG
Tests inline_methods: false (always split to separate pages)
Tests inline_methods: false which forces all class methods to be split into separate pages regardless of method count. Even TinyWidget with 2 methods gets a companion method section.
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
K56
K56inline_methods: false (always split)config
Source Files
gdtest_inline_never/
__init__.py
"""Package testing inline_methods: false (always split)."""
__version__ = "0.1.0"
__all__ = ["TinyWidget", "MediumService", "standalone_func"]
class TinyWidget:
"""
A class with only two methods—still gets split with inline_methods: false.
Parameters
----------
label
Display label for the widget.
"""
def __init__(self, label: str):
self.label = label
def show(self) -> str:
"""
Show the widget.
Returns
-------
str
Rendered representation.
"""
return f"[{self.label}]"
def hide(self) -> None:
"""Hide the widget from display."""
pass
class MediumService:
"""
A service class with a moderate number of methods.
Parameters
----------
host
Service hostname.
port
Service port number.
"""
def __init__(self, host: str, port: int = 8080):
self.host = host
self.port = port
def start(self) -> None:
"""Start the service."""
pass
def stop(self) -> None:
"""Stop the service."""
pass
def restart(self) -> None:
"""Restart the service."""
pass
def status(self) -> str:
"""
Get the service status.
Returns
-------
str
Current status (running, stopped, error).
"""
return "running"
def standalone_func(value: str) -> str:
"""
Process a standalone value.
Parameters
----------
value
Input string to process.
Returns
-------
str
Processed output string.
"""
return value.upper()README.md
# gdtest-inline-never Package testing `inline_methods: false`. Both TinyWidget (2 methods) and MediumService (4 methods) get split into separate method pages, even though they would normally stay inline with the default threshold.
great-docs.yml
inline_methods: false