mirror of https://git.sr.ht/~garritfra/sabre
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
364 B
13 lines
364 B
3 years ago
|
import subprocess
|
||
|
import os
|
||
|
|
||
|
os.system("mkdir ./book/latest")
|
||
|
os.system("mdbook build --dest-dir './book/latest'")
|
||
|
tags = subprocess.run(["git", "tag"], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
||
|
|
||
|
for tag in tags.split("\n"):
|
||
|
if tag == "":
|
||
|
continue
|
||
|
os.system("git checkout " + tag)
|
||
|
os.system("mdbook build --dest-dir './book/" + tag + "'")
|