Граф коммитов

76 Коммитов

Автор SHA1 Сообщение Дата
pedrorijo91 5723e32710
Merge branch 'master' into v2 2019-02-17 22:29:40 +00:00
Mark Tareshawty 5e45ecb997
Fix scoping so that we don't break the naming convention 2018-11-20 07:51:23 -05:00
Mark Tareshawty d10fcb3c25
Merge branch 'master' into v2 2018-11-12 18:21:38 -05:00
Mark Tareshawty 930741d1f5
Use Rails routing helpers to cleanup routes file 2018-11-12 10:35:37 -05:00
Mark Tareshawty 454ebb52cf
Update code using rubocop's autocorrect linter 2018-10-28 19:08:14 -04:00
Mark Tareshawty 160dc76c7f
Merge branch 'master' into v2 2018-03-14 16:10:31 -04:00
Mark Tareshawty d1d4e4d681
Run ./bin/rake rails:update and apply changes 2018-03-11 16:07:18 -04:00
Jason Long 678fa76b96
Merge branch 'master' into v2
* master:
  Fix const reference
  Add Heroku generated app.json
  Remove REDIRECT and supporting code
  Update uses of constants
  Remove loading of constants from lib
  Move lib/constants.rb to be under initializers
  license: update years and authors
  add "about this site" page
  architecture: mention /download/win page-rule exception
  add architecture document
  Progit: make first edition translations disappear.
  Remove uses of should
  Use RSpec.describe instead of just describe
  re run rspec `rails generate rspec:install` and update config
  Bump uglify
  Bundle update after rebase
  Fix pg version
  Fix uglify version
  Bump  gemfile
2018-03-09 17:38:10 -05:00
Jeff King 1f3427f7fd add "about this site" page
This patch adds an "about this site" page and links to it
from the footer (where we previously just linked straight to
the git-scm.com repo).  This serves a few purposes:

  - we lay out the relationship between the various bits of
    site content. This clarifies the licensing, and
    hopefully directs bug reporters to the right place.

  - we credit Scott, who has moved on but without whom the
    site would absolutely not exist in its current form

  - it gives us a place to credit the companies that are
    sponsoring us with resources
2018-03-06 23:12:19 +01:00
Mark Tareshawty cccede028a
Add doc(s) -> manual(s) redirection 2018-02-27 21:21:04 -05:00
Mark Tareshawty bd812250e7
Clean up routes so that are easier to read 2018-02-27 21:13:54 -05:00
Mark Tareshawty 580d06f21c
Lint and properly format the routes file 2018-02-27 18:28:04 -05:00
Jeff King 7c59eaa186 routes: restore bare /year/month/date/slug blog route
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.
2018-02-08 05:00:39 -05:00
Jeff King dd8b9d57e6 drop blog content
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.
2018-02-08 04:25:27 -05:00
Jeff King 67d3d9b9f9 drop UPDATE_TOKEN code
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.
2018-02-08 03:23:56 -05:00
Jeff King 0529ef9c94 drop "related items" 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.
2018-02-08 03:13:31 -05:00
Jeff King 13e0e7bf85 routes: clean up documentation/ routes
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).
2018-02-07 09:26:16 -05:00
Jeff King 395a6f2acf redirect /book/commands to /docs
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.
2018-02-07 09:18:15 -05:00
Jeff King c635f6b477 drop doc#book endpoint
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.
2018-02-07 09:12:58 -05:00
Jason Long 8442ef7dfe
Remove RSS feed 2018-01-15 16:14:56 -05:00
chotuaashiq 59be4cb4c2 Corrected the routes.rb file 2017-12-20 10:48:25 +05:30
chotuaashiq 64a1becd78 Trademark both links working now, Duplicacy removed 2017-12-20 01:00:11 +05:30
Jeff King ce63db9a45 drop /admin route
This just shows a list of the downloads pulled down from the
`download` task. Potentially useful for remote-admin, I
guess, but it falls far short of what's needed for actual
debugging (and I can't think of a single time when it would
have been helpful).

It also seems to cause rendering exceptions on the
production site when spam requests look at it.

