2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-22 05:42:52 +00:00

100 Commits

Author SHA1 Message Date
Daniel James
108ea7216b Store guids so they don't change when website URL changes
Converting everything to https was going to change the guid of every RSS item.
By storing them, they won't be affected by such changes to the code.
2018-04-13 11:14:58 +01: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
935a7d18e3 Add download tables to download page
Looks a bit ugly, perhaps also a bit redundant as the release notes are
generally good enough for downloading.
2017-07-30 19:20:49 +01:00
Daniel James
238e5114c6 Update page data before generating quickbook page
Need to do it first, in order to set the page location. It might be best
to also do this every time the page is regenerated?
2017-07-13 17:01:01 +01:00
Daniel James
0f3ebbdf09 When checking release data, convert DateTime objects to strings
This will trigger a rebuild of the 1.63.0 release notes, but that should
be tolerable. Without this change, different versions of php will encode
the DateTime differently in json, resulting in unnecessary rebuilds.
2017-03-02 10:27:26 +00:00
Daniel James
40126d7210 Add configuration option for quickbook executable 2017-03-02 10:27:26 +00: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
6f879e327f Remove code for dealing with incomplete boostbook_values
Shouldn't happen now that I'm clearing the cache in a migration.
2016-12-05 23:37:33 +00:00
Daniel James
3e03a9846b Store the beta release notes in a separate file 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
08358f40f9 Extract hash calculation from update_qbk_file 2016-12-05 09:29:56 +00:00
Daniel James
da52af088f Rename add_qbk_file to update_qbk_file 2016-12-05 09:29:55 +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
2196c54291 Comment the BostPages_Page members
I feel like this shouldn't be stored in one big object, but also
breaking it up feels like more trouble than it's worth.
2016-12-05 09:01:38 +00:00
Daniel James
df315c5535 Remove unused $page parameter
They can all get it from the page data if they really need it.
2016-12-05 09:01:38 +00:00
Daniel James
3818306884 Stop storing description in BoostPages_Page 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
5989e6dd64 Seperate refresh implementation from update
So that it doesn't update the state in ways that we don't wish it to. A
little awkward as it can update a page that isn't in the cache without
recording it as updated.
2016-12-05 09:01:37 +00:00
Daniel James
b31237b9a3 Only update last_modified when something actually changes 2016-12-05 09:01:37 +00:00
Daniel James
6fe973a261 Extract the html transformation code from update_page_data_from_boostbook_values 2016-12-05 09:01:36 +00:00
Daniel James
56d4358244 Cleaner beta handling
Moved the logic for handling beta pages into convert_quickbook_pages as
it didn't make much sense in load_quickbook_page. Also simplified a bit
as there should always be a cached entry for a beta page. Perhaps should
store the beta pages in a separate file?
2016-12-05 09:01:36 +00:00
Daniel James
7c6641458b Extract code for loading from quickbook source 2016-12-05 09:01:36 +00:00
Daniel James
2452e9cba5 Inline convert_quickbook_page, clean up implementation.
It didn't really work for 'In Progress' entries, so that behaves a
little differently now.
2016-12-05 09:01:35 +00:00
Daniel James
b28c16d380 Factor convert_quickbook_page 2016-12-05 09:01:35 +00:00
Daniel James
e459cd38ba Only update beta page when release data changes
But ignoring changes to source file. This requires a different hashing
algorithm for beta pages to the rest of the site, which is a bit hacky.
2016-12-05 09:01:35 +00:00
Daniel James
0466fe03d6 In page cache, store beta versions separately 2016-12-05 09:01:35 +00:00
Daniel James
7d8a844569 Store more data in page cache
To fix the bug where the development release notes didn't have all the
appropriate data.

I might not do this, I feel like it might be better to create a new
'section'.
2016-12-05 09:01:34 +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
1bbdf99db2 Reformat code after last change
I didn't do this in the last change, as I wanted a cleaner diff.
2016-11-30 05:29:47 +00:00
Daniel James
28c400a753 Split up the page generation code 2016-11-30 05:29:47 +00:00
Daniel James
38ad1fa322 Don't update the page state when using a stale page cache entry 2016-11-30 05:29:47 +00:00
Daniel James
8abdbd3938 Remove a load of old TODO notes
boost_archive.php:

