-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
364 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
angular.module('selectDemoApp', [ | ||
'angular-bootstrap-select', | ||
'angular-bootstrap-select.extra' | ||
]) | ||
|
||
.controller('ExtrasCtrl', function ($scope, $timeout) { | ||
$scope.model = 'Mustard'; | ||
}) | ||
|
||
.controller('SimpleUsageCtrl', function ($scope, $timeout) { | ||
$scope.model = ''; | ||
$scope.colors = ['Mustard', 'Ketchup', 'Relish']; | ||
$scope.repeater = [ | ||
{ title: 'one' }, | ||
{ title: 'two' }, | ||
{ title: 'three' } | ||
]; | ||
$scope.selectWithOptionsIsVisible = true; | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var path = require('canonical-path'); | ||
var Package = require('dgeni').Package; | ||
|
||
var paths = { | ||
src: path.resolve(__dirname, '../../src'), | ||
docs: path.resolve(__dirname, '..'), | ||
}; | ||
|
||
var files = { | ||
scripts: path.join(paths.src, '**', '*.js'), | ||
exclude_scripts: '', | ||
}; | ||
|
||
module.exports = new Package('angular-bootstrap-select', [ | ||
require('dgeni-packages/ngdoc'), | ||
require('dgeni-packages/nunjucks'), | ||
]) | ||
|
||
.factory(function gitData() { | ||
return { | ||
version: { | ||
isSnapshot: true, | ||
branch: 'master', | ||
raw: 'v0.0.4', | ||
}, | ||
versions: ['v0.0.2', 'v0.0.3', 'v0.0.4'], | ||
info: { | ||
owner: 'joaoneto', | ||
repo: 'angular-bootstrap-select', | ||
} | ||
}; | ||
}) | ||
.config(function (templateFinder, renderDocsProcessor, gitData) { | ||
renderDocsProcessor.extraData.git = gitData; | ||
}) | ||
|
||
.config(function (templateFinder, readFilesProcessor, writeFilesProcessor) { | ||
readFilesProcessor.basePath = path.resolve(__dirname, '../..'); | ||
readFilesProcessor.sourceFiles = [{ | ||
include: files.scripts, | ||
basePath: paths.src | ||
}]; | ||
templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates')); | ||
writeFilesProcessor.outputFolder = paths.docs; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{% extends "base.template.html" %} | ||
|
||
{% block content %} | ||
<h1> | ||
{% if doc.title %}{$ doc.title | marked $}{% else %}{$ doc.name | code $}{% endif %} | ||
</h1> | ||
|
||
{$ doc.description | marked $} | ||
|
||
{% if doc.name != 'ng' and doc.name != 'auto' %} | ||
<h2>Installation</h2> | ||
|
||
<p>First include <code>angular-bootstrap-select</code> in your HTML:</p> | ||
|
||
{% code %} | ||
<script src="angular.js"> | ||
<script src="angular-bootstrap-select.js"> | ||
{% endcode %} | ||
|
||
<p>You can download this file from the following places:</p> | ||
<ul> | ||
<li> | ||
<a href="https://github.com/joaoneto/angular-bootstrap-select/releases">Github</a><br> | ||
e.g. {$ ("https://github.com/joaoneto/angular-bootstrap-select/archive/vX.Y.Z.zip") | code $} | ||
</li> | ||
<li> | ||
<a href="http://bower.io">Bower</a><br> | ||
e.g. <code>bower install [email protected]</code> | ||
</li> | ||
</ul> | ||
<p>where X.Y.Z is the angular-bootstrap-select.js version you are running.</p> | ||
<p>Then load the module in your application by adding it as a dependent module:</p> | ||
{% code %} | ||
angular.module('app', ['{$ doc.name $}']); | ||
{% endcode %} | ||
|
||
<p>With that you're ready to get started!</p> | ||
{% endif %} | ||
|
||
<div class="component-breakdown"> | ||
<h2>Module Components</h2> | ||
{% for componentGroup in doc.componentGroups %} | ||
<div> | ||
<h3 class="component-heading" id="{$ componentGroup.groupType | dashCase $}">{$ componentGroup.groupType | title $}</h3> | ||
<table class="definition-table"> | ||
<tr> | ||
<th>Name</th> | ||
<th>Description</th> | ||
</tr> | ||
{% for component in componentGroup.components %} | ||
<tr> | ||
<td>{$ component.id | link(component.name, component) $}</td> | ||
<td>{$ component.description | firstParagraph | marked $}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% if doc.usage %} | ||
<h2>Usage</h2> | ||
{$ doc.usage | marked $} | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<a href='https://github.com/joaoneto/angular-bootstrap-select/edit/{$ git.version.branch $}/{$ doc.fileInfo.projectRelativePath $}?message=docs({$ (doc.area != "api") and (doc.area + "%2F") or "" $}{$ doc.name $})%3A%20describe%20your%20change...{$ (doc.area == "api") and ("#L" + doc.startingLine) or "" $}' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> | ||
|
||
{% block content %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h1>{{ doc.codeName }} ({{ doc.outputPath }})</h1> | ||
<p>{{ doc.description }}</p> | ||
|
||
{% if doc.params %} | ||
<h2>Params</h2> | ||
<ul> | ||
{% for param in doc.params %} | ||
<li> | ||
<strong>{{ param.name }}</strong> { {{ param.typeList }} } - {{ param.description }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
{% if doc.returns %} | ||
<h2>Returns</h2> | ||
<p> | ||
{ {{ doc.returns.typeList }} } - {{ doc.returns.description }} | ||
</p> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var path = require('canonical-path'); | ||
var Dgeni = require('dgeni'); | ||
var gulp = require('gulp'); | ||
|
||
gulp.task('docs', function () { | ||
var dgeni = new Dgeni([require('./config')]); | ||
return dgeni.generate(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.