2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-21 17:32:23 +00:00

48 Commits

Author SHA1 Message Date
René Ferdinand Rivera Morell
0b3ac11636 Adjust B2 name and link to "local" direct location. (#604) 2021-03-12 12:27:19 -05:00
Daniel James
40688e1552 Update links for https
Mostly in comments. Might be better to use relative links from html.
2018-04-13 09:14:48 +01:00
Daniel James
d38607da66 Scan for new pages when running 'update_pages --in-progress-only'
So that it will pick up new release notes. It also means that the state
will be updated for other pages. They won't be rebuilt, but I feel that
the state should only be updated when they are actually going to be
built. Maybe add an option to `update_qbk_file` to only update
development pages. Or perhaps only scan for new files that aren't in
pages yet.
2017-06-09 21:16:51 +01:00
Daniel James
c9376119b1 Option to only update 'in progress' pages in update-pages.php
I think I'll use this in a cron job, so that updates to more public
pages can be checked before being released. Also won't have to deal with
automatically adding new files.
2016-12-06 00:16:08 +00:00
Daniel James
1dd412b072 Clear the old page cache
It doesn't include all the data the is currently stored, there's some
code that attempts to work round that, but it generates incomplete pages
because some of the data is missing. So better just to clear the cache.
2016-12-05 23:37:33 +00:00
Daniel James
5e300a2e7e Don't require paths in BoostPages constructor 2016-12-05 23:37:32 +00:00
Daniel James
04dc83a139 Add a global define for the root directory of the website 2016-12-05 23:14:52 +00:00
Daniel James
9625a0fe34 Add migration to fix hash of unversioned quickbook notes 2016-12-05 09:29:56 +00:00
Daniel James
b6cf324f43 Only use the boostbook values store in page class in indexes
It's a bit awkward, but to generate a page needed to update
BoostPages_Page, which wasn't always appropriate. So now generate pages
just using the data from the quickbook source, combined with the state
data.
2016-12-05 09:01:39 +00:00
Daniel James
fcbfde323c Remove unused template variable 2016-12-05 09:01:38 +00:00
Daniel James
895ce62b6b Fix logic for rebuilding items in rss feed 2016-12-05 09:01:37 +00:00
Daniel James
73afecaf71 Build 'in progress' release notes separately
So that they don't overwrite the beta release notes. This means that
there's no way to update the beta release notes, but I guess that can be
done manually.

I'm going to create a new page for 'in progress' release notes, and only
write the release notes pages for actual release (including beta
releases). That way the beta release notes can be left in place while
the release notes are updated for the next beta/full release. Changes to
the release notes after the final release will be updated.
2016-11-30 06:49:22 +00:00
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