From cdb2701f17f23ccef87792657949d09bfc67ea2a Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 21 Jul 2015 12:14:08 +0800 Subject: [PATCH] download link --- docs/download.md | 19 +++++-------------- package.json | 1 + 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/docs/download.md b/docs/download.md index f920d1734b..71363bb7c6 100644 --- a/docs/download.md +++ b/docs/download.md @@ -9,7 +9,7 @@ ## 直接下载 -- **开发版** 1.0.2 +- **开发版** -- **稳定版** 1.0.0 +- **稳定版** - + 下载 - **历史版本**:https://github.com/ant-design/ant-design/releases @@ -86,11 +79,9 @@ $('#latest-links a').each(function(i, item) { if (antdVersion.stable) { $('#stable-version').html(antdVersion.stable); - $('#stable-links a').each(function(i, item) { - $(item).attr('href', $(item).attr('href').replace('dist/antd', 'dist/antd-' + antdVersion.stable)); - }); + $('#stable-link').attr('href', 'https://github.com/ant-design/ant-design/releases/tag/' + antdVersion.stable); } else { $('#stable-version').html('暂无'); - $('#stable-links').hide(); + $('#stable-link').hide(); } diff --git a/package.json b/package.json index c27c5955df..90394c95a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "antd", "version": "0.7.1", + "stableVersion": "0.7.0", "title": "Ant Design", "description": "一个设计&前端框架", "homepage": "http://ant.design/",