Skip to content

Commit

Permalink
chore: fix pandoc command not being valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow53 committed May 8, 2023
1 parent d5cc689 commit 1e596f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 7 additions & 11 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,13 @@


def builder_inited_handler(app):
subprocess.call(
[
"python",
"-m",
"pandoc",
"--from=markdown",
"--to=rst",
f"--output={dirname}/changes.rst",
f"{dirname}/../../CHANGELOG.md",
]
)
import pandoc

infile = f"{dirname}/../../CHANGELOG.md"
outfile = f"{dirname}/changes.rst"

input = pandoc.read(source=None, file=infile, format="markdown")
pandoc.write(input, file=outfile, format="rst")

subprocess.call(
[
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ to get started.
troubleshooting
exercises
migration
changes

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit 1e596f4

Please sign in to comment.