aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-04-10 14:37:56 +0000
committerrodri <rgl@antares-labs.eu>2021-04-10 14:37:56 +0000
commit4d4867ed7731c7aa70855e0b62913f442d35628c (patch)
tree1939f5af1777aa9d23ef35b3553e319072206c8a /readme.md
downloadmkweb-4d4867ed7731c7aa70855e0b62913f442d35628c.tar.gz
mkweb-4d4867ed7731c7aa70855e0b62913f442d35628c.tar.bz2
mkweb-4d4867ed7731c7aa70855e0b62913f442d35628c.zip
finally released to the world.
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..30a6300
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,40 @@
+# mkweb
+
+Mkweb is a very little framework I've developed for the last four
+years based on markdown files.
+It started as an actual `mkfile` (of which there was a `Makefile`
+translation for UNIX™ systems) and turned into a standalone
+[rc(1)](http://man.9front.org/1/rc) script over time.
+
+I've been meaning to release it for a long time now.
+
+_I know there are many like it, but this one is mine_.
+
+## Usage
+
+The script is quite simple and, since you will have to modify it
+whether you want to or not, I recommend you take a peek before we
+continue.
+
+Alright, see? there are three variables you need to keep track of:
+`filter`, `sections` and `site`. The `filter` is a
+[regexp(6)](http://man.9front.org/6/regexp) used to exclude files from
+`sections`, a list of folders possibly holding an `index.md`, which
+would otherwise crawl into the depths of every directory there is.
+`site` is the root URL of your website, it's only used for generating
+the sitemap file (ab)used by some bots out there.
+
+Every time you create a section and add an `index.md` to it, you must
+run `mkweb` to generate the entire site, or you can also just `mkweb
+-s path/to/newsection` to process your new webshit.
+
+This process will translate the markdown file into html, while
+attaching to it a head, a menu and some feet (see `tpl/`) to make a
+proper document.
+
+And that's it. All the hypertexting is done by yiyus' `md2html.awk`,
+which could be replaced by discount or any other translator of your
+choice, doesn't even need to be a markdown one (Wikitext, AsciiDoc,
+BBCode are all easy to plug in).
+
+Enjoy!