Quick Setup Guide¶
TL;DR¶
- Create a
mdiocre.iniconfiguration file. It should look like this:
[mdiocre]
detail = True
config = site/conf.ini
logfile= site/run.log
[build]
include-html = False
copy-html = False
build-exclude = none
use-prefix = False
[clean]
clean-exclude = none
clean-index = True
- Create a new directory for your site, called
site. - Inside the
sitefolder, create a new file namedconf.ini, which looks like this:
[config]
modules = root, blog
use-templates = main
no-index = none
source-folder = site/_src
build-folder = site/_html
template-folder = site/_templates
[vars]
site-name = A MDiocre Powered Site
- Create these folders inside the
sitefolder:_src,_templates. - Go inside the
_srcfolder and createindex.md:
<!--title="Home Page"-->
# Welcome to <!--var:site-name-->!
I hope you enjoyed your stay!
Here's my [blog](blog/index.html)!
- Go back to
site, then inside the_templatesfolder create the filemain.html:
<html>
<head>
<title><!--var:site-name--> : <!--var:title--></title>
</head>
<body>
<!--var:content-->
</body>
<html>
- Go back to
site, then go inside the_srcfolder. Create a new folder calledblog. - Inside the
blogfolder, make a file calledmy_first_blog.md
<!--title="Blog: Everything's boring"-->
<!--date="2019-03-07"-->
# Everything's boring
I had a bad day lmao
- Create a file called
index.templatein the same folder:
<!--title="Blog: Index"-->
# Blog
Check out my ramblings.
<!--var:content-->
- Go up three folders, open a terminal and mash
MDiocre/mdiocre_console.py build - Done. Now have a look at your HTML masterpiece. :)