Links
AI / Agents
gdtest-sec-faq
Test custom FAQ section.
Custom ‘FAQ’ section. faq/ dir with question-based pages. Should appear as a separate nav section.
Source files
faq/
configuration.qmd
--- title: Configuration FAQ --- # Configuration FAQ Frequently asked questions about configuring the package.
installation.qmd
--- title: Installation FAQ --- # Installation FAQ Frequently asked questions about installing the package.
troubleshooting.qmd
--- title: Troubleshooting FAQ --- # Troubleshooting FAQ Frequently asked questions about troubleshooting common issues.
gdtest_sec_faq/
__init__.py
"""Test package for custom FAQ section.""" from .core import answer, ask __all__ = ["answer", "ask"]
core.py
"""Core ask/answer functions."""
def ask(question: str) -> str:
"""Ask a question and get a response.
Parameters
----------
question : str
The question to ask.
Returns
-------
str
A response to the question.
Examples
--------
>>> ask("How do I install?")
'See the installation guide.'
"""
return "See the installation guide."
def answer(question_id: int) -> str:
"""Retrieve the answer for a specific question by ID.
Parameters
----------
question_id : int
The numeric ID of the question.
Returns
-------
str
The answer text for the given question ID.
Examples
--------
>>> answer(1)
'Use pip install to get started.'
"""
return "Use pip install to get started."README.md
# gdtest-sec-faq Test custom FAQ section.
great-docs.yml
sections:
- title: FAQ
dir: faq