You can see an example output of this program located at: https://www.evildojo.com/pagegen/index.html
A static page generator built on a C-file, some bash scripts, and markdown.
This page is under development, as is the rest of this project.
If you have any questions, contact me on twitter @mbelltech.
- Run
make
. - Edit
style_gajs_header.txt
to hold the following:- Your style.css
- Your Google Analytics (or whatever)
- Your site header (which will show up on every page generated)
- Edit
footer.html
to hold your site footer. - Create a file that contains, one per line, each keyword you would like to appear in the meta keywords tag.
- Configure the file
b
.
PAGESDIR="./pages"
OUTDIR="./test"
INEXT="md" # infile extension
OUTEXT="html" # outfile extension
FOOTERFILE="footer.html" # file containing footer
SITE="evildojo v0.1"
STYLEGAJSHEADER="style_gajs_header.txt"
KEYWORDS="keywords.txt"
- List the pages that you'd like to build, one per line, excluding output extension (so, just the base filename), in the file
pages.txt
. - Make sure that you have the program pandoc installed on your system.
- Make sure that you have the program rsync installed on your system.
- Configure the file
up
.
FLAGS="-av --progress"
FILES="test/*.html"
USER="user"
SERVER="0.1.2.3"
LOCATION="/home/user/www/."
- You're good to go!
./b
./build_entire_site
./m
./q
./up
- b
- build
- builds an individual page
- usage:
./b index
- build_entire_site
- build entire site
- builds each page listed in pages.txt
- usage:
./build_entire_site
- m
- markdownurl
- allows for quick generation of a timestamp and markdown-formatted hyperlink
- usage:
./m https://www.google.com
- q
- quickupdate
- allows for scripted quick page building and directory rsync
- usage:
./q
- up
- up
- rsyncs the html output directory with the designated endpoint
- usage:
./up