diff --git a/markdownserver/__init__.py b/markdownserver/__init__.py index cedd2ca..8b15765 100644 --- a/markdownserver/__init__.py +++ b/markdownserver/__init__.py @@ -9,7 +9,7 @@ converter = MarkdownConverter() def gfmize(resource): html_file_name = os.path.basename(converter.convert(resource)) - return static_file(os.path.join(html_dir, html_file_name), root=root_path) + return static_file(os.path.join('resources/html', html_file_name), root=root_path) def main(): run(host=ms_host,port=ms_port,debug=ms_debug,reloader=ms_reloader) diff --git a/markdownserver/markdown_converter.py b/markdownserver/markdown_converter.py index 45bf2c1..54312a0 100644 --- a/markdownserver/markdown_converter.py +++ b/markdownserver/markdown_converter.py @@ -36,7 +36,7 @@ class MarkdownConverter(object): return md_file.read() def write_html(self,body,file_name,dst): - html_path = os.path.join(html_root, file_name + html_extension) + html_path = os.path.join(html_dir, file_name + html_extension) if dst != "": html_path = dst diff --git a/setup.py b/setup.py index a008a71..1fb713d 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def read_file(filename): setup( name = 'markdown-server', - version = '0.1.2', + version = '0.1.3', description = 'A simple markdown server.', long_description = read_file('README.rst'), author = 'Masato Ohba',