Skip to content

Commit

Permalink
Moving 0.8 to 0.9, adding redirects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Evans committed May 9, 2015
1 parent 041cfb1 commit 9de21bd
Show file tree
Hide file tree
Showing 39 changed files with 20 additions and 5 deletions.
4 changes: 3 additions & 1 deletion 0.5/elements/docs-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
</core-submenu>
</core-submenu>

<core-submenu id="0.8" label="Polymer 0.8 (alpha)" icon="av:new-releases" class="guide">
<core-submenu id="0.9" label="Polymer 0.9 (beta)" icon="av:new-releases" class="guide">
<core-item label="About this release"><a href="/0.8/"></a></core-item>
<core-item label="Getting the code"><a href="/0.8/docs/start/getting-the-code.html"></a></core-item>
<core-submenu label="Developer guide" icon="hardware:keyboard-arrow-down" class="guide">
Expand All @@ -113,11 +113,13 @@
<core-item label="Local DOM"><a href="/0.8/docs/devguide/local-dom.html"></a></core-item>
<core-item label="Events"><a href="/0.8/docs/devguide/events.html"></a></core-item>
<core-item label="Data binding"><a href="/0.8/docs/devguide/data-binding.html"></a></core-item>
<core-item label="Behaviors"><a href="/0.8/docs/devguide/behaviors.html"></a></core-item>
<core-item label="Utility functions"><a href="/0.8/docs/devguide/utility-functions.html"></a></core-item>
<core-item label="Global settings"><a href="/0.8/docs/devguide/settings.html"></a></core-item>
<core-item label="Experimental features" icon="warning"><a href="/0.8/docs/devguide/experimental.html"></a></core-item>
</core-submenu>
<core-item label="Migration Guide"><a href="/0.8/docs/migration.html"></a></core-item>
<core-item label="Release notes"><a href="/0.8/docs/release-notes.html"></a></core-item>
</core-submenu>

</core-menu>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions 0.8/elements/docs-menu.html → 0.9/elements/docs-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
</core-submenu>
</core-submenu>

<core-submenu id="0.8" label="Polymer 0.8 (alpha)" icon="av:new-releases" class="guide">
<core-submenu id="0.8" label="Polymer 0.9 (beta)" icon="av:new-releases" class="guide">
<core-item label="About this release"><a href="/{{versionPrefix}}/"></a></core-item>
<core-item label="Get the code"><a href="/{{versionPrefix}}/docs/start/getting-the-code.html"></a></core-item>
<core-submenu label="Developer guide" icon="hardware:keyboard-arrow-down" class="guide">
Expand All @@ -113,11 +113,13 @@
<core-item label="Local DOM"><a href="/{{versionPrefix}}/docs/devguide/local-dom.html"></a></core-item>
<core-item label="Events"><a href="/{{versionPrefix}}/docs/devguide/events.html"></a></core-item>
<core-item label="Data binding"><a href="/{{versionPrefix}}/docs/devguide/data-binding.html"></a></core-item>
<core-item label="Behaviors"><a href="/{{versionPrefix}}/docs/devguide/behaviors.html"></a></core-item>
<core-item label="Utility functions"><a href="/{{versionPrefix}}/docs/devguide/utility-functions.html"></a></core-item>
<core-item label="Global settings"><a href="/{{versionPrefix}}/docs/devguide/settings.html"></a></core-item>
<core-item label="Experimental features" icon="warning"><a href="/{{versionPrefix}}/docs/devguide/experimental.html"></a></core-item>
</core-submenu>
<core-item label="Migration Guide"><a href="/{{versionPrefix}}/docs/migration.html"></a></core-item>
<core-item label="Migration guide"><a href="/{{versionPrefix}}/docs/migration.html"></a></core-item>
<core-item label="Release notes"><a href="/{{versionPrefix}}/docs/release-notes.html"></a></core-item>
</core-submenu>

</core-menu>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(grunt) {
// List of version directories to vulcanize.
var POLYMER_VERSIONS = [
'0.5',
'0.8'
'0.9'
];

// Project configuration.
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ default_version: 0.5 # default version the docs should serve
versions:
'0.5': 'dev preview'
'0.8': 'alpha'
'0.9': 'beta'

add_permalinks: true # adds permalinks to heading tags.
load_disqus: true
6 changes: 5 additions & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
application: polymer-project
version: 2015-04-13
version: 09-databinding
runtime: python27
api_version: 1
threadsafe: yes
Expand Down Expand Up @@ -105,6 +105,10 @@ handlers:
- url: /(apps|docs|platform|resources|tools|articles)/.*
script: main.app

# Obsolete versions need redirects, too.
- url: /0.8/.*
script: main.app

- url: /docs/elements/(core|paper)-elements.html
script: main.app

Expand Down
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def get(self, version=None):

return self.redirect('/%s%s' % (version_dir, self.request.path))

class ObsoleteVersionHandler(webapp2.RequestHandler):

def get(self, version=None):
path = self.request.path.replace('/0.8', '/0.9')
return self.redirect('%s' % path)

routes = [
RedirectRoute('/apps/topeka/', name='topeka',
Expand All @@ -71,6 +76,7 @@ def get(self, version=None):
('/resources/.*', VersionHandler),
('/platform/.*', VersionHandler),
('/articles/.*', VersionHandler),
('/0.8/.*', ObsoleteVersionHandler),
('/$', VersionHandler),
]

Expand Down

0 comments on commit 9de21bd

Please sign in to comment.