Skip to content

Commit 49e6d80

Browse files
committed
use pandoc from OS
1 parent 80872ff commit 49e6d80

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

documentation-generator/run.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
FILTER_EXE = os.path.join(TOOLS_PATH, "filter.py")
3333
POSTPROCESSOR_EXE = os.path.join(TOOLS_PATH, "postprocessor.py")
3434
PANDOC_EXE = "pandoc"
35-
PANDOC_DOWNLOAD = ("https://github.com/jgm/pandoc/releases/download/"
36-
"2.18/pandoc-2.18-1-amd64.deb")
37-
PANDOC_SHA256 = ("bc6e8e401720d7cec28c230a0cb6f8bc"
38-
"f3ffb502155e7c9372ca15fbf9509aed")
3935
BRANCH_ORDERING = [ # Format: (REGEX, ORDER, DEFAULT)
4036
(r"v?\d+(?:\.\d+)*(?:\.x)*", 0, True),
4137
(r".*", 1, False)]
@@ -76,14 +72,7 @@ def convert_doc(src_path, to_path, branch, branches):
7672
def install_dependencies():
7773
subprocess.run([sys.executable, "-m", "pip", "install", "beautifulsoup4"],
7874
check=True)
79-
with TemporaryDirectory() as temp:
80-
subprocess.run(["curl", "--location", "--output", "pandoc.deb",
81-
PANDOC_DOWNLOAD], check=True, cwd=temp)
82-
subprocess.run(["sha256sum", "--check", "--strict", "--quiet"],
83-
input="%s *pandoc.deb" % PANDOC_SHA256, text=True,
84-
check=True, cwd=temp)
85-
subprocess.run(["sudo", "apt", "install", "--assume-yes",
86-
"./pandoc.deb"], check=True, cwd=temp)
75+
subprocess.run(["sudo", "apt", "install", "--assume-yes", "pandoc"], check=True)
8776

8877

8978
def natural_sort_key(s):

0 commit comments

Comments
 (0)