2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-26 07:02:23 +00:00
Commit Graph

659 Commits

Author SHA1 Message Date
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
da67393b48 Only update RSS state once per feed
Was updating it every time an item was updated, this was unnecessarily
slow. Typically, only a very small number of items are updated per run,
so it shouldn't make much of a difference, but a lot faster if many
items are updated.
2016-11-14 22:53:35 +00:00
Daniel James
d827cf8866 Fix links from regression source into boost source 2016-11-14 22:53:35 +00:00
Daniel James
b6ca3886f3 Clean up library list/pull request + better error pages 2016-11-14 22:53:35 +00:00
Daniel James
dfa8c97cc9 Fix hidden check
The 'hidden' method creates a hidden version, it doesn't check for hidden.
2016-11-14 22:52:28 +00:00
Daniel James
3e23bcae9a Support status=unreleased 2016-11-14 22:45:28 +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
c8f365bd26 Merge branch 'develop'
Pretty large development merge. Including:

- More robust PHP error handling.
- Automatically update release data from various sources. Manually
  updating a json file was too error prone.
- Normalize hashes of release notes, so that they won't need to be
  manually updated so often.
- Small improvements to quickbook page data.
- Cache html generated from quickbook - so no need to reparse when
  changing release data. Much of the site can now be rebuilt without
  installing quickbook, although changes in quickbook won't be included.
- Scripts in site-tools have are more consistent at the command line,
  and all support '--help' (although some have very little information).
- Automatically update more of the site for new releases.
2016-10-30 19:57:32 +00:00
Daniel James
34ce8f168e Only include visible libraries in library list 2016-10-27 20:09:13 +01:00
Daniel James
a64572a217 Check fix_dir as well as archive_dir in latest_link 2016-10-27 19:40:01 +01:00
Daniel James
d2ea07cee1 Fix documentation list when no PATH_INFO 2016-10-26 19:38:13 +01:00
Daniel James
350982b033 Fix web_date. 2016-10-26 19:06:04 +01: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
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
3c89a0384e Add script to mark a version as released 2016-10-16 13:17:20 +01:00
Daniel James
b858635e19 Simple command line parser
A very simple command line parser to make the command line scripts a bit
more consistent and a tad more user friendly.
2016-10-16 12:52:01 +01:00
Daniel James
d5ad167d00 Support namespaces in autoloading 2016-10-16 12:23:47 +01:00
Daniel James
6876756499 Bootstrap is also appropriate for command line tools. 2016-10-16 11:29:39 +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
685750fc7e Script to automatically add documentation to release data.
This could do a lot more, but just something very basic to get going for
the next release.
2016-10-07 18:57:04 +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
7ee9d41e9e Update release downloads from file
Pretty rough at the moment.
2016-10-07 09:48:02 +01:00
Daniel James
0f44582d07 Load and save release data, still need to update.
Also normalized the beta version numbers in the state file.
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
bfd4f9ed8f Support for generating root index file 2016-10-06 22:42:03 +01:00
Daniel James
5902327877 Sort pages on access.
There was a bug where the chronological order of pages wasn't updated
immediately for new pages.
2016-09-30 11:16:21 +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
975a4c48f8 Converted some error message to interpolated strings.
I'd missed a comma in one of them, so it wouldn't work. I find
interpolated strings to be more robust in this regard.
2016-09-29 12:30:33 +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
136f1c8f33 Allow separator between beta and number. 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
8cdac6a4bb Update version comments
Seems at some point I implemented beta numbers, but the comments claim
they're not supported.
2016-09-29 10:54:08 +01:00