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

5
.gitignore vendored
View File

@ -149,4 +149,7 @@ ENV/
# Rope project settings
.ropeproject
# End of https://www.gitignore.io/api/pycharm,python
# 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:
@ -123,4 +123,4 @@ That way it's auto-loaded and wired in the main conversion.
* embedding php - kill it with fire?
* macro's - kill it with fire?
* what to do with footnotes?
* what to do with footnotes?

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):