Website for dansysadm.com

Daniel Lawrence 40cb0b476f pep8 5 years ago
src 65f6f3c3eb Create things_todo_after_getting_a_web24_server.md 5 years ago
theme ba788bc8d0 updated error pages 6 years ago
.env 2ffbb58a50 added .env for auto virtualenv 6 years ago
.gitignore 0ee243509d added web to gitignore 6 years ago
Dockerfile a343187c6e fixed up Dockerfile & added make file 5 years ago
LICENSE cda6569255 added license 6 years ago
README.md 7fe54594a1 updated readme 6 years ago
deploy_local.sh 07fcc7e4e0 updated deploy script to only deploy to localhost 6 years ago
deploy_remote.sh f21754486d updated scripts 6 years ago
generate_website.py 40cb0b476f pep8 5 years ago
make a343187c6e fixed up Dockerfile & added make file 5 years ago
requirements.txt 81b0d7a834 added dockerfile ; fixed requirements 5 years ago
settings.py d21c421ee2 aspell to the rescue 6 years ago
supervisor-nginx.conf 17f759e863 /usr/bin/supervisord 5 years ago

README.md

dansysadm.com

Website for http://dansysadm.com , See it in action

The website uses markdown and some css to build the HTML pages.

Features

  • Uses markdown2 to turn the markdown into HTML
  • Separate Header and Footer pages allow for easy theme changes
  • pygments used for code highlighting.

Installing

  • Pull down the code
  • Install the requirements
  • Generate the website
  • Start the SimpleHTTPServer
$ git clone git@github.com:daniellawrence/dansysadm.com.git
$ pip install -r requirements.txt
$ python generate_website.py
$ cd web
$ python -m SimpleHTTPServer

  • src contains markdown and css files that are generated into HTML
  • theme contains the header and footer files that are already HTML
  • generate_website.py the code that reads in the src files and turns the into HTML
  • settings contains settings like where the src files are and where are the going
  • deploy_local.sh A horrible hack to generate the pages and restart nginx
  • deploy_remote.sh A horrible hack to generate the pages, ship them to my web server and restart nginx

TODO

  • Replace deploy_local.sh and deploy_remote.sh with a fabric script
  • Add Tags or Topics to blog posts.
  • Work out a way to support lots of blog posts ( re-work /src/blog/index.md )