cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From riknoll <...@git.apache.org>
Subject [GitHub] cordova-docs pull request: Adding both Chinese versions.
Date Thu, 31 Mar 2016 22:57:43 GMT
Github user riknoll commented on a diff in the pull request:

    https://github.com/apache/cordova-docs/pull/569#discussion_r58141431
  
    --- Diff: www/.htaccess ---
    @@ -18,29 +18,31 @@ RewriteEngine on
     #       pages to new pages.
     
     # 302 (temp):
    -#       docs     -> docs/en/latest/
    -#       docs/    -> docs/en/latest/
    -#       docs/XX  -> docs/XX/latest/
    -#       docs/XX/ -> docs/XX/latest/
    +#       docs/          -> docs/[default language]/
    +#       docs/XX        -> docs/XX/
    +#       docs/XX/       -> docs/XX/latest
    +#       docs/XX/latest -> docs/XX/latest/
     #
     # NOTE:
    -#       these can both apply, turning "/docs" into "/docs/en/latest/"
    -RewriteRule ^.*docs/$ {{site.baseurl}}/docs/en/
    -RewriteRule ^.*docs/(\w\w)/$ {{site.baseurl}}/docs/$1/latest/ [R=302,L]
    -
    -# 302 (temp):
    -#       docs/XX/latest -> docs/XX/latest/
    -RewriteRule ^.*docs/(\w\w)/latest$ {{site.baseurl}}/docs/$1/latest/ [R=302,L]
    +#       these can all apply, turning "/docs" into "/docs/[default language]/latest/"
    +RewriteRule ^.*docs/$ {{site.baseurl}}/docs/{{site.language}}/
    +RewriteRule ^.*docs/(\w\w(?:-\w\w)?)$ {{site.baseurl}}/docs/$1/
    --- End diff --
    
    Yeah! That's what I was suggesting


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message