Fixes to import path, updated readme with run instructions, and ignoring output directory
This commit is contained in:
parent
9e8fa5b9aa
commit
941bd62f97
|
@ -149,4 +149,7 @@ ENV/
|
||||||
# Rope project settings
|
# Rope project settings
|
||||||
.ropeproject
|
.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/
|
||||||
|
|
|
@ -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:
|
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:
|
##### 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?
|
* embedding php - kill it with fire?
|
||||||
* macro's - kill it with fire?
|
* macro's - kill it with fire?
|
||||||
* what to do with footnotes?
|
* what to do with footnotes?
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# this initializes the submodule __init__
|
# this initializes the submodule __init__
|
||||||
from src.markdown import *
|
from markdown import *
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from src.hugo_file_config import HugoFileConfig
|
from hugo_file_config import HugoFileConfig
|
||||||
from src.markdown_converter import MarkdownConverter
|
from markdown_converter import MarkdownConverter
|
||||||
|
|
||||||
|
|
||||||
class DokuWikiToHugo:
|
class DokuWikiToHugo:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from src.dokuwiki_to_hugo import DokuWikiToHugo
|
from dokuwiki_to_hugo import DokuWikiToHugo
|
||||||
|
|
||||||
|
|
||||||
def main(directory, root):
|
def main(directory, root):
|
||||||
|
|
Loading…
Reference in New Issue