A static page generator built on a C-file, some bash scripts, and markdown
C Shell HTML Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pages
LICENSE
Makefile
README.md
b
build_entire_site
footer.html
keywords.txt
m
main.c
pages.txt
q
style_gajs_header.txt
up

README.md

pagegen

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 @evildojo.

Before Use:

  1. Run make.
  2. 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)
  3. Edit footer.html to hold your site footer.
  4. Create a file that contains, one per line, each keyword you would like to appear in the meta keywords tag.
  5. 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"
  1. 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.
  2. Make sure that you have the program pandoc installed on your system.
  3. Make sure that you have the program rsync installed on your system.
  4. Configure the file up.
FLAGS="-av --progress"
FILES="test/*.html"
USER="user"
SERVER="0.1.2.3"
LOCATION="/home/user/www/."
  1. You're good to go!

Tools

./b
./build_entire_site
./m
./q
./up
  1. b
    • build
    • builds an individual page
    • usage: ./b index
  2. build_entire_site
    • build entire site
    • builds each page listed in pages.txt
    • usage: ./build_entire_site
  3. m
    • markdownurl
    • allows for quick generation of a timestamp and markdown-formatted hyperlink
    • usage: ./m https://www.google.com
  4. q
    • quickupdate
    • allows for scripted quick page building and directory rsync
    • usage: ./q
  5. up
    • up
    • rsyncs the html output directory with the designated endpoint
    • usage: ./up