For mime types, the current list seems fine, and a full list doesn't
seem feasable.

boost_filter_text.php:

For supporting other character sets, could possibly use
mb_detect_encoding to guess the file's encoding, but it's not currently
installed on the server, and I think guesses are probably no better than
just assuming everything is UTF-8. The alternative would be some
mechanism to specify a file's (path's?) encoding, but I'm sure that can
be done if the need arises.

boost_library.php:

If it turns out that a better exception is needed, then it will be
handled then, so I'm not concerned with that TODO note.

boost_pages.php:

Sourceforge is redirecting downloads to the right place, so I'll not
bother with '/download' at the end. It's probably better if the download
URLs have the right filename.

boost_simple_template.php:

I don't think the simple template class really needs to support tricky
edge cases, so I'll just leave that alone.

doc/libraries.php:

I don't think anyone's desperate to see the library list for ancient
versions. If they are, they can get the it in json format using:
http://www.boost.org/doc/libraries.json.php?version=1.11.1

site-tools/git-prep-beta.sh:

Coming back to this, I think the answer is no. A change on master is
only really made when it has been pushed to remote, if it's only local
then it might get rebased.

This script doesn't actually get much use now that there are long
standing unmerged changes in beta, but it used to work well for me.

site-tools/update-doc-list.php:

Other TODO note was to make the script a little more automatic when run
against a local git tree, but I don't think that's a use case to support
in general. The tree might not be fully synced, or might be checked out
from a tag, which would be harder to check.
2016-11-30 01:53:57 +00:00
Daniel James
7dbfef2a8b Use release note's release date to order them 2016-11-30 01:10:30 +00:00
Daniel James
a4cb96446d Get the release name from the filename
Not sure why I didn't do that in the first place.
2016-11-14 22:54:08 +00:00
Daniel James
3185a73a56 Add BoostSiteTools::transform_links_regex convenience function 2016-11-14 22:53:35 +00:00
Daniel James
ace57b73a7 Distinguish between boost/bjam releases
I was thinking about resolving this by removing the release data for
bjam, but instead support different release names. Even though this is
currently just for one special case, might be useful in the future.
2016-11-14 22:53:35 +00:00
Daniel James
0cbceea4dc Factor out some of the release logic 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
1b22c14718 Remove temporary code for setting up release data 2016-11-14 22:53:35 +00:00
Daniel James
5ba78e30b6 Only rewrite links in the history section 2016-11-11 09:55:55 +00:00
Daniel James
fc16a77074 Link by default to master in dev release notes 2016-11-02 21:01:29 +00:00
Daniel James
350982b033 Fix web_date. 2016-10-26 19:06:04 +01:00
Daniel James
666f757a06 Add a base_version method to BoostVersion 2016-10-16 19:51:49 +01:00
Daniel James
ebb3c47c2b Store release date
Previously was using the quickbook file's pub_date, By using the date
the release script was run on, can release without updating the
quickbook file. So the release manger won't need to have quickbook
installed. At least in theory!
2016-10-16 14:10:42 +01:00
Daniel James
699d3cd115 Add note about converting dates
This code was added for transitioning from the old data format, now that
it is no longer in use, probably isn't needed any more. At some point
older version will stop working anyway as I'm not testing for full
backwards compatability. But I'll leave it in for a little while longer.
2016-10-16 14:01:40 +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
0365d81d62 Add array_get utility function 2016-10-13 09:46:50 +01:00
Daniel James
fe72142cf3 Always store version as object
Can now convert to string in normalization, so there's no reason to
store it as a string.
2016-10-11 16:48:32 +01:00
Daniel James
0e9826c1de Try to clean up get_release_status 2016-10-11 16:48:32 +01:00
Daniel James
a97952ddf8 Replace page date 'type' with 'section'. 2016-10-11 16:48:31 +01:00