Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-02-07 17:16:51 +0300
committerJeff King <peff@peff.net>2018-02-07 17:18:15 +0300
commit395a6f2acf0637d2d45ff7592b935f3290166bb1 (patch)
treef2df420de41329ee9b43ac00a71f312a7df30eeb /config
parentc635f6b477ac85bce0088ad9c3128c86591b3a3a (diff)
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.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 260f4e3f..58c61948 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -36,7 +36,7 @@ Gitscm::Application.routes.draw do
get "/ch:chapter-:section.html" => "books#chapter"
get "/:lang/ch:chapter-:section.html" => "books#chapter"
get "/index" => redirect("/book")
- get "/commands" => "books#commands"
+ get "/commands" => redirect("/docs")
get "/:lang/v:edition" => "books#show"
get "/:lang/v:edition/:slug" => "books#section"
get "/:lang/v:edition/:chapter/:link" => "books#link", chapter: /(ch|app)\d+/