Skip to content

Commit

Permalink
fix black errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhue committed Feb 17, 2024
1 parent dc633ef commit 0b28927
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Docs

on:
push:
Expand Down
10 changes: 8 additions & 2 deletions docs/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@
lexer = pygments.lexers.python.PythonLexer()
formatter = pygments.formatters.html.HtmlFormatter(style="dracula")
pygments_css = formatter.get_style_defs()
example_html1 = Markup(pygments.highlight(demo1.read_text("utf8"), lexer, formatter).replace('converged', '<span class="highlighted">converged</span>'))
example_html2 = Markup(pygments.highlight(demo2.read_text("utf8"), lexer, formatter))
example_html1 = Markup(
pygments.highlight(demo1.read_text("utf8"), lexer, formatter).replace(
"converged", '<span class="highlighted">converged</span>'
)
)
example_html2 = Markup(
pygments.highlight(demo2.read_text("utf8"), lexer, formatter)
)

(here / "index.html").write_bytes(
env.get_template("index.html.jinja2")
Expand Down

0 comments on commit 0b28927

Please sign in to comment.