"""The ``steps`` directive.fumadocs renders numbered walkthroughs as a rail of circled step numbers. Thereis no Sphinx equivalent, so a thin container directive marks the region and thestylesheet draws the rail from the headings inside it."""fromdocutilsimportnodesfromdocutils.parsers.rstimportDirective__all__=("setup_steps",)classStepsDirective(Directive):"""Wrap nested content so each child heading renders as a numbered step."""has_content=Trueoptional_arguments=0final_argument_whitespace=Falsedefrun(self):container=nodes.container(classes=["fd-steps"])self.state.nested_parse(self.content,self.content_offset,container)return[container]