Skip to content

Conversation

@shahar1
Copy link
Contributor

@shahar1 shahar1 commented Dec 27, 2025

replaces: #1307

@shahar1 shahar1 requested review from Copilot and potiuk and removed request for Copilot December 27, 2025 13:58
@shahar1 shahar1 marked this pull request as draft December 27, 2025 14:02
@shahar1 shahar1 marked this pull request as ready for review December 27, 2025 14:06
Copilot AI review requested due to automatic review settings December 27, 2025 14:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a doctoc pre-commit hook to automatically generate and maintain table of contents for long Markdown files in the repository. The hook is configured to run on sphinx_airflow_theme/README.md and CONTRIBUTE.md, limiting TOC depth to level 2 headers.

Key changes:

  • Adds doctoc pre-commit hook configuration with frozen version v2.2.0
  • Generates TOC sections at the beginning of two documentation files
  • Configures maxlevel argument to limit TOC depth to 2 levels

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.pre-commit-config.yaml Adds doctoc hook configuration targeting two specific markdown files with maxlevel=2 argument
sphinx_airflow_theme/README.md Adds auto-generated table of contents section at the file beginning
CONTRIBUTE.md Adds auto-generated table of contents section at the file beginning

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@potiuk potiuk merged commit c16a9ed into main Dec 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants