2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-26 19:12:15 +00:00
Commit Graph

70 Commits

Author SHA1 Message Date
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
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
629a3c451f Prefer released version to unreleased versions.
The problem is that if a beta had been released, then when the next
beta, or the final release was first added it would override the beta.
This would then set the status to unreleased. The whole release_status
mechanism is a bit messy and may need to be reconsidered.
2016-10-07 09:48:02 +01:00
Daniel James
4f63803148 Extract release data into its own class 2016-10-07 09:48:02 +01:00
Daniel James
6f25235d41 Normalize release data before hashing.
So that the hah values remain the same as they are on master.
Probably more effort than was required to manually fix the hashes every
time they change, but I was getting a bit fed up of that. Although I
suspect some reason will still come up so that I'll have to manually fix
the hashes again.
2016-09-29 16:43:06 +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
3e7cf770c8 Remove empty data 2016-09-29 10:54:08 +01:00
Daniel James
19ffa52457 Get release data for notes based on parsing filename. 2016-09-29 10:54:08 +01:00
Daniel James
65a8d87fe7 Replace release_status with version. 2016-09-29 10:54:08 +01:00
Daniel James
dee3c0206f Store the version as a version object. 2016-09-29 10:54:08 +01:00
Daniel James
c648f992db Infer release_status from the version.
Apart from 'unversioned' which needs a special case. Might be better to
store the version object and use that.
2016-09-29 10:54:08 +01:00
Daniel James
ce0e6d38af Use the most recent release data in get_release_data. 2016-09-29 10:54:08 +01:00
Daniel James
b1e65390bd Remove superfluous version field 2016-09-29 10:54:08 +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
3f0b8b1717 Restore support for numbered beta releases.
This is roughly how it used to work. It's a bit shoddy though, probably
need to support storing details for all beta releases and release candidates.
2016-09-14 13:42:38 +01:00
Daniel James
0eb7661466 Make the note on release notes a bit clearer. 2016-08-24 17:16:18 +01:00
Daniel James
c22d8c28ba Fix documentation link rewriting. 2016-08-24 16:25:49 +01:00
Daniel James
c927a1e22f Link to snapshot download page from dev release notes. 2016-08-08 13:08:02 +01:00
Daniel James
1cee6728cc Support dates in state files. 2016-07-21 16:05:36 +01:00
Daniel James
1d3968a616 Use DateTime for timestamps.
Preserves timezone.
2016-07-21 16:05:35 +01:00
Daniel James
dce6c5ef72 More descriptive function name. 2016-07-21 16:05:35 +01:00
Daniel James
24d2df3697 Only set last_modified when really modified.
Was setting it in the parser, so it would be set on refereshes as well
as when the file was modified.
2016-07-21 16:05:34 +01:00
Daniel James
6892abb9fd Rework last_modified and pub_date.
- Both are now stored as strings.
- Unpublished articles have a null pub_date.
- last_modified is now always the last modified date,
  before it was the pub_date once published.
2016-07-21 16:05:34 +01:00
Daniel James
6a871d2985 Remove TODO note that has already been done. 2016-07-05 09:43:01 +01:00
Daniel James
f9034e55a7 Remove dependencies on DOMDocument. 2016-06-02 09:04:44 +01:00
Daniel James
25a884c58c Include release_data in hash. 2016-06-02 09:04:44 +01:00
Daniel James
f730bb37e1 Use release data. 2016-05-29 19:50:18 +01:00
Daniel James
17dbdf21c0 Add release_data to pages. 2016-05-29 19:50:18 +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