Skip to content

Commit

Permalink
(sort python imports)
Browse files Browse the repository at this point in the history
  • Loading branch information
agagniere committed Aug 18, 2024
1 parent 682c1bb commit 36745df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion extra/pygment/lexer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pygments.lexer import RegexLexer, bygroups, words, include
from pygments.lexer import RegexLexer, bygroups, include, words
from pygments.token import *


class CustomLexer(RegexLexer):
name = 'Prepro'
aliases = ['prepro']
Expand Down
8 changes: 4 additions & 4 deletions extra/sphinx/preprocessedCodeBlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from docutils import nodes
from docutils.parsers.rst import directives

from myst_parser.parsers.docutils_ import Parser as MystParser

from sphinx.application import Sphinx
from sphinx.util.docutils import SphinxDirective
from sphinx.util.typing import ExtensionMetadata
from sphinx.directives.code import LiteralInclude
from sphinx.directives.other import Include
#from docutils.parsers.rst.directives.misc import Include
from sphinx.util.docutils import SphinxDirective
from sphinx.util.typing import ExtensionMetadata

from myst_parser.parsers.docutils_ import Parser as MystParser

def create_sphinx_design_component(name: str, classes: list[str], rawtext: str = ""):
return nodes.container(rawtext, is_div=True, design_component=name, classes=classes)
Expand Down

0 comments on commit 36745df

Please sign in to comment.