-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ProGit v1 redirects #1915
base: gh-pages
Are you sure you want to change the base?
Add ProGit v1 redirects #1915
Commits on Nov 11, 2024
-
Add a script to figure out the ProGit v1 URLs
In 2014, the second edition of the ProGit book was started, in 2016 this edition became the default, and in 2020 all v1 URLs were redirected to the landing page of v2. At some stage, the v1 links stopped working, returning a "500 Internal server error". After switching the git-scm.com site to a static Hugo-generated site, those links now return a "404 That page doesn't exist". This is far from an ideal situation. Unfortunately, in a static site, there is no way to install wildcard routes that would redirect to a better URL, therefore we have to enumerate all of the URLs that we want to redirect. Internet Archive to the rescue! This script downloads the tables of contents of the ProGit v1 book and its translations, and determines the URLs that had been active back then, maps them to the v2 equivalents (on a best effort basis), and then writes out a YAML file with that information. Signed-off-by: Johannes Schindelin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 94ea890 - Browse repository at this point
Copy the full SHA 94ea890View commit details -
data: add ProGit v1 -> v2 mapping
This file was generated by running script/extract-book-v1-urls.rb. Signed-off-by: Johannes Schindelin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 94dbb1e - Browse repository at this point
Copy the full SHA 94dbb1eView commit details -
The `File.write(path, content)` form is quite a bit more readable than the long form. Signed-off-by: Johannes Schindelin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0fc0898 - Browse repository at this point
Copy the full SHA 0fc0898View commit details -
ci(update-book): the English version owns
/book/index.html
The default language of the ProGit book is English, therefore https://git-scm.com/book should redirect to the table of contents of the English version of that book. This means that the `/external/book/content/book/en/_index.html` file needs to be part of the sparse checkout, otherwise the workflow run would not be able to update it (should it ever become necessary). This was not a problem so far because that file remained unchanged (and is likely to remain so for quite some time yet). Signed-off-by: Johannes Schindelin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0591bf3 - Browse repository at this point
Copy the full SHA 0591bf3View commit details -
book: add aliases for the old ProGit v1 links
Once upon a time, there first edition of the ProGit book was available on Git's home page, and the sun was shining. Then, one day in 2014, the sun shone brighter and work was begun to write the second edition of this book. At some stage, this became the default when directing web browsers to https://git-scm.com/book, and a few years later, 2020 or so, the links that formerly led to the first edition would redirect to v2. Then, one day, clouds moved across the sky and the redirects from v1 to v2 stopped working and instead a "500 Internal server error" page was shown. Time went by and nobody really knew how to fix it (or more likely, wasn't in the mood, or wanted other people to fix it). Finally, in the fall of 2024, git-scm.com was switched to a static web site, generated using Hugo, and local development became much easier. Naturally, the v1-to-v2 redirects were no longer in place and the v1 links therefore showed 500 no longer, but a 404. Still, nobody knew how to fix it, or wasn't in the mood, or wanted other people to fix it for them. Until now. Now is the day when we resurrect the v1-to-v2 redirects, in even more glory than ever before, for now we redirect to the v2 sections that correspond to the v1 sections (as far as possible, that is)! Only one (slight) fly in the ointment: URLs to v1 sections of the book which contain anchors will keep those anchors as-are, and not translate them to the corresponding new anchors. Example: Git-Basics-Getting-a-Git-Repository#Cloning-an-Existing-Repository should redirect to v2/Git-Basics-Getting-a-Git-Repository#_git_cloning, but does not. It redirects to that page but still tries to find the anchor `#Cloning-an-Existing-Repository`. Alas, this is where I do not know how to fix it, or ain't in the mood, or want other people to fix it for themselves. This commit addresses git#1782 Signed-off-by: Johannes Schindelin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7597087 - Browse repository at this point
Copy the full SHA 7597087View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54fe5e1 - Browse repository at this point
Copy the full SHA 54fe5e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73ff03d - Browse repository at this point
Copy the full SHA 73ff03dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c25dc1 - Browse repository at this point
Copy the full SHA 2c25dc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf5ff78 - Browse repository at this point
Copy the full SHA bf5ff78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fe02c6 - Browse repository at this point
Copy the full SHA 9fe02c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7d3e01 - Browse repository at this point
Copy the full SHA e7d3e01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e9ee74 - Browse repository at this point
Copy the full SHA 2e9ee74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 186ef74 - Browse repository at this point
Copy the full SHA 186ef74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b50155 - Browse repository at this point
Copy the full SHA 7b50155View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ee4f05 - Browse repository at this point
Copy the full SHA 9ee4f05View commit details -
Configuration menu - View commit details
-
Copy full SHA for a572405 - Browse repository at this point
Copy the full SHA a572405View commit details -
Configuration menu - View commit details
-
Copy full SHA for 116f18f - Browse repository at this point
Copy the full SHA 116f18fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5e33e5 - Browse repository at this point
Copy the full SHA f5e33e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d785435 - Browse repository at this point
Copy the full SHA d785435View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8d6fc5 - Browse repository at this point
Copy the full SHA e8d6fc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 196bc70 - Browse repository at this point
Copy the full SHA 196bc70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9945ab3 - Browse repository at this point
Copy the full SHA 9945ab3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c212f1 - Browse repository at this point
Copy the full SHA 9c212f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 148a8b6 - Browse repository at this point
Copy the full SHA 148a8b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9157fb6 - Browse repository at this point
Copy the full SHA 9157fb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a663ac - Browse repository at this point
Copy the full SHA 7a663acView commit details -
Configuration menu - View commit details
-
Copy full SHA for d73e7a6 - Browse repository at this point
Copy the full SHA d73e7a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40115bb - Browse repository at this point
Copy the full SHA 40115bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20dff42 - Browse repository at this point
Copy the full SHA 20dff42View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5f1b4e - Browse repository at this point
Copy the full SHA e5f1b4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27ed14c - Browse repository at this point
Copy the full SHA 27ed14cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 336be63 - Browse repository at this point
Copy the full SHA 336be63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 841f9b4 - Browse repository at this point
Copy the full SHA 841f9b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12ee764 - Browse repository at this point
Copy the full SHA 12ee764View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54275b7 - Browse repository at this point
Copy the full SHA 54275b7View commit details -
Merge branch 'book-be' of bundle-be/be.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 5c481f9 - Browse repository at this point
Copy the full SHA 5c481f9View commit details -
Merge branch 'book-bg' of bundle-bg/bg.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for efb0c32 - Browse repository at this point
Copy the full SHA efb0c32View commit details -
Merge branch 'book-cs' of bundle-cs/cs.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 96c9cc9 - Browse repository at this point
Copy the full SHA 96c9cc9View commit details -
Merge branch 'book-de' of bundle-de/de.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 492e526 - Browse repository at this point
Copy the full SHA 492e526View commit details -
Merge branch 'book-en' of bundle-en/en.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 6d360bb - Browse repository at this point
Copy the full SHA 6d360bbView commit details -
Merge branch 'book-es' of bundle-es/es.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 6abf276 - Browse repository at this point
Copy the full SHA 6abf276View commit details -
Merge branch 'book-fr' of bundle-fr/fr.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 492af69 - Browse repository at this point
Copy the full SHA 492af69View commit details -
Merge branch 'book-gr' of bundle-gr/gr.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 1a0a44c - Browse repository at this point
Copy the full SHA 1a0a44cView commit details -
Merge branch 'book-id' of bundle-id/id.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 473d684 - Browse repository at this point
Copy the full SHA 473d684View commit details -
Merge branch 'book-it' of bundle-it/it.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 78a931f - Browse repository at this point
Copy the full SHA 78a931fView commit details -
Merge branch 'book-ja' of bundle-ja/ja.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for d92f6be - Browse repository at this point
Copy the full SHA d92f6beView commit details -
Merge branch 'book-ko' of bundle-ko/ko.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for b7c85c4 - Browse repository at this point
Copy the full SHA b7c85c4View commit details -
Merge branch 'book-mk' of bundle-mk/mk.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for bcee6d5 - Browse repository at this point
Copy the full SHA bcee6d5View commit details -
Merge branch 'book-ms' of bundle-ms/ms.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 37ccb4a - Browse repository at this point
Copy the full SHA 37ccb4aView commit details -
Merge branch 'book-nl' of bundle-nl/nl.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 600edb6 - Browse repository at this point
Copy the full SHA 600edb6View commit details -
Merge branch 'book-pl' of bundle-pl/pl.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for ad0d271 - Browse repository at this point
Copy the full SHA ad0d271View commit details -
Merge branch 'book-pt-br' of bundle-pt-br/pt-br.bundle into book-v1-r…
…edirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for e4c240a - Browse repository at this point
Copy the full SHA e4c240aView commit details -
Merge branch 'book-pt-pt' of bundle-pt-pt/pt-pt.bundle into book-v1-r…
…edirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 9595fe4 - Browse repository at this point
Copy the full SHA 9595fe4View commit details -
Merge branch 'book-ru' of bundle-ru/ru.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 708d8c2 - Browse repository at this point
Copy the full SHA 708d8c2View commit details -
Merge branch 'book-sl' of bundle-sl/sl.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 7ad0bb7 - Browse repository at this point
Copy the full SHA 7ad0bb7View commit details -
Merge branch 'book-sr' of bundle-sr/sr.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 5aaf357 - Browse repository at this point
Copy the full SHA 5aaf357View commit details -
Merge branch 'book-tl' of bundle-tl/tl.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for a54a4af - Browse repository at this point
Copy the full SHA a54a4afView commit details -
Merge branch 'book-tr' of bundle-tr/tr.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 06be71f - Browse repository at this point
Copy the full SHA 06be71fView commit details -
Merge branch 'book-sv' of bundle-sv/sv.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 0d02288 - Browse repository at this point
Copy the full SHA 0d02288View commit details -
Merge branch 'book-uk' of bundle-uk/uk.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 9c859c5 - Browse repository at this point
Copy the full SHA 9c859c5View commit details -
Merge branch 'book-uz' of bundle-uz/uz.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 2f7b6f6 - Browse repository at this point
Copy the full SHA 2f7b6f6View commit details -
Merge branch 'book-zh' of bundle-zh/zh.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 6138fb7 - Browse repository at this point
Copy the full SHA 6138fb7View commit details -
Merge branch 'book-zh-tw' of bundle-zh-tw/zh-tw.bundle into book-v1-r…
…edirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 528a5c2 - Browse repository at this point
Copy the full SHA 528a5c2View commit details -
Merge branch 'book-fa' of bundle-fa/fa.bundle into book-v1-redirects
dscho committedNov 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 8d9bfac - Browse repository at this point
Copy the full SHA 8d9bfacView commit details