Documentation should follow established best practices to ensure clarity, consistency, and usefulness: 1. **Use proper link types**: Use relative links for internal resources and absolute HTTP links only for external resources.
Documentation should follow established best practices to ensure clarity, consistency, and usefulness:
Task SDK Overview <../concepts/taskflow.html>
_Task SDK Overview <https://airflow.apache.org/docs/apache-airflow/stable/concepts/taskflow.html>
_
```Write in complete sentences: Ensure all descriptions, especially in API documentation and migration notes, are complete sentences with proper grammar and punctuation.
@task
def process_data(data_path: str, limit: Optional[int] = None) -> Dict[str, Any]:
"""
Process data from the specified path with optional limit.
:param data_path: Path to the data file to process
:param limit: Maximum number of records to process, None for unlimited
:return: Dictionary containing processed results
"""
# Implementation
Document all API variants: Ensure “sub” decorators and related API components (like @task.skip_if
) are documented alongside their parent components.
exampleinclude
instead of literalinclude
to provide “[sources]” links that give users access to complete context and code examples.Following these practices improves documentation usability, making it easier for developers to understand and correctly implement the documented functionality.
Enter the URL of a public GitHub repository