Skip to content
Browse files

Updates to gitmmd2pdf script for the new alpha directory

  • Loading branch information...
1 parent 434cc56 commit 2af8514ab8a0622783c164d42a5fe9ee1b85f08b @marquezgab marquezgab committed Jul 27, 2011
Showing with 11 additions and 7 deletions.
  1. +9 −5 alpha/README.markdown
  2. +2 −2 alpha/gitmmd2pdf.py
View
14 alpha/README.markdown
@@ -1,12 +1,16 @@
-# gitmmd2pdf.py
+# Alpha
+
+This is a project to convert multimarkdown spec files into multi-page pdfs. This is currently designed around the script gitmmd2pdf.py
+
+## gitmmd2pdf.py
This is a script which converts a multimarkdown file into a multi-page pdf to serve from opencompute.org
Within the <project>/spec directory:
- ../../spec/gitmg2pdf.py -f <spec file>
+ ../../alpha/gitmg2pdf.py -f <spec file>
-# Requirements
+## Requirements
You need [xelatex](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=xetex) installed on your system, with all the latex extras.
@@ -16,11 +20,11 @@ In this directory are the following modified files:
mmd-article-begin-doc.tex
mmd-article-header.tex
-# Fonts
+## Fonts
The script needs the VistaSlabReg and VistaSlabAltReg TrueType fonts installed.
-# Latex packages
+## Latex packages
The list of latex packages required are:
View
4 alpha/gitmmd2pdf.py
@@ -35,8 +35,8 @@ def sync(path, url, repo_name):
# make sure images are present as symlinks in the image directory
lnames = ['OCPlogo_horiz.png','OCPlogo_vert.png']
for l in lnames:
- if os.access('../../spec/images/'+l,os.F_OK) is False:
- os.symlink('../../spec/images/'+l,'../images/l')
+ if os.access('../images/'+l,os.F_OK) is False:
+ os.symlink('../../alpha/images/'+l,'../images/'+l)
# first convert mmd to latex
print(mmdcmd+fname)

0 comments on commit 2af8514

Please sign in to comment.
Something went wrong with that request. Please try again.