Daniel James
3185a73a56
Add BoostSiteTools::transform_links_regex convenience function
2016-11-14 22:53:35 +00:00
Daniel James
776d5ce0fd
Overhaul of release_data handling
...
Main change is that 'unversioned.qbk' now has null release_data. Will
result in a change to the qbk_hash, but I'll manually handle that. This
means that its no longer a 'release' but still want it to appear on
history page.
2016-11-14 22:53:35 +00:00
Daniel James
995ebd4df9
Save the current version to a file
...
Code is very messy, but now there's nothing that needs to be manually
updated for a new version.
2016-10-16 19:51:49 +01:00
Daniel James
2ec09f6f47
Automatically update the documentation list
2016-10-16 19:51:49 +01:00
Daniel James
76e5d9c6a0
Automatically update htaccess file for releases.
2016-10-16 19:51:49 +01:00
Daniel James
eecdeb6241
Cache html generated from quickbook files
...
So that when changes to the release status are made, the site can be
rebuilt without using quickbook. Pretty messy.
2016-10-16 11:29:38 +01:00
Daniel James
a97952ddf8
Replace page date 'type' with 'section'.
2016-10-11 16:48:31 +01:00
Daniel James
3965067965
Store page_locations in BoostPages
...
Allows me to get rid of that horrible dir_location mechanism.
2016-10-11 16:48:31 +01:00
Daniel James
43d7e2069c
Convert release date to a 'state' file.
...
Currently no way to update it (apart from manually, which is awkward),
but the plan is to do so automatically.
This messes up the hashes again. Probably best to resolve manually,
although it might be possible to emulate the old hashes.
2016-09-29 16:43:06 +01:00
Daniel James
f32396468d
More accurate name
2016-09-29 12:35:22 +01:00
Daniel James
5afbf3178c
Sort pages on access.
...
There was a bug where the chronological order of pages wasn't updated
immediately for new pages.
2016-09-29 11:21:06 +01:00
Daniel James
b8120cc53c
Adjust a lot of the error handling.
...
Use exceptions for most internal errors. Return error codes for most errors.
2016-09-29 02:08:52 +01:00
Daniel James
c22d8c28ba
Fix documentation link rewriting.
2016-08-24 16:25:49 +01:00
Daniel James
61bc6afe84
Optimize some regular expressions.
...
Prompted by:
http://stackstatus.net/post/147710624694/outage-postmortem-july-20-2016
Not really an issue here, as mostly processing our own files, so they
should be less problematic. The version number parsing code might have
an issue with really long URLs, but I don't think that's possible. But
fix it anyway.
2016-07-30 11:59:45 +01:00
Daniel James
f9034e55a7
Remove dependencies on DOMDocument.
2016-06-02 09:04:44 +01:00
Daniel James
17dbdf21c0
Add release_data to pages.
2016-05-29 19:50:18 +01:00
Daniel James
f4477c80ab
Merge remote-tracking branch 'origin/master' into fixes
2016-05-27 09:33:04 +01:00
Daniel James
3fd7bec5ff
PHP 5.3 fix
2016-05-27 09:23:35 +01:00
Daniel James
ee73bbdd2b
Remove last remanants of flag system.
...
Now just using release_status, which can only be 'released',
'beta','dev'.
2016-05-26 00:12:07 +01:00
Daniel James
f160d6cc55
Autoload URL handling.
2016-05-26 00:12:07 +01:00
Daniel James
5ad81026e9
Move scan_location_for_new_quickbook_pages to BoostPages.
2016-04-10 10:08:55 +01:00
Daniel James
00ba6c5e5a
Replace match_pages with some basic filtering.
2016-04-10 10:08:55 +01:00
Daniel James
726020e1f7
Stop filtering pages in get_downloads.
2016-04-10 10:08:54 +01:00
Daniel James
36eb7eeff0
Filter pages before generating everything.
2016-04-10 10:08:54 +01:00
Daniel James
ec7032f433
Clean BoostSiteTools a tad bit more.
2016-04-10 10:08:54 +01:00
Daniel James
00bc1a97a5
Move RSS generation into its own class.
2016-04-10 10:08:54 +01:00
Daniel James
7be5ca9a1f
Remove direct use of BoostPages in RSS code.
2016-04-10 10:08:54 +01:00
Daniel James
684b764aec
Remove BoostPageSettings::$feeds.
2016-04-10 10:08:54 +01:00
Daniel James
7c9094f4f3
Remove BoostPageSettings::$downloads.
2016-04-10 10:08:54 +01:00
Daniel James
7e96468fa3
Remove BoostPageSettings::$pages.
2016-04-10 10:08:54 +01:00
Daniel James
1db0568654
Remove BoostPageSettings::$index_pages.
2016-04-10 10:08:54 +01:00
Daniel James
0f33b8211b
Remove use of 'compact', I don't like it now.
2016-04-10 10:08:54 +01:00
Daniel James
2d24fcb2a5
Fixes for regenerating site from any directory.
2016-03-30 09:18:01 +01:00
Daniel James
76affee511
Fix RSS bug from python to php conversion.
...
The php and python versions of fragment_to_string act differently for
xml nodes that aren't fragments. I really should have called
fragment_to_string something different, or at least only used it for
actual fragments.
2015-12-29 09:29:35 +00:00
Daniel James
294dad5b45
Fix search and replace error.
2015-12-19 14:49:55 +00:00
Daniel James
29e597e5b1
Port python code to php
...
Having the site in two different languages is a bit of a pain, so
convert everything to PHP.
2015-12-19 14:30:46 +00:00