Let's just drop it as ancient and not-useful.
2017-10-11 13:27:03 -04:00
Jeff King 775101e178 doc: drop "test" route
This looks like debugging cruft added in 97bc298 (implement
ref version dropdown, 2012-04-17), and hasn't been kept up
to date (it tries to show the rebase page but doesn't
actually work).

This isn't a huge deal, but requesting `/test.zip` (which
some spam scripts do) results in an exception.
2017-10-11 13:20:51 -04:00
Jeff King 0315fd28be books: fix historical redirects
When we see "/book/4_git_treeishes", we route it via a
redirect table to "/book/en/Git-Tools-Revision-Selection".
However that URL is generated by feeding "en/..." to the
book_lang_path() helper from the routes table, which quotes
the "/", breaking the link.

We can work around this by splitting the two parts and
feeding them to the "book/:lang/:slug" route instead.
2017-01-21 08:36:23 -05:00
Scott Chacon 21632d44eb update API 2014-10-26 20:38:39 +01:00
Scott Chacon 0f26f69f7c xrefs all seem to work 2014-10-25 00:48:11 +02:00
Scott Chacon f807bda862 fix related task 2014-10-25 00:48:10 +02:00
Scott Chacon 05cde2511a prepare for progit v2 2014-10-23 16:50:26 +01:00
bry4n 5daa767493 Redirect to howto file 2014-08-25 19:25:07 -05:00
bry4n dfb9e5b46d Rails 4.1.4 2014-07-24 20:11:49 -05:00
Jeff King d669f6c6ed add trademark policy at /trademark
This policy was written by Software Freedom Conservancy's
legal counsel on behalf of the Git Project. It needs to be
posted publicly; this patch starts by making it available,
and we'll link to it in future commits.
2014-05-06 19:18:56 -04:00
bry4n 0c9707393c Handle old book site's url path 2014-01-21 21:00:08 -06:00
Max Edmands fe0e16aec1 Add RSS feed for blog 2013-08-08 00:19:59 -07:00
Scott Chacon aff1fd7ae4 add in older slugs which were there for a reason 2013-05-05 10:18:14 +02:00
Diogo André bab365e239 Blog entries are visible again.Also making some small changes to blog structure.
We can keep adding blog posts by just adding .markdown or .html files to the app/view/blog/posts directory (it was blog/progit before).
2013-04-10 11:54:26 -03:00
Scott Chacon 9044838294 contributors redirect to github 2012-12-14 10:38:18 -08:00
bry4n 1f3b660c82 update book routes 2012-09-24 09:14:07 -05:00
bry4n ed18f4ea85 refactor download routes 2012-08-07 02:00:45 -05:00
bry4n 936bc5db29 partially clean up the routes for downloads and blog page 2012-07-31 00:51:59 -05:00
bry4n ef01c37b0c move some codes to books controller 2012-07-23 21:34:51 -05:00
Scott Chacon efafc986be route for easily getting the latest git version
$ curl http://git-scm.com/downloads/latest
  1.7.10.2
2012-05-30 06:39:39 -07:00
Nick Hengeveld bb29347f71 Handle doc routes with '.' (eg. gitweb.conf) 2012-05-17 17:00:46 -07:00
Scott Chacon a21a0269dd add git as a man path to fix #110 2012-05-14 17:37:29 -07:00
Scott Chacon 95d21703a8 Merge pull request #99 from koraktor/man-route
Added route for /man/*
2012-05-11 14:05:21 -07:00
Sebastian Staudt 55e6a5e015 Let /man/* and /ref/* redirect to /docs/* 2012-05-11 22:54:12 +02:00
Sebastian Staudt 2a477b4d0a Added route for /man/* 2012-05-11 22:50:02 +02:00
Sebastian Staudt e93b1f16b2 Prepend 'git-' to man pages
This allows for shorter URLs like /docs/commit that will redirect to the
correct ones.
2012-05-11 22:49:26 +02:00
Scott Chacon f844ada98d a couple of redirects 2012-05-07 08:14:03 -07:00
Scott Chacon 3a2489be7e add video listing and viewing for the first 4 videos 2012-05-03 16:39:44 -07:00