Skip to content

Commit

Permalink
feat(docs): applied new docs style
Browse files Browse the repository at this point in the history
  • Loading branch information
Betrozov authored and valorkin committed Jun 6, 2016
1 parent 26a64cc commit d84211a
Show file tree
Hide file tree
Showing 44 changed files with 1,099 additions and 1,041 deletions.
708 changes: 534 additions & 174 deletions demo/assets/css/style.css

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions demo/assets/images/active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions demo/assets/images/anactive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/assets/images/bar-doc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/assets/images/border-dot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/assets/images/link-doc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions demo/assets/images/menu-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions demo/assets/images/menu-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/assets/images/repa-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/assets/images/repa-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/assets/images/search-doc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 12 additions & 45 deletions demo/components/accordion-section.ts
Original file line number Diff line number Diff line change
@@ -1,62 +1,29 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES} from '@angular/common';

import {TAB_DIRECTIVES} from '../../ng2-bootstrap';
import {AccordionDemoComponent} from './accordion/accordion-demo';
import {DemoSection} from './demo-section';

let name = 'Accordion';
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/accordion/';
// webpack html imports
let doc = require('../../components/accordion/readme.md');
let titleDoc = require('../../components/accordion/title.md');

let ts = require('!!prismjs?lang=typescript!./accordion/accordion-demo.ts');
let html = require('!!prismjs?lang=markup!./accordion/accordion-demo.html');

@Component({
selector: 'accordion-section',
directives: [DemoSection, AccordionDemo, CORE_DIRECTIVES],
template: `
<section id="${name.toLowerCase()}">
<h1>${name}<small>(<a href="${src}">src</a>)</small></h1>
<hr>
<div class="description">${titleDoc}</div>
<br/>
<div class="example">
<h2>Example</h2>
<div class="card card-block panel panel-default panel-body">
<accordion-demo></accordion-demo>
</div>
</div>
<br/>
<div class="markup">
<tabset>
<tab heading="Markup">
<div class="card card-block panel panel-default panel-body">
<pre class="language-html"><code class="language-html" ngNonBindable>${html}</code></pre>
</div>
</tab>
<tab heading="TypeScript">
<div class="card card-block panel panel-default panel-body">
<pre class="language-typescript"><code class="language-typescript" ngNonBindable>${ts}</code></pre>
</div>
</tab>
</tabset>
</div>
<br/>
<div class="api">
<h2>API</h2>
<div class="card card-block panel panel-default panel-body">${doc}</div>
</div>
</section>
`,
directives: [AccordionDemoComponent, TAB_DIRECTIVES, CORE_DIRECTIVES]
<demo-section [name]="name" [src]="src" [titleDoc]="titleDoc" [html]="html" [ts]="ts" [doc]="doc">
<accordion-demo></accordion-demo>
</demo-section>`
})
export class AccordionSectionComponent {
private name:string = 'Accordion';
private src:string = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/accordion';
private html:string = html;
private ts:string = ts;
private titleDoc:string = titleDoc;
private doc:string = doc;
}
58 changes: 11 additions & 47 deletions demo/components/alert-section.ts
Original file line number Diff line number Diff line change
@@ -1,64 +1,28 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES} from '@angular/common';

import {TAB_DIRECTIVES} from '../../ng2-bootstrap';
import {AlertDemoComponent} from './alert/alert-demo';

let name = 'Alerts';
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/alert/';
import {DemoSection} from './demo-section';

// webpack html imports
let doc = require('../../components/alert/readme.md');
let titleDoc = require('../../components/alert/title.md');

let ts = require('!!prismjs?lang=typescript!./alert/alert-demo.ts');
let html = require('!!prismjs?lang=markup!./alert/alert-demo.html');

@Component({
selector: 'alert-section',
directives: [DemoSection, AlertDemo, CORE_DIRECTIVES],
template: `
<section id="${name.toLowerCase()}">
<h1>${name}<small>(<a href="${src}">src</a>)</small></h1>
<hr>
<div class="description">${titleDoc}</div>
<br/>
<div class="example">
<h2>Example</h2>
<div class="card card-block panel panel-default panel-body">
<alert-demo></alert-demo>
</div>
</div>
<br/>
<div class="markup">
<tabset>
<tab heading="Markup">
<div class="card card-block panel panel-default panel-body">
<pre class="language-html"><code class="language-html" ngNonBindable>${html}</code></pre>
</div>
</tab>
<tab heading="TypeScript">
<div class="card card-block panel panel-default panel-body">
<pre class="language-typescript"><code class="language-typescript" ngNonBindable>${ts}</code></pre>
</div>
</tab>
</tabset>
</div>
<br/>
<div class="api">
<h2>API</h2>
<div class="card card-block panel panel-default panel-body">${doc}</div>
</div>
</section>
`,
directives: [AlertDemoComponent, TAB_DIRECTIVES, CORE_DIRECTIVES]
<demo-section [name]="name" [src]="src" [titleDoc]="titleDoc" [html]="html" [ts]="ts" [doc]="doc">
<alert-demo></alert-demo>
</demo-section>`
})
export class AlertSectionComponent {
private name:string = 'Alerts';
private src:string = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/alert';
private html:string = html;
private ts:string = ts;
private titleDoc:string = titleDoc;
private doc:string = doc;
}
59 changes: 12 additions & 47 deletions demo/components/buttons-section.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES} from '@angular/common';

