Merge branch 'master' of github.com:ant-design/ant-design

This commit is contained in:
yiminghe 2015-07-20 14:32:35 +08:00
commit 3b422072c0
2 changed files with 88 additions and 90 deletions

View File

@ -12,15 +12,15 @@
<div id="bannerAnim"></div> <div id="bannerAnim"></div>
<div class="banner-img fn-alpha-out"></div> <div class="banner-img fn-alpha-out"></div>
<div class="banner-entry fn-hide"> <div class="banner-entry fn-hide">
<div class="entry-title">Ant</div> <div class="entry-title">Ant</div>
<div class="entry-title">Design</div> <div class="entry-title">Design</div>
<div class="entry-slogan"> <div class="entry-slogan">
{{ config.site.description }} {{ config.site.description }}
</div> </div>
<a class="entry-link" href="/docs/introduce"> <a class="entry-link" href="/docs/introduce">
<i class="iconfont-home icon-lego"></i> <i class="iconfont-home icon-lego"></i>
开始使用 开始使用
</a> </a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
@ -18,106 +18,104 @@
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/style.css">
<link rel="stylesheet" href="/static/tomorrow.css"> <link rel="stylesheet" href="/static/tomorrow.css">
<script> <script>
(function (con) { (function (con) {
'use strict'; 'use strict';
var prop, method; var prop, method;
var empty = {}; var empty = {};
var dummy = function () { var dummy = function () {
}; };
var properties = 'memory'.split(','); var properties = 'memory'.split(',');
var methods = ('assert,clear,count,debug,dir,dirxml,error,exception,group,' + var methods = ('assert,clear,count,debug,dir,dirxml,error,exception,group,' +
'groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,' + 'groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,' +
'show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn').split(','); 'show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn').split(',');
while (prop = properties.pop()) { while (prop = properties.pop()) {
con[prop] = con[prop] || empty; con[prop] = con[prop] || empty;
} }
while (method = methods.pop()) { while (method = methods.pop()) {
con[method] = con[method] || dummy; con[method] = con[method] || dummy;
} }
})(this.console = this.console || {}); })(this.console = this.console || {});
</script> </script>
<script src="https://a.alipayobjects.com/??bluebird/2.9.30/bluebird.js,jquery/jquery/1.11.1/jquery.js,es5-shim/4.0.5/es5-shim-debug.js,es5-shim/4.0.5/es5-sham-debug.js,html5shiv/3.7.2/src/html5shiv.js,react/0.13.3/react.js,react-router/0.13.3/ReactRouter.js"></script> <script src="https://a.alipayobjects.com/??bluebird/2.9.30/bluebird.js,jquery/jquery/1.11.1/jquery.js,es5-shim/4.0.5/es5-shim-debug.js,es5-shim/4.0.5/es5-sham-debug.js,html5shiv/3.7.2/src/html5shiv.js,react/0.13.3/react.js,react-router/0.13.3/ReactRouter.js"></script>
<script> <script>
var ANT_COMPONENTS=[]; var ANT_COMPONENTS=[];
{%- for item in resource.pages %} {%- for item in resource.pages %}
{%- if item.meta.category === 'Components' %} {%- if item.meta.category === 'Components' %}
ANT_COMPONENTS.push({ ANT_COMPONENTS.push({
title: '{{item.title}}', title: '{{item.title}}',
desc: '{{item.meta.chinese}}' desc: '{{item.meta.chinese}}'
}); });
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
</script> </script>
<script src="/static/script.js"></script> <script src="/static/script.js"></script>
<script> <script>
window.antdVersion = { window.antdVersion = {
latest: '{{config.package.version}}', latest: '{{config.package.version}}',
stable: '{{config.package.stableVersion}}' stable: '{{config.package.stableVersion}}'
}; };
</script> </script>
<script src="/dist/{{ config.package.name }}-{{ config.package.version }}.js"></script> <script src="/dist/{{ config.package.name }}-{{ config.package.version }}.js"></script>
<script src="/dist/demo.js"></script> <script src="/dist/demo.js"></script>
<script> <script>
window.require = function (path) { window.require = function (path) {
var result = window; var result = window;
var namespaces = path.split('/'); var namespaces = path.split('/');
namespaces.forEach(function (key, i) { namespaces.forEach(function (key, i) {
if (i !== 0 && i === namespaces.length - 1) { if (i !== 0 && i === namespaces.length - 1) {
key = capitalizeFirstLetter(key); key = capitalizeFirstLetter(key);
} }
if (key !== 'lib') { if (key !== 'lib') {
if (result[key]) { if (result[key]) {
result = result[key]; result = result[key];
} else { } else {
throw 'There should not have modules here 2.'; throw 'There should not have modules here 2.';
}
}
});
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
} }
}
});
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
return result; return result;
}; };
</script> </script>
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}
</head> </head>
<body {% block bodyAttribute %}{% endblock %}> <body {% block bodyAttribute %}{% endblock %}>
<header id="header"> <header id="header">
<a class="logo" href="/"> <a class="logo" href="/">
<img width="60" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg"> {{ config.site.name }} <img width="60" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg"> {{ config.site.name }}
</a> </a>
<div class="search" >
<div class="search" >
<form> <form>
<div id="autoComplete"></div> <div id="autoComplete"></div>
</form> </form>
</div> </div>
<nav class="nav"> <nav class="nav">
<span class="bar"></span> <span class="bar"></span>
<ul> <ul>
<li class="{%- if post.meta.filepath === 'README.md' %}current{%- endif %}"> <li class="{%- if post.meta.filepath === 'README.md' %}current{%- endif %}">
<a href="/">首页</a> <a href="/">首页</a>
</li> </li>
<li class="{%- if post.directory|rootDirectoryIs('docs') %}current{%- endif %}"> <li class="{%- if post.directory|rootDirectoryIs('docs') %}current{%- endif %}">
<a href="/docs/introduce">使用</a> <a href="/docs/introduce">使用</a>
</li> </li>
<li class="{%- if post.directory|rootDirectoryIs('design') %}current{%- endif %}"> <li class="{%- if post.directory|rootDirectoryIs('design') %}current{%- endif %}">
<a class="disabled" href="/design/">设计</a> <a class="disabled" href="/design/">设计</a>
</li> </li>
<li class="{%- if post.directory|rootDirectoryIs('components') %}current{%- endif %}"> <li class="{%- if post.directory|rootDirectoryIs('components') %}current{%- endif %}">
<a href="/components">组件</a> <a href="/components">组件</a>
</li> </li>
<li> <li>
<a target="_blank" href="https://github.com/ant-design/ant-design">Github</a> <a target="_blank" href="https://github.com/ant-design/ant-design">Github</a>
</li> </li>
</ul> </ul>
</nav> </nav>
</header> </header>
<div class="main-wrapper"> <div class="main-wrapper">
{% block aside %}{% endblock %} {% block content %}{% endblock %} {% block aside %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
{%- include "footer.html" %} {%- include "footer.html" %}
</body> </body>
</html> </html>