all repos — py-vite @ 9a043e9556f0cde2351d8d946f4c39a63195d4e8

the original vite, written in python

make.py (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
from markdown2 import markdown_path
from glob import glob
import os

# constants
PAGES_PATH = 'pages/'
BUILD_PATH = 'build/'

for filename in os.listdir(PAGES_PATH):
    html = markdown_path(PAGES_PATH + filename)
    with open(BUILD_PATH + filename + '.html', 'w') as f:
        f.write(html)