changed basically nothing
This commit is contained in:
parent
575557a057
commit
ecb1b129e1
|
@ -11,13 +11,11 @@ from datetime import datetime
|
||||||
import sys
|
import sys
|
||||||
sys.path.append("./")
|
sys.path.append("./")
|
||||||
from shared import TagHelper, config
|
from shared import TagHelper, config
|
||||||
|
from . import mistune
|
||||||
|
|
||||||
# Default encoding
|
# Default encoding
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
|
|
||||||
# Import local files
|
|
||||||
mistune = __import__('mistune')
|
|
||||||
|
|
||||||
# Activating the renderer
|
# Activating the renderer
|
||||||
renderer = mistune.Renderer()
|
renderer = mistune.Renderer()
|
||||||
markdown = mistune.Markdown(renderer=renderer)
|
markdown = mistune.Markdown(renderer=renderer)
|
||||||
|
|
|
@ -1,23 +1,27 @@
|
||||||
import click
|
import click
|
||||||
from grab import makePublic
|
from grab import makePublic
|
||||||
from shared import TagHelper
|
from shared import TagHelper
|
||||||
|
from build import build
|
||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
def grab():
|
def grab():
|
||||||
AllFiles = TagHelper.getAllFiles()
|
all_files = TagHelper.getAllFiles()
|
||||||
FilteredFiles = makePublic.filterFiles(AllFiles)
|
filtered_files = makePublic.filterFiles(all_files)
|
||||||
makePublic.copyFiles(FilteredFiles)
|
makePublic.copyFiles(filtered_files)
|
||||||
print("Censoring files...")
|
print("Censoring files...")
|
||||||
makePublic.censorFiles()
|
makePublic.censorFiles()
|
||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
def build():
|
def build_website():
|
||||||
build.generate_website()
|
build.generate_website()
|
||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
def main():
|
def main():
|
||||||
grab()
|
grab()
|
||||||
build()
|
build_website()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue