Fixes to import path, updated readme with run instructions, and ignoring output directory

This commit is contained in:
Steve Miller 2018-09-03 13:02:54 +00:00
parent 9e8fa5b9aa
commit 941bd62f97
5 changed files with 10 additions and 7 deletions

3
.gitignore vendored
View File

@ -150,3 +150,6 @@ ENV/
.ropeproject
# End of https://www.gitignore.io/api/pycharm,python
# Ignore output directory generated from program
output/

View File

@ -10,7 +10,7 @@ See https://www.dokuwiki.org/wiki:syntax
Just use the main python class. It uses `argparse` - only provide one argument: the directory you want to parse:
```python main.py --dir='some_dokuwiki_root_dir'```
```python src/main.py --dir='some_dokuwiki_root_dir'```
##### Including it into your python project:

View File

@ -1,2 +1,2 @@
# this initializes the submodule __init__
from src.markdown import *
from markdown import *

View File

@ -1,8 +1,8 @@
import os
import shutil
from src.hugo_file_config import HugoFileConfig
from src.markdown_converter import MarkdownConverter
from hugo_file_config import HugoFileConfig
from markdown_converter import MarkdownConverter
class DokuWikiToHugo:

View File

@ -1,6 +1,6 @@
import argparse
from src.dokuwiki_to_hugo import DokuWikiToHugo
from dokuwiki_to_hugo import DokuWikiToHugo
def main(directory, root):