Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Astrodata Squeleton Documentation
Astrodata Squeleton Documentation

🚀 Getting Started

  • AstroData Onboarding Guide

📦 Templates

  • Data Science Template
  • Sphinx
    • Sphinx Introduction
    • Sphinx Cheat Sheet
    • Sphinx Advanced tips
      • Convert a Word File to reStructuredText with Pandoc
      • Adding Google Analytics to Sphinx
      • Get rid of “duplicate label” warning in Sphinx

🛠️ Workflow & Quality

  • Best Practices
  • Docker & CI/CD
  • LaTeX
    • LaTeX Setup
Back to top
View this page
Edit this page

Get rid of “duplicate label” warning in Sphinx¶

Authors:

Cao Tri DO <caotri.do@astrodata.fr>

Version:

2026-02

source: https://stackoverflow.com/questions/62631362/get-rid-of-duplicate-label-warning-in-sphinx

sphinx.ext.autosectionlabel is producing these warnings. I had the same issue and managed to reduce the number of warnings by adding

suppress_warnings = ['autosectionlabel.*']
Next
Best Practices
Previous
Adding Google Analytics to Sphinx
Copyright © 2026, Cao Tri DO, Astrodata
Made with Sphinx and @pradyunsg's Furo