import {TAB_DIRECTIVES} from '../../ng2-bootstrap';
import {ButtonsDemoComponent} from './buttons/buttons-demo';

let name = 'Buttons';
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/buttons/';
import {DemoSection} from './demo-section';

// webpack html imports
let doc = require('../../components/buttons/readme.md');
Expand All @@ -16,49 +13,17 @@ let html = require('!!prismjs?lang=markup!./buttons/buttons-demo.html');

@Component({
selector: 'buttons-section',
directives: [ButtonsDemoComponent, TAB_DIRECTIVES, CORE_DIRECTIVES],
directives: [DemoSection, ButtonsDemo, CORE_DIRECTIVES],
template: `
<section id="${name.toLowerCase()}">
<h1>${name}<small>(<a href="${src}">src</a>)</small></h1>
<hr>
<div class="description">${titleDoc}</div>
<br/>
<div class="example">
<h2>Example</h2>
<div class="card card-block panel panel-default panel-body">
<buttons-demo></buttons-demo>
</div>
</div>
<br/>
<div class="markup">
<tabset>
<tab heading="Markup">
<div class="card card-block panel panel-default panel-body">
<pre class="language-html"><code class="language-html" ngNonBindable>${html}</code></pre>
</div>
</tab>
<tab heading="TypeScript">
<div class="card card-block panel panel-default panel-body">
<pre class="language-typescript"><code class="language-typescript" ngNonBindable>${ts}</code></pre>
</div>
</tab>
</tabset>
</div>
<br/>
<div class="api">
<h2>API</h2>
<div class="card card-block panel panel-default panel-body">${doc}</div>
</div>
</section>
`
<demo-section [name]="name" [src]="src" [titleDoc]="titleDoc" [html]="html" [ts]="ts" [doc]="doc">
<buttons-demo></buttons-demo>
</demo-section>`
})
export class ButtonsSectionComponent {

private name:string = 'Buttons';
private src:string = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/buttons';
private html:string = html;
private ts:string = ts;
private titleDoc:string = titleDoc;
private doc:string = doc;
}
57 changes: 11 additions & 46 deletions demo/components/carousel-section.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES} from '@angular/common';

import {TAB_DIRECTIVES} from '../../ng2-bootstrap';
import {CarouselDemoComponent} from './carousel/carousel-demo';

let name = 'Carousel';
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/carousel/';
import {DemoSection} from './demo-section';

// webpack html imports
let doc = require('../../components/carousel/readme.md');
Expand All @@ -16,49 +13,17 @@ let html = require('!!prismjs?lang=markup!./carousel/carousel-demo.html');

@Component({
selector: 'carousel-section',
directives: [CarouselDemoComponent, TAB_DIRECTIVES, CORE_DIRECTIVES],
directives: [DemoSection, CarouselDemo, CORE_DIRECTIVES],
template: `
<section id="${name.toLowerCase()}">
<h1>${name}<small>(<a href="${src}">src</a>)</small></h1>
<hr>
<div class="description">${titleDoc}</div>
<br/>
<div class="example">
<h2>Example</h2>
<div class="card card-block panel panel-default panel-body">
<carousel-demo></carousel-demo>
</div>
</div>
<br/>
<div class="markup">
<tabset>
<tab heading="Markup">
<div class="card card-block panel panel-default panel-body">
<pre class="language-html"><code class="language-html" ngNonBindable>${html}</code></pre>
</div>
</tab>
<tab heading="TypeScript">
<div class="card card-block panel panel-default panel-body">
<pre class="language-typescript"><code class="language-typescript" ngNonBindable>${ts}</code></pre>
</div>
</tab>
</tabset>
</div>
<br/>
<div class="api">
<h2>API</h2>
<div class="card card-block panel panel-default panel-body">${doc}</div>
</div>
</section>
`
<demo-section [name]="name" [src]="src" [titleDoc]="titleDoc" [html]="html" [ts]="ts" [doc]="doc">
<carousel-demo></carousel-demo>
</demo-section>`
})
export class CarouselSectionComponent {
private name:string = 'Carousel';
private src:string = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/carousel';
private html:string = html;
private ts:string = ts;
private titleDoc:string = titleDoc;
private doc:string = doc;
}
Loading

0 comments on commit d84211a

Please sign in to comment.