isso/docs/_isso/remove_heading.py
2018-02-08 22:46:14 +01:00

12 lines
265 B
Python

from docutils import nodes
from sphinx.writers.html import HTMLTranslator
class IssoTranslator(HTMLTranslator):
def visit_title(self, node):
if self.section_level == 1:
raise nodes.SkipNode
HTMLTranslator.visit_title(self, node)