Links
AI / Agents
gdtest-sec-deep
Test custom section with nested subdirectories.
Custom section with nested subdirectories: tutorials/beginner/ and tutorials/advanced/. Deep structure within a custom section.
Source files
gdtest_sec_deep/
__init__.py
"""Test package for custom section with nested subdirectories.""" from .core import learn, test_knowledge __all__ = ["learn", "test_knowledge"]
core.py
"""Core learn/test_knowledge functions."""
def learn(topic: str) -> str:
"""Learn about a specific topic.
Parameters
----------
topic : str
The topic to learn about.
Returns
-------
str
A summary of the learned topic.
Examples
--------
>>> learn("python")
'Learned: python'
"""
return f"Learned: {topic}"
def test_knowledge(quiz: str) -> bool:
"""Test knowledge on a given quiz topic.
Parameters
----------
quiz : str
The quiz topic to test.
Returns
-------
bool
True if the quiz was passed.
Examples
--------
>>> test_knowledge("basics")
True
"""
return Truetutorials/
advanced/
patterns.qmd
--- title: Advanced Patterns --- # Advanced Patterns Explore advanced design patterns and techniques.
beginner/
basics.qmd
--- title: Basics --- # Basics Learn the basic concepts and patterns.
hello.qmd
--- title: Hello World --- # Hello World A beginner tutorial for getting started.
README.md
# gdtest-sec-deep Test custom section with nested subdirectories.
great-docs.yml
sections:
- title: Tutorials
dir: tutorials