Skip to content

Commit

Permalink
Merge branch '16-update-django-base-from-2-0-to-2-1' into 'master'
Browse files Browse the repository at this point in the history
Update Django base from 2.0 to 2.1

Closes #16

See merge request tnir/docs.djangoproject.jp!10
  • Loading branch information
tnir committed Sep 15, 2018
2 parents b834884 + 3e9ed0a commit 4b58af1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

const (
base = "https://docs.djangoproject.com/ja/2.0/"
base = "https://docs.djangoproject.com/ja/2.1/"
prefix = "/en/latest/"
suffix = ".html"
srcPrefix = "_sources/"
Expand Down
62 changes: 31 additions & 31 deletions redirect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (

func TestMapUrlSimple(t *testing.T) {
m := map[string]string{
"": "https://docs.djangoproject.com/ja/2.0/",
"/": "https://docs.djangoproject.com/ja/2.0/",
"/favicon.ico": "https://docs.djangoproject.com/ja/2.0/",
"/en/latest/faq/": "https://docs.djangoproject.com/ja/2.0/faq/",
"/ja/latest/faq/": "https://docs.djangoproject.com/ja/2.0/",
"/en/latest/contents.html": "https://docs.djangoproject.com/ja/2.0/contents/",
"/en/latest/_sources/ref/forms/fields.txt": "https://docs.djangoproject.com/ja/2.0/ref/forms/fields/",
"": "https://docs.djangoproject.com/ja/2.1/",
"/": "https://docs.djangoproject.com/ja/2.1/",
"/favicon.ico": "https://docs.djangoproject.com/ja/2.1/",
"/en/latest/faq/": "https://docs.djangoproject.com/ja/2.1/faq/",
"/ja/latest/faq/": "https://docs.djangoproject.com/ja/2.1/",
"/en/latest/contents.html": "https://docs.djangoproject.com/ja/2.1/contents/",
"/en/latest/_sources/ref/forms/fields.txt": "https://docs.djangoproject.com/ja/2.1/ref/forms/fields/",
}

for k, v := range m {
Expand All @@ -24,30 +24,30 @@ func TestMapUrlSimple(t *testing.T) {

func TestMapUrlMigration(t *testing.T) {
m := map[string]string{
"/en/latest/howto/apache-auth.html": "https://docs.djangoproject.com/ja/2.0/howto/deployment/wsgi/apache-auth/",
"/en/latest/howto/deployment/fastcgi.html": "https://docs.djangoproject.com/ja/2.0/internals/deprecation/#deprecation-removed-in-1-9",
"/en/latest/howto/deployment/modpython.html": "https://docs.djangoproject.com/ja/2.0/internals/deprecation/#deprecation-removed-in-1-5",
"/en/latest/internals/committers.html": "https://docs.djangoproject.com/ja/2.0/internals/organization/#prerogatives",
"/en/latest/internals/documentation.html": "https://docs.djangoproject.com/ja/2.0/internals/contributing/writing-documentation/",
"/en/latest/obsolete/": "https://docs.djangoproject.com/ja/2.0/internals/deprecation/",
"/en/latest/obsolete/admin-css.html": "https://docs.djangoproject.com/ja/2.0/internals/deprecation/",
"/en/latest/ref/authbackends.html": "https://docs.djangoproject.com/ja/2.0/topics/auth/customizing/#authentication-backends",
"/en/latest/ref/contrib/comments/": "https://docs.djangoproject.com/ja/2.0/releases/1.8/#features-removed-in-1-8",
"/en/latest/ref/contrib/comments/custom.html": "https://docs.djangoproject.com/ja/2.0/releases/1.8/#features-removed-in-1-8",
"/en/latest/ref/contrib/csrf.html": "https://docs.djangoproject.com/ja/2.0/ref/csrf/",
"/en/latest/ref/contrib/databrowse.html": "https://docs.djangoproject.com/ja/2.0/releases/1.4/#django-contrib-databrowse",
"/en/latest/ref/contrib/formtools/": "https://docs.djangoproject.com/ja/2.0/releases/1.8/#removal-of-django-contrib-formtools",
"/en/latest/ref/contrib/formtools/form-preview.html": "https://docs.djangoproject.com/ja/2.0/releases/1.8/#removal-of-django-contrib-formtools",
"/en/latest/ref/contrib/localflavor.html": "https://docs.djangoproject.com/ja/2.0/internals/deprecation/#deprecation-removed-in-1-6",
"/en/latest/ref/contrib/webdesign.html": "https://docs.djangoproject.com/ja/2.0/releases/1.8/#django-contrib-webdesign",
"/en/latest/ref/generic-views.html": "https://docs.djangoproject.com/ja/2.0/topics/class-based-views/",
"/en/latest/topics/generic-views-migration.html": "https://docs.djangoproject.com/ja/2.0/topics/class-based-views/",
"/en/latest/topics/http/generic-views.html": "https://docs.djangoproject.com/ja/2.0/topics/class-based-views/",
"/en/latest/topics/generic-views.html": "https://docs.djangoproject.com/ja/2.0/topics/class-based-views/",
"/en/latest/releases/1.0-alpha-1.html": "https://docs.djangoproject.com/ja/2.0/releases/1.0/",
"/en/latest/releases/1.0-alpha-2.html": "https://docs.djangoproject.com/ja/2.0/releases/1.0/",
"/en/latest/releases/1.0-beta.html": "https://docs.djangoproject.com/ja/2.0/releases/1.0/",
"/en/latest/releases/1.1-alpha-1.html": "https://docs.djangoproject.com/ja/2.0/releases/1.1/",
"/en/latest/howto/apache-auth.html": "https://docs.djangoproject.com/ja/2.1/howto/deployment/wsgi/apache-auth/",
"/en/latest/howto/deployment/fastcgi.html": "https://docs.djangoproject.com/ja/2.1/internals/deprecation/#deprecation-removed-in-1-9",
"/en/latest/howto/deployment/modpython.html": "https://docs.djangoproject.com/ja/2.1/internals/deprecation/#deprecation-removed-in-1-5",
"/en/latest/internals/committers.html": "https://docs.djangoproject.com/ja/2.1/internals/organization/#prerogatives",
"/en/latest/internals/documentation.html": "https://docs.djangoproject.com/ja/2.1/internals/contributing/writing-documentation/",
"/en/latest/obsolete/": "https://docs.djangoproject.com/ja/2.1/internals/deprecation/",
"/en/latest/obsolete/admin-css.html": "https://docs.djangoproject.com/ja/2.1/internals/deprecation/",
"/en/latest/ref/authbackends.html": "https://docs.djangoproject.com/ja/2.1/topics/auth/customizing/#authentication-backends",
"/en/latest/ref/contrib/comments/": "https://docs.djangoproject.com/ja/2.1/releases/1.8/#features-removed-in-1-8",
"/en/latest/ref/contrib/comments/custom.html": "https://docs.djangoproject.com/ja/2.1/releases/1.8/#features-removed-in-1-8",
"/en/latest/ref/contrib/csrf.html": "https://docs.djangoproject.com/ja/2.1/ref/csrf/",
"/en/latest/ref/contrib/databrowse.html": "https://docs.djangoproject.com/ja/2.1/releases/1.4/#django-contrib-databrowse",
"/en/latest/ref/contrib/formtools/": "https://docs.djangoproject.com/ja/2.1/releases/1.8/#removal-of-django-contrib-formtools",
"/en/latest/ref/contrib/formtools/form-preview.html": "https://docs.djangoproject.com/ja/2.1/releases/1.8/#removal-of-django-contrib-formtools",
"/en/latest/ref/contrib/localflavor.html": "https://docs.djangoproject.com/ja/2.1/internals/deprecation/#deprecation-removed-in-1-6",
"/en/latest/ref/contrib/webdesign.html": "https://docs.djangoproject.com/ja/2.1/releases/1.8/#django-contrib-webdesign",
"/en/latest/ref/generic-views.html": "https://docs.djangoproject.com/ja/2.1/topics/class-based-views/",
"/en/latest/topics/generic-views-migration.html": "https://docs.djangoproject.com/ja/2.1/topics/class-based-views/",
"/en/latest/topics/http/generic-views.html": "https://docs.djangoproject.com/ja/2.1/topics/class-based-views/",
"/en/latest/topics/generic-views.html": "https://docs.djangoproject.com/ja/2.1/topics/class-based-views/",
"/en/latest/releases/1.0-alpha-1.html": "https://docs.djangoproject.com/ja/2.1/releases/1.0/",
"/en/latest/releases/1.0-alpha-2.html": "https://docs.djangoproject.com/ja/2.1/releases/1.0/",
"/en/latest/releases/1.0-beta.html": "https://docs.djangoproject.com/ja/2.1/releases/1.0/",
"/en/latest/releases/1.1-alpha-1.html": "https://docs.djangoproject.com/ja/2.1/releases/1.1/",
}

for k, v := range m {
Expand Down

0 comments on commit 4b58af1

Please sign in to comment.