MegaPhysics / megaphysics.github.io

A Physics wiki (sort of).
megaphysics.github.io
GNU General Public License v2.0
1 stars 2 forks source link

Regenerate db on build; ignore db file #42

Closed drewsberry closed 10 years ago

drewsberry commented 10 years ago

So I was playing with the articles, but they just wouldn't update their names in articles.html. After a while, I realised that it simply wasn't regenerating the database file for each build, which it should be doing. I'm not sure how you guys were doing it, but it looks like you were manually generating the database when you change something, which is silly, so I changed it so that the database is automatically regenerated whenever you run build.

hmac commented 10 years ago

I'm almost certain we don't use the db for anything atm...

hmac commented 10 years ago

The article names in articles.html are generated in build.py from the metadata in each file

hmac commented 10 years ago

The function involved is articles_urls

hmac commented 10 years ago

So they should update every time you build

Ap0c commented 10 years ago

The database isn't in use yet.