2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-30 20:32:16 +00:00
Commit Graph

67 Commits

Author SHA1 Message Date
Daniel James
768b1922c2 Make trailing '.git' in module url optional 2018-01-03 13:03:36 +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
be4fd29599 Strict version parsing in BoostVersion::from
It used to just grab anything that looked like a version number from a
string. Now the whole string must be a version number. Left the library
list in a little bit of a mess, but will clean that up next.
2016-11-30 01:29:27 +00:00
Daniel James
720df45493 Explain that weird if/else if/else a bit better
Not even sure this should be so automatic, might be better to explicitly
say which is required, but it's working well enough at the moment.
2016-11-30 01:08:19 +00:00
Daniel James
39cefccc67 Replace global variable with static class member
Arguably no better, but I can't see it causing any real problems for
now.
2016-11-14 22:54:09 +00:00
Daniel James
8979179697 Improve user info in site-tools
Still not great. I also want to make things more automatic in the
future, so hopefully there will be less to document.
2016-10-16 12:52:01 +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
6876756499 Bootstrap is also appropriate for command line tools. 2016-10-16 11:29:39 +01:00
Daniel James
5adddc256b Cope with missing modules.
This can happen when a module is deleted but the entry is left in
.gitmodules.
2016-08-07 09:57:22 +01:00
Daniel James
28cf2392e4 In quiet mode, don't warn about remote doc modules. 2016-08-07 09:53:46 +01:00
Daniel James
f610ab80ff Fix parameters to load_from_file. 2016-07-04 23:15:04 +01:00
Daniel James
25d3e1f099 Fix some issues prevents recursion in submodules.
Now get_modules works if there are no submodules, and stop throwing
exceptions for unusal submodule urls, since odeint has an external
documentation submodule.
2016-07-04 22:45:49 +01:00
Daniel James
5a5c248320 Fix the name of sublibs. 2016-07-04 22:45:49 +01:00
Daniel James
01f1e4787f Update terminology in update-doc-lists. 2016-07-04 22:45:49 +01:00
Daniel James
ee928a63b4 Recursive metadata from git, with support for sublibs. 2016-07-04 22:45:49 +01:00
Daniel James
6bb9ff707a Use same function for reading from release/local checkout.
Was read_metadata_from_release, but renamed to
read_metadata_from_filesystem. This is possible since it no longer
depends on git modules at all.
2016-07-04 22:45:49 +01:00
Daniel James
c60df18ea0 Use sublibs when reading metadata from a release. 2016-07-04 22:45:49 +01:00
Daniel James
0cfef1fceb Store library path in metadata, instead of module.
This allowed me to simplify some of update-doc-list as there's no longer
any need to work out the module for a library.  This might break
update-doc-list in places. Will work on that next.
2016-07-04 22:45:49 +01:00
Daniel James
45dd4d05fc Fix updating from local clone. 2016-06-22 08:37:44 +01:00
Daniel James
8b81aaaf3c PHP 5.3 fix. 2016-01-10 15:25:14 +00:00
Daniel James
9c70691cff Add a quiet option to update-doc-list.php 2016-01-10 15:19:18 +00:00
Daniel James
6673f96dd9 Make php scripts executable. 2015-12-19 14:26:40 +00:00
Daniel James
a76d65e103 Don't update incrementally in update-doc-list.
I just implemented the mechanism, but on second thoughts, it's probably
a bad idea to do it that way. Will leave alone BoostLibraries for now,
but will probably remove the functionality later.
2015-11-15 15:35:05 +00:00
Daniel James
140b6c042e Rejig the update mechanism.
Now cleans up the database even when there are no updates. Updating for
a relese is better integrated. And also sets up the ground work for
deleting libraries.
2015-11-15 15:08:32 +00:00
Daniel James
f3402a42f2 Mark beta releases + overwrite for final release.
Still have to remove libraries manually, so if a library isn't in a
release will need to do that.
2015-11-15 15:08:32 +00:00
Daniel James
75ffd43cdf Oops, read_libraries_json doesn't have a version parameter anymore. 2015-11-15 15:08:32 +00:00
Daniel James
a37a11ba1b Fix updating from a release. 2015-11-14 20:50:44 +00:00
Daniel James
6dda66cb31 Stop using 'git -C', not supported on old git. 2015-10-11 20:20:19 +01:00
Daniel James
3b18d4c16b PHP 5.3 fix 2015-10-11 20:11:03 +01:00
Daniel James
958aa4bf2b Update from a release copy. 2015-04-21 00:20:08 +01:00
Daniel James
b70a11aa95 Remove the $info stuff. 2015-04-21 00:20:08 +01:00
Daniel James
061dd50a41 Update from array of BoostLibrary rather than BoostLibraries.
The code was pretty messy because it was using BoostLibraries for
everything, this will hopefully let it be a bit cleaner.

Also removes support for xml metadata files. No one has ever used it.
2015-04-21 00:20:08 +01:00
Daniel James
2d47ea67b8 Clean up module details.
Now set when BoostLibrary is constructed, so the data should always be
correct.
2014-08-20 20:08:31 +01:00
Daniel James
66744b51ab Use $info parameter for BoostLibraries methods. 2014-08-20 20:08:31 +01:00
Daniel James
1ac74db140 Autoload BoostSuperProject. 2014-08-07 20:34:30 +01:00
Daniel James
21929645ce Make free functions static members for autoloading. 2014-08-07 20:34:30 +01:00
Daniel James
c4c3fa8ce6 Rename boost_libraries to BoostLibraries. 2014-08-07 20:34:30 +01:00
Daniel James
4fdd326d07 Fix setting the documentation path.
It was wrong for modules where the module path doesn't match the module
name.
2014-08-06 20:02:11 +01:00
Daniel James
bbebb927ce Set version on release.
A bit trickier than expected!
2014-08-06 20:02:11 +01:00
Daniel James
75350c3160 Fix 'not a directory' error for non-existant path.
'realpath' returns false if the path doesn't exist.
2014-07-13 11:30:23 +01:00
Daniel James
b3dea6453d Don't die on parse errors when updating. 2014-07-13 11:21:44 +01:00
Daniel James
efc08e09fb Support release versions in update. 2014-07-13 11:21:44 +01:00
Daniel James
78dbd170dd Remove loading from a file.
It's never really used.
2014-07-13 11:21:44 +01:00
Daniel James
71292e1c92 Remove redundant statement. 2014-07-13 11:21:43 +01:00
Daniel James
384c6caf59 More module code into BoostSuperProject and use for loading from filesystem. 2014-06-16 10:22:47 +01:00
Daniel James
eff5d514b4 Create super project class. 2014-06-16 10:22:47 +01:00
Daniel James
091ac11df2 Fix modules.
First remove some old code which guessed the module from the library's
key, this was there to bootstrap modules - no need now they're all
stored either in the documentation list, or implicitly by the location
of libraries.json.

Secondly, pass the name of the module as the parameter, rather than the
array containing the module data.
2014-06-08 23:00:51 +01:00
Daniel James
470559acb6 Only squash names for serialized library list.
Because they only need to be squashed for the website page, and that
uses the serialized list. This means that arrays from the metadata will
now be properly preserved.

This is a bit awkward as the serialized list is now different from the
xml file. It might be better to squash names after loading the
serialized file instead, althought that would be a bit less efficient
(premature optimization?).
2014-06-03 19:05:32 +01:00
Daniel James
510d3b91f0 Missing newlines. 2014-06-01 12:56:28 +01:00
Daniel James
1556c9e808 Better loading of metadata outside of git. 2014-04-28 21:42:03 +01:00