Commit Graph

855 Commits

Author SHA1 Message Date
Benjy Cui
eddd1db3e9 site: fix config, ref: a73d0504 2017-09-11 13:55:00 +08:00
afc163
7bee69a9df Merge from master 2017-09-08 16:49:58 +08:00
afc163
e77108c775 site: update page background 2017-09-08 13:44:52 +08:00
afc163
fb8fec6d3a site: remove font smoothing style 2017-09-08 13:36:10 +08:00
afc163
78c1bebd7a Merge branch 'master' into antd-3.0 2017-09-06 13:43:00 +08:00
paranoidjk
a73d0504ca site: dev use uncompressed bundle. close #7383 (#7472) 2017-09-06 09:19:35 +08:00
afc163
68139cdbda Add some icons 2017-09-05 17:13:46 +08:00
afc163
6cb3ae46a2 site: update color picker position 2017-09-04 12:24:40 +08:00
afc163
24e2af63f2 site: update footer style 2017-09-04 11:55:45 +08:00
Wei Zhu
471da70c1e site: Add a primary color change button (#7401) 2017-09-03 22:15:33 +08:00
Manweill
dc1d0af64e 官网首页的搜索框,当按下键盘s的时候,会获取焦点 (#7267)
* 官方首页的搜索框,当按下键盘s的时候,会获取焦点

* use AutoComplete

* 移除 this.state.focused

* bugfix
2017-08-31 11:47:53 +08:00
afc163
65c86e60ce fix hash jump again 2017-08-27 19:03:36 +08:00
afc163
f9273bc95a remove repeat hash jump 2017-08-17 11:51:14 +08:00
afc163
33f37debd7 tweak site style 2017-08-16 10:49:54 +08:00
afc163
8e744545ff code style 2017-08-16 10:38:37 +08:00
afc163
d3ec477f8f Add NG-ZORRO links 2017-08-15 23:00:06 +08:00
afc163
5443e79329 improve code expand style 2017-08-15 21:00:31 +08:00
afc163
48f7d22929 site: improve code collapse icon design 2017-08-15 17:20:47 +08:00
Benjy Cui
87c8c7ad67 site: fix toc background color, close: #7199 2017-08-15 09:56:43 +08:00
afc163
57e3be2c32 Fix select popupContainer in site header 2017-08-14 22:57:45 +08:00
afc163
6a17efcbf1 upgrade some devDeps and fix stylelint 2017-08-04 18:01:40 +08:00
Amorites
29d2a756b0 site: place 'search...' at the bottom of the search options (#7021) (#7022) 2017-07-31 13:54:31 +08:00
afc163
81a010e0ae fix product name 2017-07-11 19:31:06 +08:00
afc163
032d3bea12 Support open demo in riddle 2017-07-10 22:17:52 +08:00
afc163
66a731b4c2 site: open demo in codepen with prefill code, close #5140 2017-07-07 16:09:02 +08:00
afc163
d00d631ef2 change team name 2017-07-04 10:15:24 +08:00
afc163
a65ff1c2df fix site style 2017-06-26 13:33:59 +08:00
Minqi Pan
d0bbfd3d2d Add Enclose.IO link in footer 2017-06-25 20:00:06 +08:00
Benjy Cui
1debb624f3 site: fix build warning for #5646 2017-06-16 10:56:56 +08:00
afc163
d7a29f682b upgrade Col span format in demo 2017-06-15 15:34:47 +08:00
afc163
3202d28cb9 Add mobile.ant.design link in menu, close #3079 2017-06-12 10:41:11 +08:00
afc163
ef79554bd1 AFUX 2017-06-08 18:22:06 +08:00
afc163
d7837da175 Fix icon API documentation 2017-06-07 17:06:21 +08:00
afc163
deebe4d973 site: tweak style 2017-05-28 15:35:49 +08:00
afc163
f9017c677c upgrade react-color 2017-05-18 21:18:53 +08:00
afc163
8703145d70 Fix prop-types and createClass warning, #5678 2017-05-18 14:22:47 +08:00
Benjy Cui
82bfa3dcde site: update text 2017-05-17 12:09:17 +08:00
Benjy Cui
067d1af287 site: add warning for not translated articles, close: #5404 2017-05-17 11:34:08 +08:00
Benjy Cui
61d6cf14ff deps: upgrade eslint relative deps 2017-05-15 12:10:28 +08:00
afc163
7daf47b5b1 Add scaffold market link 2017-05-13 16:12:35 +08:00
afc163
811ecfddf6 Add fork icon 2017-05-11 13:30:38 +08:00
Tyler
919cb22eb7 Use the prop-types package from npm instead of React.PropTypes (#6057)
* Use the prop-types package from npm instead of React.PropTypes

* Remove using of PropTypes from React in docs and site
2017-05-09 13:40:33 +08:00
Jonatas Walker
7b3459fcb5 Fix site typos (#6043) 2017-05-06 21:04:29 +08:00
afc163
085f196dbd fix color palette tool 2017-04-20 15:54:44 +08:00
afc163
927c55bb4a site: fix style 2017-04-17 22:19:43 +08:00
afc163
228cc9eff4 update code demo title style 2017-04-15 15:32:51 +08:00
afc163
031aa14090 Add Hotjar Tracking Code 2017-04-12 21:17:04 +08:00
Manjit Kumar
4e055ed5d0 use PropTypes from 'prop-types' mdoule instead of React
- as React.PropTypes is being deprecated
 - Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
 - Solution: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-04-12 02:22:05 +05:30
afc163
3ca3c178cc Add English gitter chat room 2017-04-11 18:13:58 +08:00
afc163
e93dd1e5af site: fix menu item 2017-04-07 15:14:14 +08:00
afc163
0793534665 Add ga event analytic code 2017-04-07 14:29:44 +08:00
Benjy Cui
ebb3a7937a docs: fix typo 2017-04-06 10:16:46 +08:00
Benjy Cui
029289c6f5 docs: update categories' name, close internal: #189 2017-04-06 09:31:46 +08:00
afc163
352e0f7ce4 tweak link text-decoration style 2017-04-05 14:58:41 +08:00
偏右
accb6cbfeb Merge pull request #5597 from kenaniah/accessibility
Improves link + button focusing
2017-04-05 14:56:33 +08:00
afc163
f230f61c23 Improve docs detail 2017-04-02 14:03:42 +08:00
Kenaniah Cerny
ed434c57e9 improves link navigation 2017-04-01 04:06:34 -07:00
afc163
b526083fa6 set monospaced font-family for number 2017-03-31 13:45:16 +08:00
Benjy Cui
dda79aa88e site: add link to design platform 2017-03-30 09:29:13 +08:00
Benjy Cui
57674fc778 site: fix site in IE9, ref: #5526 2017-03-29 15:31:01 +08:00
Benjy Cui
50f46d0919 feat: merge Select[multiple|tags|combobox] to Select[mode], close: #5471 (#5534) 2017-03-28 21:27:58 +08:00
jiang
00326db74e fix scrollAnim hideProps header … (#5506)
* fix https://github.com/react-component/scroll-anim/issues/19, header switch

* fix home icon down animation
2017-03-27 14:03:28 +08:00
afc163
5de18676db update team name 2017-03-27 11:22:00 +08:00
afc163
3740fb7f3c Improve iframe demo look 2017-03-18 15:15:00 +08:00
afc163
c361165352 Improve Layout fixed demo 2017-03-18 14:52:23 +08:00
afc163
3b4a51d1ef Refactor color.md 2017-03-17 20:33:47 +08:00
afc163
ebeda75c36 Add color palette generator tool 2017-03-17 20:14:11 +08:00
afc163
46b344eabe tweak icons 2017-03-17 19:11:36 +08:00
偏右
84e3aa2a37 New design docs (#5370)
* refactor design documentations

* update color document

* Add icon

* Fix images in documentation

* fix some documentation style

* Finish icon doc

* Add copywriting doc

* Add layout.md and navigation.md

* Add more docs

* Fix error color

* improve markdown doc width

* update some details

* fix doc detail

* Add motion.md
2017-03-17 18:56:37 +08:00
afc163
0b88dfae5b site: hide copy button defaultly 2017-03-13 15:05:41 +08:00
afc163
8c22381ffe site: refactor css 2017-03-13 15:05:41 +08:00
afc163
3002ff33c4 update font docs 2017-03-13 11:42:11 +08:00
afc163
27cadbc99a site: update page nav style 2017-03-11 01:24:46 +08:00
afc163
b3982ad210 site: improve copy icon and color 2017-03-10 18:04:14 +08:00
paranoidjk
c8fdf3ebac site: fix safari language check (#5245) 2017-03-10 10:06:27 +08:00
afc163
2aae84f375 site: fix #5239 2017-03-09 21:52:05 +08:00
afc163
941782f7ec Add iconfont shake and android-o 2017-03-09 14:33:58 +08:00
Piper Chester
511dde090a docs: Fix typos (#5223) 2017-03-09 09:11:03 +08:00
afc163
d55ff63587 site: add smooth font render back 2017-03-06 17:36:58 +08:00
afc163
a3a8ddc168 site: update demo text width 2017-03-06 14:54:06 +08:00
Wei Zhu
67bbae9ea8 Merge branch 'feature-2.8' 2017-03-05 21:34:57 +08:00
afc163
47f2aab529 site: fix compatibility 2017-03-05 20:13:54 +08:00
afc163
e15d12ffdf docs: update introduce.md 2017-03-03 15:08:31 +08:00
afc163
7645a77c44 Update iconfont url and docs 2017-03-03 14:42:00 +08:00
afc163
78d33604ac site: improve copy code style 2017-03-02 15:08:42 +08:00
afc163
bc743a0ea6 Add eggjs link in footer
eggjs/egg#492
2017-03-02 14:28:23 +08:00
afc163
f997becadc docs: update footer link 2017-03-02 14:25:04 +08:00
afc163
c94a8d7ddc site: remove font smoothing style 2017-03-02 13:38:33 +08:00
偏右
f29ff2f822 Add some new icons, ref #3674 (#5107) 2017-03-01 11:21:00 +08:00
paranoidjk
15e381ae44 docs: update site 2017-02-28 21:47:51 +08:00
afc163
4823ce4d08 site: update design documentation 2017-02-27 18:04:35 +08:00
afc163
396af02fe0 site: update detail 2017-02-27 14:56:04 +08:00
afc163
e23bcb9b54 site: update detail 2017-02-27 13:52:09 +08:00
afc163
85df55df72 site: fix markdown list style 2017-02-27 11:46:45 +08:00
afc163
40b30d8ef9 site: fix markdown list style 2017-02-26 22:56:58 +08:00
afc163
05b20c6a9f fix stylelint problems of site 2017-02-26 15:41:50 +08:00
afc163
c31ebaad90 site: fix responsive design 2017-02-26 15:25:26 +08:00
afc163
0f6d1db614 fix lint 2017-02-26 15:20:12 +08:00
afc163
d44a0ece3f site: improve styles 2017-02-26 15:09:52 +08:00
YuyingWu
e8cf22ad0e site: fix locale switch
* antD首页从英文切换到中文时,replace导致链接错误

首页从英文转到中文,点击header上的“中文”时,链接会跳到 https://ant.design/index-cn/ant.design/ (Chrome)或者 https://index-cn/ant.design/ (Safari)

bug来自handleLangChange函数下,最后对location.href.replace操作时出错,原因来自replace匹配到location.href的第一个/
('https://ant.design/').replace('/', '/index-cn') 的运行结果是 https:/index-cn/ant.design/ 

为了避免replace匹配到location.href的第一个/,我建议的方案是使用 location.origin + location.pathname.replace

最后,感谢antD团队开发出那么棒的UI~

* 英转中,url替换(带hash、query)

英转中URL问题,上一版使用了location.origin + location.pathname,会丢失query和hash。此版本原理还是用location.href做replace,鉴于首页pathname可能是/会在替换中匹配到https:后的第一个/,所以先把href的protocol部分提取出来,再做replace,最后再拼回去做跳转。
2017-02-26 14:50:12 +08:00