We only switched to /blog in 2013, so there's a real chance
that old links would use the bare format. And it's not that
hard to match them and give them the same redirect.
There hasn't been a blog post in 7 years, and there are no
plans to revive it. The existing posts generally fall into
one of two categories:
- news about the pro git book
- technical notes that weren't covered in the 1st edition
of pro git
The former are no longer interesting at all. And the latter
had their content folded into the second edition.
So let's drop this content, as we sometimes get issues
raised about its accuracy and formatting. We want to
redirect people to the actually-maintained book content.
We'll put a short note in the /blog route to help anybody
who follows old links to these posts.
Once upon a time, the idea was that you could update the
site with new book versions by posting to a special endpoint
with a secret token.
But these days we fetch the book material directly to the
rails environment by running a periodic rake task, and then
update the database directly. Let's drop this unused code.
We haven't been populating the database with this for some
time (and any residual records have been gone for almost a
year due to the database transition). And nobody seems to
have noticed.
Let's just give up on the feature in the name of simplicity.
These are historical names for things in /doc, etc. Let's
make them actual redirects so that people see the "official"
URLs (and we may eventually deprecate and remove these).
This currently generates a poorly formatted list of commands
with no actual links to the manpage. It was originally
referenced as part of a command index in a mock-up that went
away in the previous commit.
Probably nobody links to it, but we can easily just redirect
it to our good-looking link-filled command reference page.
Note that this lets us drop the redundant list of commands
in lib/constants.rb.
This is from an old mock-up of the book code. It doesn't
actually work (it returns a 500 probably because the
database schema has changed). The real endpoint is "/books",
so let's redirect there.
Once upon a time this was supposed to generate the `/docs`
index page, but it hasn't been used since b4fc467 (pulled in
jasons changes, moving to using his haml directly,
2012-03-29).
Let's drop it, since it creates hassle when updating the
command list.
This is actually the result I get running `npm install`. It
seems like there are a bunch of unnecessary dependencies in
the package-lock file, some of which have security
vulnerabilities. These don't overly matter, since we use
node only for the stylelint check, but if we're not using
them, it's better to be tidy.
Note that npm also seems to want to use "^" rules instead of
"~" in the actual package.json.