Website wrangling scripts

August 20th, 2010
ical, python, tech, webscripts
I have a strange approach to website management. My website is all static html, but some of it is generated by scripts that read other static html pages. The scripts manage two separate aspects of the website: The proc_schedule script reads in the main page's source and allows automated schedule item addition and ical-format feed generation. The makerss script reads in the huge news page and writes out more manageable news pages, arranged by date, tag, etc under news. It also, as of pretty recently, adds summaries of recent news as links on the main page.

I have shell aliases that make sure the appropriate publishing command is always run after I make changes:
  ~/.bashrc:
      ...
      alias ne="emacs -nw ~/public_html/news.html && python ~/bin/makerss.py"
      alias sv="python ~/bin/proc_schedule.py view"
      alias sa="python ~/bin/proc_schedule.py add && python ~/bin/proc_schedule.py ical"
      alias se="emacs -nw ~/public_html/index.html && python ~/bin/proc_schedule.py ical"
      ...
  

Comment via: facebook

Recent posts on blogs I like:

Starting With Chords

A lot of people play fiddle. Basically nobody starts by learning chords before learning melodies. But that's actually how I learned. I started with chords. One of the nice things about learning to play violin this way is that you can go busking even…

via Anna Wise's Blog Posts November 15, 2024

Stuffies

I have some stuffies and I just have a bunny. Bunny is a rabbit. Woof is a seal. My favorite stuffie is bun bun. I play with my stuffies. Sometimes I jump up with them and I roll them. I can just throw them in the air when I want to play bthululubp wi…

via Nora Wise's Blog Posts November 15, 2024

You Can Buy A Malaria Net

2024 election takes

via Thing of Things November 6, 2024

more     (via openring)