Skip to content
Snippets Groups Projects
Commit d1f53040 authored by Jutta Schnabel's avatar Jutta Schnabel
Browse files

trying to add pandoc

parent a6ce95ef
No related branches found
No related tags found
No related merge requests found
Pipeline #14434 failed
...@@ -9,7 +9,6 @@ cache: ...@@ -9,7 +9,6 @@ cache:
default: default:
before_script: before_script:
- npm install gitbook-cli -g # install gitbook - npm install gitbook-cli -g # install gitbook
- npm install pip
- gitbook fetch 3.2.3 # fetch final stable version - gitbook fetch 3.2.3 # fetch final stable version
- gitbook install # add any requested plugins in book.json - gitbook install # add any requested plugins in book.json
...@@ -25,7 +24,7 @@ test: ...@@ -25,7 +24,7 @@ test:
build: build:
stage: build stage: build
script: script:
- pip install pyyaml - npm install pandoc
- python make_documents.py - python make_documents.py
- pandoc Deliverable_4-8.md -f markdown -t docx -s -o Deliverable_4-8.docx - pandoc Deliverable_4-8.md -f markdown -t docx -s -o Deliverable_4-8.docx
- pandoc Deliverable_4-9.md -f markdown -t docx -s -o Deliverable_4-9.docx - pandoc Deliverable_4-9.md -f markdown -t docx -s -o Deliverable_4-9.docx
......
...@@ -8,13 +8,13 @@ def fulltext_from_filelist(filelistname, onlystatus = ""): ...@@ -8,13 +8,13 @@ def fulltext_from_filelist(filelistname, onlystatus = ""):
while infilename: while infilename:
with open(infilename, "r") as ftext: with open(infilename, "r") as ftext:
addtext = ftext.read() addtext = ftext.read()
info = yaml.load(addtext[addtext.find("---")+3:addtext.find("---", 5)]) #info = yaml.load(addtext[addtext.find("---")+3:addtext.find("---", 5)])
takeit = True takeit = True
if onlystatus: '''if onlystatus:
takeit = False takeit = False
if "status" in info: if "status" in info:
if info["status"] == onlystatus: if info["status"] == onlystatus:
takeit = True takeit = True'''
if takeit: if takeit:
fulltext += addtext[addtext.find("---", 5)+3:len(addtext)] + "\n" fulltext += addtext[addtext.find("---", 5)+3:len(addtext)] + "\n"
infilename = f.readline().rstrip("\n") infilename = f.readline().rstrip("\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment