Skip to content

Commit

Permalink
Merge pull request #365 from kaola-fed/feature_20180815_0.6document
Browse files Browse the repository at this point in the history
增加nek-ui 0.6 文档
  • Loading branch information
nupthale authored Aug 15, 2018
2 parents 8a4910d + 30bc976 commit f33038a
Show file tree
Hide file tree
Showing 86 changed files with 112,465 additions and 16 deletions.
8 changes: 6 additions & 2 deletions build/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ gulp.task('watch', ['default', 'server'], () => {
gulp.watch(['../src/**/*'], ['default']);
});

/* 把v0.5版本的文档copy到pulic目录下 */
gulp.task('copy-oldDoc', () => gulp.src(path.join(__dirname, '../doc/v0.5/**')).pipe(gulp.dest(path.join(__dirname, '../doc/public/v0.5'))));
/* 把v0.5、0.6版本的文档copy到pulic目录下 */
gulp.task('copy-oldDoc', (done) => {
sequence('copy-0.5', 'copy-0.6', done);
});
gulp.task('copy-0.5', () => gulp.src(path.join(__dirname, '../doc/v0.5/**')).pipe(gulp.dest(path.join(__dirname, '../doc/public/v0.5'))));
gulp.task('copy-0.6', () => gulp.src(path.join(__dirname, '../doc/v0.6/**')).pipe(gulp.dest(path.join(__dirname, '../doc/public/v0.6'))));


/* 本地开发配置环境 */
Expand Down
1 change: 1 addition & 0 deletions doc/themes/nekui/layout/partials/resources.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<li><a href="https://github.com/kaola-fed/NEK" target="_blank">NEK</a></li>
<li><a href="https://github.com/regularjs/regular" target="_blank">RegularJS</a></li>
<li><a href="/v0.5/index.html" target="_blank">V0.5文档</a></li>
<li><a href="/v0.6/index.html" target="_blank">V0.6文档</a></li>
</ul>
</li>
170 changes: 170 additions & 0 deletions doc/v0.6/2018/04/19/hello-world/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@

<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello World - nek-ui</title>
<meta charset="utf-8">
<meta http-equiv="x-dns-prefetch-control" content="on" />
<meta name="description" content="nek-ui - UI components based on RegularJS">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta property="og:type" content="article">
<meta property="og:title" content="Hello World - nek-ui">
<meta property="og:description" content="nek-ui - UI components based on RegularJS">
<meta property="og:image" content="https://nek-ui.kaolafed.com/images/logo.svg">

<link rel="icon" href="/images/favicon.ico" type="image/x-icon">

<link rel="dns-prefetch" href="//cdnjs.cloudflare.com" />
<link rel="dns-prefetch" href="//haitao.nos.netease.com" />
<link rel="dns-prefetch" href="//at.alicdn.com" />



<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono" rel='stylesheet' type='text/css'>
<link href="//fonts.googleapis.com/css?family=Dosis:500&text=nek-ui" rel='stylesheet' type='text/css'>
<link href="//at.alicdn.com/t/font_393438_fji5kllvfft21emi.css" rel="stylesheet" type="text/css" />
<!-- nek-ui -->
<link href="/v0.6/css/nek-ui.default.css" rel='stylesheet' type='text/css'>
<!-- main page styles -->
<link rel="stylesheet" href="/css/page.css?v2">
<script>window.PAGE_TYPE = ""</script>
</head>
<body class="docs" >
<script src="/v0.6/js/common.js"></script>
<script src="/v0.6/vendor/regular.js"></script>
<script src="/v0.6/js/nek-ui.js"></script>
<script src="/v0.6/demo.wrap/index.js"></script>

<div id="mobile-bar" >
<a class="menu-button"></a>
<a class="logo" href="/"></a>
</div>
<div id="header" class=""> <a id="logo" href="/">

<span class="u-logo u-logo-grey u-logo-sm"></span>

</a>
<ul id="nav">
<li><a href="/v0.6/" class="nav-link">首页</a></li>
<li><a href="/v0.6/components/" class="nav-link">组件</a></li>
<li class="nav-dropdown-container">
<a class="nav-link">资源</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><a href="https://github.com/kaola-fed/dionysus" target="_blank">Snippets</a></li>
<li><a href="https://github.com/kaola-fed/NEK" target="_blank">NEK</a></li>
<li><a href="https://github.com/regularjs/regular" target="_blank">RegularJS</a></li>
<li><a href="/v0.5/index.html" target="_blank">V0.5文档</a></li>
<li><a href="/v0.6/index.html" target="_blank">V0.5文档</a></li>
</ul>
</li>

<li>
<input id="search-query-nav" class="search-query" placeholder="搜索组件..." type="text" value="">
</li>

</ul>
</div>


<div id="main" class="fix-sidebar">
<div class="sidebar blog">
<ul class="main-menu">
<li><a href="/v0.6/" class="nav-link">首页</a></li>
<li><a href="/v0.6/components/" class="nav-link">组件</a></li>
<li class="nav-dropdown-container">
<a class="nav-link">资源</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><a href="https://github.com/kaola-fed/dionysus" target="_blank">Snippets</a></li>
<li><a href="https://github.com/kaola-fed/NEK" target="_blank">NEK</a></li>
<li><a href="https://github.com/regularjs/regular" target="_blank">RegularJS</a></li>
<li><a href="/v0.5/index.html" target="_blank">V0.5文档</a></li>
<li><a href="/v0.6/index.html" target="_blank">V0.5文档</a></li>
</ul>
</li>

<li>
<input id="search-query-nav" class="search-query" placeholder="搜索组件..." type="text" value="">
</li>

</ul>
<div class="list">
<h2>
Recent Posts
<a href="/atom.xml" target="_blank" style="vertical-align: middle; margin-left: 5px">
<img src="/images/feed.png" style="width:15px;height:15px">
</a>
</h2>
<ul style="padding:0">

<li>
<a href="//v0.62018/04/19/hello-world/" class="sidebar-link current">Hello World</a>
</li>

</ul>
</div>
</div>
<div class="content with-sidebar blog post">
<h1>Hello World</h1>
<h4>Apr 19, 2018</h4>

</div>

</div>



<!-- main custom script for sidebars, version selects etc. -->
<script src="/v0.6/js/smooth-scroll.min.js"></script>
<!-- fastclick -->
<script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>
<script src="/v0.6/js/scrollIntoView.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body);

scrollIntoView(document.querySelector('.sidebar .submenu a.current'), {
validTarget: function(target, parentsScrolled){
return parentsScrolled < 2 && target !== window && target.matches('.sidebar');
},
});
}, false)
</script>


<!-- Hotjar Tracking Code for http://nek-ui.kaolafed.com/ -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:608636,hjsv:5};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
</script>

<!-- ga -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-46698359-3', 'nek-ui.kaolafed.com');
ga('send', 'pageview');
</script>

<!-- search -->
<link href="//cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/search.css">
<script src="//cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script>
docsearch({
apiKey: 'e5880dd54c730e68c9fcc610adb30f33',
indexName: 'nek_ui',
inputSelector: '#search-query-nav',
debug: false
})
</script>
</body>
</html>
1 change: 1 addition & 0 deletions doc/v0.6/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nek-ui.kaolafed.com
Loading

0 comments on commit f33038a

Please sign in to comment.