Skip to content

Commit

Permalink
Add script for conversion of spec to docx.
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Jul 7, 2019
1 parent e0435b6 commit 9e56938
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/.gitignore
@@ -0,0 +1 @@
*.docx
26 changes: 26 additions & 0 deletions tools/convert.py
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
"""Convert Specification to .docx.
Requires https://pandoc.org/ to be on path.
"""
import os
import subprocess

infiles = [
"index.md",
"features.md",
"concept.md",
"specification.md",
"implementations.md",
"license.md",
]


def main():
os.chdir("../docs")
cmd = ["pandoc", "-s", "-o", "../tools/iscc-specification.docx"] + infiles
subprocess.run(cmd)


if __name__ == "__main__":
main()

0 comments on commit 9e56938

Please sign in to comment.