Skip to content

Commit

Permalink
Fixes fossasia#119 Configuration to deploy yaydoc to Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
imujjwal96 committed Jun 17, 2017
1 parent dc18c38 commit d39472b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: node bin/www
28 changes: 28 additions & 0 deletions app.json
@@ -0,0 +1,28 @@
{
"name": "Yaydoc",
"description": "Automatic Documentation Generation and Deployment Project.",
"keywords": [
"documentation",
"fossasia",
"node",
"sphinx"
],
"repository": "https://github.com/fossasia/yaydoc",
"env": {
"PYPANDOC_PANDOC": {
"description": "Set path for pandoc.",
"value": "~/vendor/pandoc/bin/pandoc"
}
},
"buildpacks": [
{
"url": "heroku/nodejs"
},
{
"url": "heroku/python"
},
{
"url": "https://github.com/imujjwal96/heroku-buildpack-pandoc.git"
}
]
}
3 changes: 1 addition & 2 deletions modules/scripts/md2rst.py
Expand Up @@ -2,7 +2,6 @@
import pypandoc
import os


def download_pandoc():
"""Download pandoc if not already installed"""
try:
Expand Down Expand Up @@ -32,4 +31,4 @@ def md2rst(text):
yml_filter = os.path.join('scripts', 'filters', 'yml_filter.py')
output = pypandoc.convert_text(text, 'rst', format=markdown_flavour,
filters=[yml_filter])
return output
return output
6 changes: 6 additions & 0 deletions requirements.txt
@@ -0,0 +1,6 @@
virtualenv
sphinx==1.5.5
recommonmark
pypandoc
pandocfilters
PyYaml

0 comments on commit d39472b

Please sign in to comment.