Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
Disable experiment; use download.html (with editor focus, for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwalrath committed Feb 26, 2015
1 parent d312ffa commit 3835729
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 108 deletions.
3 changes: 3 additions & 0 deletions src/appengine/app.yaml
Expand Up @@ -105,6 +105,9 @@ handlers:
- url: /downloads.html
script: scripts.redirector.application

- url: /tools/download-editor.html
script: scripts.redirector.application

- url: /tools/download_archive.*
script: scripts.redirector.application

Expand Down
2 changes: 2 additions & 0 deletions src/appengine/scripts/redirector.py
Expand Up @@ -209,6 +209,8 @@ def trailing_slash(handler, *args, **kwargs):
defaults={'_uri': '/polymer/upgrading-to-polymer-from-web-ui.html'}),
Route('/docs/technical-overview/', RedirectHandler,
defaults={'_uri': '/docs/dart-up-and-running/ch01.html'}),
Route('/tools/download-editor.html', RedirectHandler,
defaults={'_uri': '/tools/download.html'}),
Route('/downloads.html', RedirectHandler,
defaults={'_uri': '/tools/download.html'}),
Route('/tools/download_archive/', RedirectHandler,
Expand Down
16 changes: 0 additions & 16 deletions src/site/_includes/header.html
@@ -1,22 +1,6 @@
<!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/Product">
<head>
{% if page.download_experiment %}
<!-- Google Analytics Content Experiment code -->
<script>function utmx_section(){}function utmx(){}(function(){var
k='51752263-1',d=document,l=d.location,c=d.cookie;
if(l.search.indexOf('utm_expid='+k)>0)return;
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
'<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
'://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
</script><script>utmx('url','A/B');</script>
<!-- End of Google Analytics Content Experiment code -->
{% endif %}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
63 changes: 0 additions & 63 deletions src/site/tools/download-editor.markdown

This file was deleted.

40 changes: 11 additions & 29 deletions src/site/tools/download.markdown
Expand Up @@ -3,7 +3,6 @@ layout: default
title: "Download Dart"
description: "The download bundles that support the Dart language."
has-permalinks: false
download_experiment: true
js:
- url: /js/download-info.js
defer: true
Expand All @@ -23,33 +22,18 @@ js:
</div>
</div>

<div class="windows" markdown="1">
## Download Dart

{% for platform in site.custom.downloads.binaries %}
<div class="{{platform.os}}" markdown="1">
{% include downloads/_get_dart_editor.html %}

## Or download just what you need {#windows-separate-download}
</div>
## Or download just what you need {#dont-download-editor}

<div class="linux" markdown="1">
First install Dart, and then choose your editor.
(Want a one-click download?
Skip to [Step 2](#step-2) and choose **Dart Editor**,
which includes Dart.)
{% capture partial %}downloads/_{{platform.os}}_section.html{% endcapture %}{% include {{partial}} %}
</div>

<div class="macos" markdown="1">
First install Dart, and then choose your editor.
(Want a one-click download?
Skip to [Step 2](#step-2) and choose **Dart Editor**,
which includes Dart.)
</div>

{% for platform in site.custom.downloads.binaries %}
{% capture partial %}downloads/_{{platform.os}}_section.html{% endcapture %}
<div class="{{platform.os}}" markdown="1">
{% include {{partial}} %}
</div>
{% endfor %}

<aside class="alert-info alert" markdown="1">
Expand All @@ -61,21 +45,19 @@ It also has the latest **dev channel** builds,
which let you try new features a few weeks earlier than the stable channel.
</aside>

<div id="step-2">
<div class="windows" markdown="1">
### Pick an editor

[Dart Editor](/tools/editor/) isn't your only choice.
The following plugins add Dart smarts to popular code editors.

{% include downloads/_other_editors.markdown %}
</div>

<div class="linux" markdown="1">
{% include downloads/_step2_pick_an_editor.markdown %}
### Step 2: Pick an editor {#step-2-pick-an-editor-linux}
</div>

<div class="macos" markdown="1">
{% include downloads/_step2_pick_an_editor.markdown %}
</div>
### Step 2: Pick an editor {#step-2-pick-an-editor-mac}
</div>

[Dart Editor](/tools/editor/) isn't your only choice.
The following plugins add Dart smarts to popular code editors.

{% include downloads/_other_editors.markdown %}

0 comments on commit 3835729

Please sign in to comment.