refactor(aio): add the docs, remove the unneeded dependencies, remove a config folder, fix a travis config

This commit is contained in:
Alexander Zhukov 2017-04-19 12:52:08 +03:00
parent 523f44b746
commit b205a6d570
39 changed files with 2516 additions and 1791 deletions

21
docs/templates/article.jade vendored Normal file
View file

@ -0,0 +1,21 @@
extends layout
block title
| ng2-admin documentation - #{page.title]
block content
section.content.wrap.documentationContent
div.nav-docs
each group in groupedArticles
div.nav-docs.section
h5=group.groupName
ul
each article in group.items
li
a(href=article.url)(class= locals.page === article ? 'active': '')= article.title
div.inner-content
h1=locals.page.title
div.subHeader
!= typogr(page.html).typogrify()

59
docs/templates/index.jade vendored Normal file
View file

@ -0,0 +1,59 @@
extends layout
block title
| Admin HTML template based on Angular 2, Bootstrap 4 and Webpack
block content
div.hero
div.hero-content
div.wrap
div.text
strong ng2-#[span.white-text admin]
div.minitext Angular 2 admin panel front-end framework
div.buttons-unit
a.button(href=installationArticleUrl) Installation guidelines
a.button(href=firstArticleUrl) Documentation
div.admin-screenshots
div.admin-screenshot
div.browser-mockup
a.demo-link(href='http://akveo.com/ng2-admin/',target='_blank')
img(src=contents.images['sky-preview.png'].url)
span.demo-link-label Demo
div.index-block
div.wrap
h1.centered Why ng2-admin?
div.why-items
div.why-item
img(src=contents.images['why-structure.svg'].url)
h4 Awesome structure
p Component-based structure is the best choice for large Angular 2 applications.
div.why-item
img(src=contents.images['why-design.svg'].url)
h4 Neat design
p We have put a lot of effort and carefully selected each color and font for this template!
div.why-item
img(src=contents.images['why-practices.svg'].url)
h4 Ease of customization
p Check out #[a(href='/ng2-admin/articles/011-changing-color-scheme') our article], where we describe how you can create a different look in just 2 minutes!
div.index-block
div.wrap
h1.centered Is it free?
p Yes, ng2-admin is completely free and MIT licensed. That means you can do with it whatever you want.
div.index-block
div.wrap
h1.centered How can I support you guys?
p Here's what you can do:
ul
li Star #[a(href='https://github.com/akveo/ng2-admin',target='_blank') our GitHub repo]
li Create pull requests, submit bugs, suggest new features
li Follow #[a(href='https://twitter.com/akveo_inc',target='_blank') us on Twitter]
li Like #[a(href='https://www.facebook.com/akveo/',target='_blank') our page on Facebook]
div.index-block
div.wrap
h1.centered Can I hire you?
p Yes! We are available for hire. Visit #[a(href='http://akveo.com',target='_blank') our homepage]
| or simply leave us a note at #[a(href='mailto:contact@akveo.com') contact@akveo.com].
| We will be happy to work with you!

44
docs/templates/layout.jade vendored Normal file
View file

@ -0,0 +1,44 @@
doctype html
block vars
- var bodyclass = null;
- var groupedArticles = env.helpers.getGroupedArticles(contents);
- var firstArticleUrl = groupedArticles[0].items[0].url
- var installationArticleUrl = groupedArticles[0].items[1].url
html(lang='en')
head
block head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
meta(name='viewport', content='width=device-width')
meta(name='keywords', content='admin,dashboard,template,angular,bootstrap,blur,panel,html,css,javascript')
title
block title
= locals.name
link(rel='alternate', href=locals.url+'/feed.xml', type='application/rss+xml', title=locals.description)
link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900italic,900|Anonymous+Pro:400,700,400italic,700italic&subset=latin,greek,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic')
link(rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.min.css')
link(rel='stylesheet', href=contents.css['main.scss'].url)
link(rel='shortcut icon', href=contents.images['favicon.png'].url)
body(class=bodyclass)
div.container
div.nav-main
div.wrap
a.nav-home(href=contents['index'].url)
img.nav-logo(src=contents.images['logo.png'].url, width=24,height=24)
| #[span.blur-label ng2-]admin
ul.nav-site.nav-site-internal
li
a(class= locals.page.metadata.activeHome ? 'active': '')(href=contents['index'].url) Home
li
a(class= !locals.page.metadata.activeHome ? 'active': '')(href=firstArticleUrl) Docs
span.nav-docs-right
| Need some help? Let us know! #[a(href='mailto:contact@akveo.com') contact@akveo.com]
block content
h2 Welcome to blur admin!
footer.wrap
div.left Powered by Angular 2, Bootstrap 4, Webpack and many more...
div.right
| © 20152016 Akveo LLC<br />
| Documentation licensed under #[a(href='https://creativecommons.org/licenses/by/4.0/') CC BY 4.0].
a(href='https://github.com/akveo/ng2-admin', class='github-fork-ribbon', title="Star & Fork on GitHub")