chore(docs): moving docs from /docs/v2 to /docs

This commit is contained in:
perry
2017-03-29 11:00:52 -05:00
parent 54acc74fdb
commit 41e34fc4ce
72 changed files with 127 additions and 127 deletions

View File

@ -1,5 +1,5 @@
{ {
"sitePath": "../ionic-site", "sitePath": "../ionic-site",
"v2DocsDir": "content/docs/v2", "v2DocsDir": "content/docs",
"docsDest": "../ionic-site/content/docs/v2" "docsDest": "../ionic-site/content/docs"
} }

View File

@ -1,5 +1,5 @@
// Ionic Variables and Theming. For more info, please see: // Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/v2/theming/ // http://ionicframework.com/docs/theming/
// Font path is used to include ionicons, // Font path is used to include ionicons,
// roboto, and noto sans fonts // roboto, and noto sans fonts
@ -13,7 +13,7 @@ $font-path: "../assets/fonts";
// To customize the look and feel of this app, you can override // To customize the look and feel of this app, you can override
// the Sass variables found in Ionic's source scss files. // the Sass variables found in Ionic's source scss files.
// To view all the possible Ionic variables, see: // To view all the possible Ionic variables, see:
// http://ionicframework.com/docs/v2/theming/overriding-ionic-variables/ // http://ionicframework.com/docs/theming/overriding-ionic-variables/
// Named Color Variables // Named Color Variables
@ -65,7 +65,7 @@ $colors: (
// Ionicons // Ionicons
// -------------------------------------------------- // --------------------------------------------------
// The premium icon font for Ionic. For more info, please see: // The premium icon font for Ionic. For more info, please see:
// http://ionicframework.com/docs/v2/ionicons/ // http://ionicframework.com/docs/ionicons/
@import "ionic.ionicons"; @import "ionic.ionicons";

View File

@ -19,7 +19,7 @@ module.exports = function indexPage(renderDocsProcessor) {
id: 'index-page', id: 'index-page',
currentVersion: currentVersion, currentVersion: currentVersion,
template: 'api_index.template.html', template: 'api_index.template.html',
outputPath: 'content/docs/v2/' + versionPath + '/api/index.md' outputPath: 'content/docs/' + versionPath + '/api/index.md'
}); });
} }
} }

View File

@ -17,7 +17,7 @@ module.exports = function jekyll(renderDocsProcessor) {
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
}); });
docs.forEach(function(doc, i) { docs.forEach(function(doc, i) {
docs[i].URL = doc.outputPath.replace('docs/v2//', 'docs/v2/') docs[i].URL = doc.outputPath.replace('docs//', 'docs/')
.replace('/index.md', '') .replace('/index.md', '')
.replace('//home/ubuntu/ionic/src', '') .replace('//home/ubuntu/ionic/src', '')
.replace('//', '/') .replace('//', '/')
@ -35,20 +35,20 @@ module.exports = function jekyll(renderDocsProcessor) {
docType: 'api-menu', docType: 'api-menu',
id: 'api-menu', id: 'api-menu',
template: 'api_menu.template.html', template: 'api_menu.template.html',
outputPath: 'content/_includes/v2_fluid/api_menu.html' outputPath: 'content/_includes/fluid/api_menu.html'
}); });
docs.push({ docs.push({
docType: 'api-menu-flat-version', docType: 'api-menu-flat-version',
id: 'api-menu-flat-version', id: 'api-menu-flat-version',
template: 'api_menu_flat_version.template.html', template: 'api_menu_flat_version.template.html',
outputPath: 'content/_includes/v2_fluid/api_menu_flat_' + currentVersion + outputPath: 'content/_includes/fluid/api_menu_flat_' + currentVersion +
'.html' '.html'
}); });
docs.push({ docs.push({
docType: 'api-version-select', docType: 'api-version-select',
id: 'api-version-select', id: 'api-version-select',
template: 'api_version_select.template.html', template: 'api_version_select.template.html',
outputPath: 'content/_includes/v2_fluid/api_version_select.html' outputPath: 'content/_includes/fluid/api_version_select.html'
}); });
// returning docs will replace docs object in the next process // returning docs will replace docs object in the next process

View File

@ -12,7 +12,7 @@ module.exports = function latestVersion(renderDocsProcessor) {
$process: function(docs) { $process: function(docs) {
var versionData = renderDocsProcessor.extraData.version; var versionData = renderDocsProcessor.extraData.version;
var docsBase = 'dist/ionic-site/content/docs/v2/'; var docsBase = 'dist/ionic-site/content/docs/';
var versionDir = path.resolve(docsBase, versionData.latest.name); var versionDir = path.resolve(docsBase, versionData.latest.name);
var latestDir = path.resolve(docsBase, 'api'); var latestDir = path.resolve(docsBase, 'api');

View File

@ -1,5 +1,5 @@
--- ---
layout: "v2_fluid/docs_base" layout: "fluid/docs_base"
version: "<$ version.current.name $>" version: "<$ version.current.name $>"
versionHref: "<$ version.current.href $>" versionHref: "<$ version.current.href $>"
path: "" path: ""

View File

@ -5,10 +5,10 @@
<@ else @> <@ else @>
{% elsif page.versionHref == "<$ ver.href $>" %} {% elsif page.versionHref == "<$ ver.href $>" %}
<@ endif @> <@ endif @>
{% include v2_fluid/api_menu_flat_<$ ver.name $>.html %} {% include fluid/api_menu_flat_<$ ver.name $>.html %}
<@ endif @> <@ endif @>
<@ endfor @> <@ endfor @>
<# make the last case always be to show latest version #> <# make the last case always be to show latest version #>
{% else %} {% else %}
{% include v2_fluid/api_menu_flat_<$ version.latest.name $>.html %} {% include fluid/api_menu_flat_<$ version.latest.name $>.html %}
{% endif %} {% endif %}

View File

@ -1,5 +1,5 @@
--- ---
layout: "v2_fluid/docs_base" layout: "fluid/docs_base"
version: "<$ version.current.name $>" version: "<$ version.current.name $>"
versionHref: "<$ version.current.href $>" versionHref: "<$ version.current.href $>"
path: "<$ doc.path $>" path: "<$ doc.path $>"

View File

@ -1,5 +1,5 @@
// Ionic Variables and Theming. For more info, please see: // Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/v2/theming/ // http://ionicframework.com/docs/theming/
// Font path is used to include ionicons, // Font path is used to include ionicons,
// roboto, and noto sans fonts // roboto, and noto sans fonts
@ -13,7 +13,7 @@ $font-path: "../assets/fonts";
// To customize the look and feel of this app, you can override // To customize the look and feel of this app, you can override
// the Sass variables found in Ionic's source scss files. // the Sass variables found in Ionic's source scss files.
// To view all the possible Ionic variables, see: // To view all the possible Ionic variables, see:
// http://ionicframework.com/docs/v2/theming/overriding-ionic-variables/ // http://ionicframework.com/docs/theming/overriding-ionic-variables/
// Named Color Variables // Named Color Variables
@ -65,7 +65,7 @@ $colors: (
// Ionicons // Ionicons
// -------------------------------------------------- // --------------------------------------------------
// The premium icon font for Ionic. For more info, please see: // The premium icon font for Ionic. For more info, please see:
// http://ionicframework.com/docs/v2/ionicons/ // http://ionicframework.com/docs/ionicons/
@import "ionic.ionicons"; @import "ionic.ionicons";

View File

@ -2,7 +2,7 @@
The official npm package for [Ionic](http://ionicframework.com/), complete with pre-built ES5 bundles, TypeScript definitions, Sass files, CommonJS ES5 files, and more. The official npm package for [Ionic](http://ionicframework.com/), complete with pre-built ES5 bundles, TypeScript definitions, Sass files, CommonJS ES5 files, and more.
To get started with Ionic, please read the [Installation Guide](http://ionicframework.com/docs/v2/intro/installation/). To get started with Ionic, please read the [Installation Guide](http://ionicframework.com/docs/intro/installation/).
[Ionic Documentation](http://ionicframework.com/docs/) [Ionic Documentation](http://ionicframework.com/docs/)
@ -22,6 +22,6 @@ Minified and unminified CommonJS and System.register module format bundles, as w
### Installation and More ### Installation and More
To use Ionic, we recommend installing and utilizing the [Ionic CLI](http://ionicframework.com/docs/v2/intro/installation/) which will help you create pre-configured Ionic apps. To use Ionic, we recommend installing and utilizing the [Ionic CLI](http://ionicframework.com/docs/intro/installation/) which will help you create pre-configured Ionic apps.
For full instructions on using Ionic, please visit the [Ionic Documentation](http://ionicframework.com/docs/) For full instructions on using Ionic, please visit the [Ionic Documentation](http://ionicframework.com/docs/)

View File

@ -1,7 +1,7 @@
<!-- <!--
Generated template for the $CLASSNAME page. Generated template for the $CLASSNAME page.
See http://ionicframework.com/docs/v2/components/#navigation for more info on See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation. Ionic pages and navigation.
--> -->
<ion-header> <ion-header>

View File

@ -4,7 +4,7 @@ import { IonicPage, NavController, NavParams } from 'ionic-angular';
/** /**
* Generated class for the $CLASSNAME page. * Generated class for the $CLASSNAME page.
* *
* See http://ionicframework.com/docs/v2/components/#navigation for more info * See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation. * on Ionic pages and navigation.
*/ */
@IonicPage() @IonicPage()

View File

@ -151,8 +151,8 @@ import { Config } from '../../config/config';
* out before starting a new transition. * out before starting a new transition.
* *
* *
* @demo /docs/v2/demos/src/action-sheet/ * @demo /docs/demos/src/action-sheet/
* @see {@link /docs/v2/components#action-sheets ActionSheet Component Docs} * @see {@link /docs/components#action-sheets ActionSheet Component Docs}
*/ */
@Injectable() @Injectable()
export class ActionSheetController { export class ActionSheetController {

View File

@ -215,7 +215,7 @@ import { Config } from '../../config/config';
* out before starting a new transition. * out before starting a new transition.
* *
* *
* @demo /docs/v2/demos/src/alert/ * @demo /docs/demos/src/alert/
*/ */
@Injectable() @Injectable()
export class AlertController { export class AlertController {

View File

@ -6,7 +6,7 @@ import { Directive } from '@angular/core';
* @description * @description
* An Avatar is a component that creates a circular image for an item. * An Avatar is a component that creates a circular image for an item.
* Avatar's can be placed on the left or right side of an item with the `item-left` or `item-right` directive. * Avatar's can be placed on the left or right side of an item with the `item-left` or `item-right` directive.
* @see {@link /docs/v2/components/#avatar-list Avatar Component Docs} * @see {@link /docs/components/#avatar-list Avatar Component Docs}
*/ */
@Directive({ @Directive({
selector: 'ion-avatar' selector: 'ion-avatar'

View File

@ -9,7 +9,7 @@ import { Ion } from '../ion';
* @module ionic * @module ionic
* @description * @description
* Badges are simple components in Ionic containing numbers or text. You can display a badge to indicate that there is new information associated with the item it is on. * Badges are simple components in Ionic containing numbers or text. You can display a badge to indicate that there is new information associated with the item it is on.
* @see {@link /docs/v2/components/#badges Badges Component Docs} * @see {@link /docs/components/#badges Badges Component Docs}
*/ */
@Directive({ @Directive({
selector: 'ion-badge' selector: 'ion-badge'

View File

@ -114,9 +114,9 @@ import { isTrueProperty } from '../../util/util';
* *
* ``` * ```
* *
* @demo /docs/v2/demos/src/button/ * @demo /docs/demos/src/button/
* @see {@link /docs/v2/components#buttons Button Component Docs} * @see {@link /docs/components#buttons Button Component Docs}
* @see {@link /docs/v2/components#fabs FabButton Docs} * @see {@link /docs/components#fabs FabButton Docs}
* @see {@link ../../fab/FabButton FabButton API Docs} * @see {@link ../../fab/FabButton FabButton API Docs}
* @see {@link ../../fab/FabContainer FabContainer API Docs} * @see {@link ../../fab/FabContainer FabContainer API Docs}
*/ */
@ -236,7 +236,7 @@ export class Button extends Ion {
/** /**
* @input {string} The mode determines which platform styles to use. * @input {string} The mode determines which platform styles to use.
* Possible values are: `"ios"`, `"md"`, or `"wp"`. * Possible values are: `"ios"`, `"md"`, or `"wp"`.
* For more information, see [Platform Styles](/docs/v2/theming/platform-specific-styles). * For more information, see [Platform Styles](/docs/theming/platform-specific-styles).
*/ */
@Input() @Input()
set mode(val: string) { set mode(val: string) {
@ -269,7 +269,7 @@ export class Button extends Ion {
/** /**
* @input {string} The color to use from your Sass `$colors` map. * @input {string} The color to use from your Sass `$colors` map.
* Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`. * Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`.
* For more information, see [Theming your App](/docs/v2/theming/theming-your-app). * For more information, see [Theming your App](/docs/theming/theming-your-app).
*/ */
@Input() @Input()
set color(val: string) { set color(val: string) {

View File

@ -48,8 +48,8 @@ export const CHECKBOX_VALUE_ACCESSOR: any = {
* </ion-list> * </ion-list>
* ``` * ```
* *
* @demo /docs/v2/demos/src/checkbox/ * @demo /docs/demos/src/checkbox/
* @see {@link /docs/v2/components#checkbox Checkbox Component Docs} * @see {@link /docs/components#checkbox Checkbox Component Docs}
*/ */
@Component({ @Component({
selector: 'ion-checkbox', selector: 'ion-checkbox',

View File

@ -88,7 +88,7 @@ import { Ion } from '../ion';
* } * }
* ``` * ```
* *
* @demo /docs/v2/demos/src/chip/ * @demo /docs/demos/src/chip/
**/ **/
@Directive({ @Directive({
selector: 'ion-chip' selector: 'ion-chip'

View File

@ -252,7 +252,7 @@ export const DATETIME_VALUE_ACCESSOR: any = {
* ``` * ```
* *
* *
* @demo /docs/v2/demos/src/datetime/ * @demo /docs/demos/src/datetime/
*/ */
@Component({ @Component({
selector: 'ion-datetime', selector: 'ion-datetime',

View File

@ -83,8 +83,8 @@ import { FabList } from './fab-list';
* } * }
* ``` * ```
* *
* @demo /docs/v2/demos/src/fab/ * @demo /docs/demos/src/fab/
* @see {@link /docs/v2/components#fabs FAB Component Docs} * @see {@link /docs/components#fabs FAB Component Docs}
*/ */
@Component({ @Component({
selector: 'ion-fab', selector: 'ion-fab',

View File

@ -27,8 +27,8 @@ import { FabButton } from './fab';
* ``` * ```
* @module ionic * @module ionic
* *
* @demo /docs/v2/demos/src/fab/ * @demo /docs/demos/src/fab/
* @see {@link /docs/v2/components#fab Fab Component Docs} * @see {@link /docs/components#fab Fab Component Docs}
*/ */
@Directive({ @Directive({
selector: 'ion-fab-list', selector: 'ion-fab-list',

View File

@ -45,8 +45,8 @@ import { Ion } from '../ion';
* </ion-fab> * </ion-fab>
* ``` * ```
* *
* @demo /docs/v2/demos/src/fab/ * @demo /docs/demos/src/fab/
* @see {@link /docs/v2/components#fabs FAB Component Docs} * @see {@link /docs/components#fabs FAB Component Docs}
*/ */
@Component({ @Component({
selector: '[ion-fab]', selector: '[ion-fab]',

View File

@ -32,8 +32,8 @@ import { Ion } from '../ion';
* <ion-icon name="logo-twitter"></ion-icon> * <ion-icon name="logo-twitter"></ion-icon>
* ``` * ```
* *
* @demo /docs/v2/demos/src/icon/ * @demo /docs/demos/src/icon/
* @see {@link /docs/v2/components#icons Icon Component Docs} * @see {@link /docs/components#icons Icon Component Docs}
* *
*/ */
@Directive({ @Directive({
@ -76,7 +76,7 @@ export class Icon extends Ion {
/** /**
* @input {string} Specifies which icon to use. The appropriate icon will be used based on the mode. * @input {string} Specifies which icon to use. The appropriate icon will be used based on the mode.
* For more information, see [Ionicons](/docs/v2/ionicons/). * For more information, see [Ionicons](/docs/ionicons/).
*/ */
@Input() @Input()
get name(): string { get name(): string {

View File

@ -28,7 +28,7 @@ import { Platform } from '../../platform/platform';
* of images within a scrollable area, then `ion-img` would be better suited * of images within a scrollable area, then `ion-img` would be better suited
* for the job. * for the job.
* *
* > Note: `ion-img` is only meant to be used inside of [virtual-scroll](/docs/v2/api/components/virtual-scroll/VirtualScroll/) * > Note: `ion-img` is only meant to be used inside of [virtual-scroll](/docs/api/components/virtual-scroll/VirtualScroll/)
* *
* *
* ### Lazy Loading * ### Lazy Loading

View File

@ -135,7 +135,7 @@ import { assert } from '../../util/util';
* developers to create their own infinite scroll content components. * developers to create their own infinite scroll content components.
* You could replace our default content with custom SVG or CSS animations. * You could replace our default content with custom SVG or CSS animations.
* *
* @demo /docs/v2/demos/src/infinite-scroll/ * @demo /docs/demos/src/infinite-scroll/
* *
*/ */
@Directive({ @Directive({

View File

@ -79,7 +79,7 @@ import { Platform } from '../../platform/platform';
* </ion-list> * </ion-list>
* ``` * ```
* *
* @demo /docs/v2/demos/src/input/ * @demo /docs/demos/src/input/
*/ */
@Component({ @Component({
selector: 'ion-input,ion-textarea', selector: 'ion-input,ion-textarea',
@ -828,7 +828,7 @@ export class TextInput extends Ion implements IonicFormInput {
* </ion-item> * </ion-item>
* ``` * ```
* *
* @demo /docs/v2/demos/src/textarea/ * @demo /docs/demos/src/textarea/
*/ */

View File

@ -30,7 +30,7 @@ export class Ion {
/** /**
* @input {string} The color to use from your Sass `$colors` map. * @input {string} The color to use from your Sass `$colors` map.
* Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`. * Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`.
* For more information, see [Theming your App](/docs/v2/theming/theming-your-app). * For more information, see [Theming your App](/docs/theming/theming-your-app).
*/ */
@Input() @Input()
set color(val: string) { set color(val: string) {
@ -43,7 +43,7 @@ export class Ion {
/** /**
* @input {string} The mode determines which platform styles to use. * @input {string} The mode determines which platform styles to use.
* Possible values are: `"ios"`, `"md"`, or `"wp"`. * Possible values are: `"ios"`, `"md"`, or `"wp"`.
* For more information, see [Platform Styles](/docs/v2/theming/platform-specific-styles). * For more information, see [Platform Styles](/docs/theming/platform-specific-styles).
*/ */
@Input() @Input()
set mode(val: string) { set mode(val: string) {

View File

@ -132,8 +132,8 @@ export class ReorderIndexes {
* </ion-list> * </ion-list>
* ``` * ```
* *
* @demo /docs/v2/demos/src/item-reorder/ * @demo /docs/demos/src/item-reorder/
* @see {@link /docs/v2/components#lists List Component Docs} * @see {@link /docs/components#lists List Component Docs}
* @see {@link ../../list/List List API Docs} * @see {@link ../../list/List List API Docs}
* @see {@link ../Item Item API Docs} * @see {@link ../Item Item API Docs}
*/ */

View File

@ -106,8 +106,8 @@ const enum SlidingState {
* ``` * ```
* *
* *
* @demo /docs/v2/demos/src/item-sliding/ * @demo /docs/demos/src/item-sliding/
* @see {@link /docs/v2/components#lists List Component Docs} * @see {@link /docs/components#lists List Component Docs}
* @see {@link ../Item Item API Docs} * @see {@link ../Item Item API Docs}
* @see {@link ../../list/List List API Docs} * @see {@link ../../list/List List API Docs}
*/ */

View File

@ -90,7 +90,7 @@ import { ItemReorder } from './item-reorder';
* This feature is not enabled by default for `md` and `wp` modes, but it can be enabled by setting the * This feature is not enabled by default for `md` and `wp` modes, but it can be enabled by setting the
* Sass variables `$item-md-detail-push-show` and `$item-wp-detail-push-show`, respectively, to `true`. * Sass variables `$item-md-detail-push-show` and `$item-wp-detail-push-show`, respectively, to `true`.
* It can also be disabled for ios by setting `$item-ios-detail-push-show` to `false`. See the * It can also be disabled for ios by setting `$item-ios-detail-push-show` to `false`. See the
* [theming documentation](http://ionicframework.com/docs/v2/theming/overriding-ionic-variables/) for * [theming documentation](http://ionicframework.com/docs/theming/overriding-ionic-variables/) for
* more information on overriding Sass variables. * more information on overriding Sass variables.
* *
* *
@ -266,8 +266,8 @@ import { ItemReorder } from './item-reorder';
* ``` * ```
* *
* *
* @demo /docs/v2/demos/src/item/ * @demo /docs/demos/src/item/
* @see {@link /docs/v2/components#lists List Component Docs} * @see {@link /docs/components#lists List Component Docs}
* @see {@link ../../list/List List API Docs} * @see {@link ../../list/List List API Docs}
* @see {@link ../ItemSliding ItemSliding API Docs} * @see {@link ../ItemSliding ItemSliding API Docs}
*/ */

View File

@ -48,7 +48,7 @@ import { Ion } from '../ion';
* </ion-item> * </ion-item>
* ``` * ```
* *
* @demo /docs/v2/demos/src/label/ * @demo /docs/demos/src/label/
* @see {@link ../../../../components#inputs Input Component Docs} * @see {@link ../../../../components#inputs Input Component Docs}
* @see {@link ../../input/Input Input API Docs} * @see {@link ../../input/Input Input API Docs}
* *

View File

@ -20,8 +20,8 @@ import { Platform } from '../../platform/platform';
* interaction modes such as swipe to edit, drag to reorder, and * interaction modes such as swipe to edit, drag to reorder, and
* removing items. * removing items.
* *
* @demo /docs/v2/demos/src/list/ * @demo /docs/demos/src/list/
* @see {@link /docs/v2/components#lists List Component Docs} * @see {@link /docs/components#lists List Component Docs}
* @advanced * @advanced
* *
* Enable the sliding items. * Enable the sliding items.

View File

@ -110,8 +110,8 @@ import { LoadingOptions } from './loading-options';
* | dismissOnPageChange |`boolean` | Whether to dismiss the indicator when navigating to a new page. Default false. | * | dismissOnPageChange |`boolean` | Whether to dismiss the indicator when navigating to a new page. Default false. |
* | duration |`number` | How many milliseconds to wait before hiding the indicator. By default, it will show until `dismiss()` is called. | * | duration |`number` | How many milliseconds to wait before hiding the indicator. By default, it will show until `dismiss()` is called. |
* *
* @demo /docs/v2/demos/src/loading/ * @demo /docs/demos/src/loading/
* @see {@link /docs/v2/api/components/spinner/Spinner Spinner API Docs} * @see {@link /docs/api/components/spinner/Spinner Spinner API Docs}
*/ */
@Injectable() @Injectable()
export class LoadingController { export class LoadingController {

View File

@ -23,8 +23,8 @@ import { MenuController } from './menu-controller';
* <button ion-button menuClose="left">Close Left Menu</button> * <button ion-button menuClose="left">Close Left Menu</button>
* ``` * ```
* *
* @demo /docs/v2/demos/src/menu/ * @demo /docs/demos/src/menu/
* @see {@link /docs/v2/components#menus Menu Component Docs} * @see {@link /docs/components#menus Menu Component Docs}
* @see {@link ../../menu/Menu Menu API Docs} * @see {@link ../../menu/Menu Menu API Docs}
*/ */
@Directive({ @Directive({

View File

@ -110,9 +110,9 @@ import { removeArrayItem, assert } from '../../util/util';
* Note: if an app only has one menu, there is no reason to pass an `id`. * Note: if an app only has one menu, there is no reason to pass an `id`.
* *
* *
* @demo /docs/v2/demos/src/menu/ * @demo /docs/demos/src/menu/
* *
* @see {@link /docs/v2/components#menus Menu Component Docs} * @see {@link /docs/components#menus Menu Component Docs}
* @see {@link ../Menu Menu API Docs} * @see {@link ../Menu Menu API Docs}
* *
*/ */

View File

@ -80,8 +80,8 @@ import { ViewController } from '../../navigation/view-controller';
* See the [Toolbar API docs](../../toolbar/Toolbar) for more information * See the [Toolbar API docs](../../toolbar/Toolbar) for more information
* on the different positions. * on the different positions.
* *
* @demo /docs/v2/demos/src/menu/ * @demo /docs/demos/src/menu/
* @see {@link /docs/v2/components#menus Menu Component Docs} * @see {@link /docs/components#menus Menu Component Docs}
* @see {@link ../../menu/Menu Menu API Docs} * @see {@link ../../menu/Menu Menu API Docs}
*/ */
@Directive({ @Directive({

View File

@ -173,9 +173,9 @@ import { RootNode } from '../split-pane/split-pane';
* and usage information. * and usage information.
* *
* *
* @demo /docs/v2/demos/src/menu/ * @demo /docs/demos/src/menu/
* *
* @see {@link /docs/v2/components#menus Menu Component Docs} * @see {@link /docs/components#menus Menu Component Docs}
* @see {@link ../MenuController MenuController API Docs} * @see {@link ../MenuController MenuController API Docs}
* @see {@link ../../nav/Nav Nav API Docs} * @see {@link ../../nav/Nav Nav API Docs}
* @see {@link ../../nav/NavController NavController API Docs} * @see {@link ../../nav/NavController NavController API Docs}

View File

@ -12,9 +12,9 @@ import { DeepLinker } from '../../navigation/deep-linker';
* A Modal is a content pane that goes over the user's current page. * A Modal is a content pane that goes over the user's current page.
* Usually it is used for making a choice or editing an item. A modal uses the * Usually it is used for making a choice or editing an item. A modal uses the
* `NavController` to * `NavController` to
* {@link /docs/v2/api/components/nav/NavController/#present present} * {@link /docs/api/components/nav/NavController/#present present}
* itself in the root nav stack. It is added to the stack similar to how * itself in the root nav stack. It is added to the stack similar to how
* {@link /docs/v2/api/components/nav/NavController/#push NavController.push} * {@link /docs/api/components/nav/NavController/#push NavController.push}
* works. * works.
* *
* When a modal (or any other overlay such as an alert or actionsheet) is * When a modal (or any other overlay such as an alert or actionsheet) is
@ -111,8 +111,8 @@ import { DeepLinker } from '../../navigation/deep-linker';
* *
* } * }
* ``` * ```
* @demo /docs/v2/demos/src/modal/ * @demo /docs/demos/src/modal/
* @see {@link /docs/v2/components#modals Modal Component Docs} * @see {@link /docs/components#modals Modal Component Docs}
*/ */
@Injectable() @Injectable()
export class ModalController { export class ModalController {

View File

@ -18,9 +18,9 @@ import { NavController } from '../../navigation/nav-controller';
* </ion-content> * </ion-content>
* ``` * ```
* *
* Similar to {@link /docs/v2/api/components/nav/NavPush/ `NavPush` } * Similar to {@link /docs/api/components/nav/NavPush/ `NavPush` }
* @demo /docs/v2/demos/src/navigation/ * @demo /docs/demos/src/navigation/
* @see {@link /docs/v2/components#navigation Navigation Component Docs} * @see {@link /docs/components#navigation Navigation Component Docs}
* @see {@link ../NavPush NavPush API Docs} * @see {@link ../NavPush NavPush API Docs}
*/ */
@Directive({ @Directive({

View File

@ -39,8 +39,8 @@ import { Page } from '../../navigation/nav-util';
* } * }
* ``` * ```
* *
* @demo /docs/v2/demos/src/navigation/ * @demo /docs/demos/src/navigation/
* @see {@link /docs/v2/components#navigation Navigation Component Docs} * @see {@link /docs/components#navigation Navigation Component Docs}
* @see {@link ../NavPop NavPop API Docs} * @see {@link ../NavPop NavPop API Docs}
* *
*/ */

View File

@ -44,8 +44,8 @@ import { RootNode } from '../split-pane/split-pane';
* } * }
* ``` * ```
* *
* @demo /docs/v2/demos/src/navigation/ * @demo /docs/demos/src/navigation/
* @see {@link /docs/v2/components#navigation Navigation Component Docs} * @see {@link /docs/components#navigation Navigation Component Docs}
*/ */
@Component({ @Component({
selector: 'ion-nav', selector: 'ion-nav',

View File

@ -41,7 +41,7 @@ import { ViewController } from '../../navigation/view-controller';
* </ion-header> * </ion-header>
* ``` * ```
* *
* @demo /docs/v2/demos/src/navbar/ * @demo /docs/demos/src/navbar/
* @see {@link ../../toolbar/Toolbar/ Toolbar API Docs} * @see {@link ../../toolbar/Toolbar/ Toolbar API Docs}
*/ */
@Component({ @Component({

View File

@ -25,7 +25,7 @@ import { Ion } from '../ion';
* </ion-list> * </ion-list>
* </ion-content> * </ion-content>
*``` *```
* {@link /docs/v2/api/components/api/components/item/item ion-item} * {@link /docs/api/components/api/components/item/item ion-item}
*/ */
@Directive({ @Directive({
selector: 'ion-note' selector: 'ion-note'

View File

@ -7,7 +7,7 @@ import { isPresent, isTrueProperty } from '../../util/util';
* @description * @description
* `ion-option` is a child component of `ion-select`. Similar to the native option element, `ion-option` can take a value and a selected property. * `ion-option` is a child component of `ion-select`. Similar to the native option element, `ion-option` can take a value and a selected property.
* *
* @demo /docs/v2/demos/src/select/ * @demo /docs/demos/src/select/
*/ */
@Directive({ @Directive({
selector: 'ion-option' selector: 'ion-option'

View File

@ -105,7 +105,7 @@ import { DeepLinker } from '../../navigation/deep-linker';
* *
* *
* *
* @demo /docs/v2/demos/src/popover/ * @demo /docs/demos/src/popover/
*/ */
@Injectable() @Injectable()
export class PopoverController { export class PopoverController {

View File

@ -39,8 +39,8 @@ import { RadioGroup } from './radio-group';
* </ion-item> * </ion-item>
* </ion-list> * </ion-list>
* ``` * ```
* @demo /docs/v2/demos/src/radio/ * @demo /docs/demos/src/radio/
* @see {@link /docs/v2/components#radio Radio Component Docs} * @see {@link /docs/components#radio Radio Component Docs}
* @see {@link ../RadioGroup RadioGroup API Docs} * @see {@link ../RadioGroup RadioGroup API Docs}
*/ */
@Component({ @Component({
@ -93,7 +93,7 @@ export class RadioButton extends Ion implements IonicTapInput, OnDestroy, OnInit
/** /**
* @input {string} The color to use from your Sass `$colors` map. * @input {string} The color to use from your Sass `$colors` map.
* Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`. * Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`.
* For more information, see [Theming your App](/docs/v2/theming/theming-your-app). * For more information, see [Theming your App](/docs/theming/theming-your-app).
*/ */
@Input() @Input()
set color(val: string) { set color(val: string) {

View File

@ -58,8 +58,8 @@ export const RADIO_VALUE_ACCESSOR: any = {
* </ion-list> * </ion-list>
* ``` * ```
* *
* @demo /docs/v2/demos/src/radio/ * @demo /docs/demos/src/radio/
* @see {@link /docs/v2/components#radio Radio Component Docs} * @see {@link /docs/components#radio Radio Component Docs}
* @see {@link ../RadioButton RadioButton API Docs} * @see {@link ../RadioButton RadioButton API Docs}
*/ */
@Directive({ @Directive({

View File

@ -90,7 +90,7 @@ export const RANGE_VALUE_ACCESSOR: any = {
* ``` * ```
* *
* *
* @demo /docs/v2/demos/src/range/ * @demo /docs/demos/src/range/
*/ */
@Component({ @Component({
selector: 'ion-range', selector: 'ion-range',

View File

@ -86,7 +86,7 @@ import { UIEventManager } from '../../gestures/ui-event-manager';
* components. You could replace our default content with * components. You could replace our default content with
* custom SVG or CSS animations. * custom SVG or CSS animations.
* *
* @demo /docs/v2/demos/src/refresher/ * @demo /docs/demos/src/refresher/
* *
*/ */
@Directive({ @Directive({

View File

@ -17,7 +17,7 @@ import { isTrueProperty } from '../../util/util';
* <ion-scroll scrollX="true" scrollY="true"> * <ion-scroll scrollX="true" scrollY="true">
* </ion-scroll> * </ion-scroll>
* ``` * ```
* @demo /docs/v2/demos/src/scroll/ * @demo /docs/demos/src/scroll/
*/ */
@Component({ @Component({
selector: 'ion-scroll', selector: 'ion-scroll',

View File

@ -24,8 +24,8 @@ import { TimeoutDebouncer } from '../../util/debouncer';
* </ion-searchbar> * </ion-searchbar>
* ``` * ```
* *
* @demo /docs/v2/demos/src/searchbar/ * @demo /docs/demos/src/searchbar/
* @see {@link /docs/v2/components#searchbar Searchbar Component Docs} * @see {@link /docs/components#searchbar Searchbar Component Docs}
*/ */
@Component({ @Component({
selector: 'ion-searchbar', selector: 'ion-searchbar',

View File

@ -34,9 +34,9 @@ import { isPresent, isTrueProperty } from '../../util/util';
* ``` * ```
* *
* *
* @demo /docs/v2/demos/src/segment/ * @demo /docs/demos/src/segment/
* @see {@link /docs/v2/components#segment Segment Component Docs} * @see {@link /docs/components#segment Segment Component Docs}
* @see {@link /docs/v2/api/components/segment/Segment/ Segment API Docs} * @see {@link /docs/api/components/segment/Segment/ Segment API Docs}
*/ */
@Component({ @Component({
selector: 'ion-segment-button', selector: 'ion-segment-button',

View File

@ -59,8 +59,8 @@ import { SegmentButton } from './segment-button';
* ``` * ```
* *
* *
* @demo /docs/v2/demos/src/segment/ * @demo /docs/demos/src/segment/
* @see {@link /docs/v2/components#segment Segment Component Docs} * @see {@link /docs/components#segment Segment Component Docs}
* @see [Angular 2 Forms](http://learnangular2.com/forms/) * @see [Angular 2 Forms](http://learnangular2.com/forms/)
*/ */
@Directive({ @Directive({

View File

@ -118,7 +118,7 @@ export const SELECT_VALUE_ACCESSOR: any = {
* }; * };
* ``` * ```
* *
* @demo /docs/v2/demos/src/select/ * @demo /docs/demos/src/select/
*/ */
@Component({ @Component({
selector: 'ion-select', selector: 'ion-select',

View File

@ -41,7 +41,7 @@ import { DisplayWhen } from './display-when';
* </div> * </div>
* ``` * ```
* *
* @demo /docs/v2/demos/src/hide-when/ * @demo /docs/demos/src/hide-when/
* @see {@link ../ShowWhen ShowWhen API Docs} * @see {@link ../ShowWhen ShowWhen API Docs}
* @see {@link ../../../platform/Platform Platform API Docs} * @see {@link ../../../platform/Platform Platform API Docs}
*/ */

View File

@ -42,7 +42,7 @@ import { Platform } from '../../platform/platform';
* I am visible on Landscape! * I am visible on Landscape!
* </div> * </div>
* ``` * ```
* @demo /docs/v2/demos/src/show-when/ * @demo /docs/demos/src/show-when/
* @see {@link ../HideWhen HideWhen API Docs} * @see {@link ../HideWhen HideWhen API Docs}
* @see {@link ../../../platform/Platform Platform API Docs} * @see {@link ../../../platform/Platform Platform API Docs}
*/ */

View File

@ -11,8 +11,8 @@ import { Slides } from './slides';
* *
* See the [Slides API Docs](../Slides) for more usage information. * See the [Slides API Docs](../Slides) for more usage information.
* *
* @demo /docs/v2/demos/src/slides/ * @demo /docs/demos/src/slides/
* @see {@link /docs/v2/api/components/slides/Slides/ Slides API Docs} * @see {@link /docs/api/components/slides/Slides/ Slides API Docs}
*/ */
@Component({ @Component({
selector: 'ion-slide', selector: 'ion-slide',

View File

@ -121,8 +121,8 @@ import { ViewController } from '../../navigation/view-controller';
* To see all of the available options, take a look at the * To see all of the available options, take a look at the
* [source for slides](https://github.com/driftyco/ionic/blob/master/src/components/slides/slides.ts). * [source for slides](https://github.com/driftyco/ionic/blob/master/src/components/slides/slides.ts).
* *
* @demo /docs/v2/demos/src/slides/ * @demo /docs/demos/src/slides/
* @see {@link /docs/v2/components#slides Slides Component Docs} * @see {@link /docs/components#slides Slides Component Docs}
* *
* Adopted from Swiper.js: * Adopted from Swiper.js:
* The most modern mobile touch slider and framework with * The most modern mobile touch slider and framework with

View File

@ -115,8 +115,8 @@ import { ViewController } from '../../navigation/view-controller';
* ``` * ```
* *
* *
* @demo /docs/v2/demos/src/tabs/ * @demo /docs/demos/src/tabs/
* @see {@link /docs/v2/components#tabs Tabs Component Docs} * @see {@link /docs/components#tabs Tabs Component Docs}
* @see {@link ../../tabs/Tabs Tabs API Docs} * @see {@link ../../tabs/Tabs Tabs API Docs}
* @see {@link ../../nav/Nav Nav API Docs} * @see {@link ../../nav/Nav Nav API Docs}
* @see {@link ../../nav/NavController NavController API Docs} * @see {@link ../../nav/NavController NavController API Docs}

View File

@ -140,9 +140,9 @@ import { ViewController } from '../../navigation/view-controller';
* this.navCtrl.parent.select(2); * this.navCtrl.parent.select(2);
* } * }
*``` *```
* @demo /docs/v2/demos/src/tabs/ * @demo /docs/demos/src/tabs/
* *
* @see {@link /docs/v2/components#tabs Tabs Component Docs} * @see {@link /docs/components#tabs Tabs Component Docs}
* @see {@link ../Tab Tab API Docs} * @see {@link ../Tab Tab API Docs}
* @see {@link ../../config/Config Config API Docs} * @see {@link ../../config/Config Config API Docs}
* *

View File

@ -6,7 +6,7 @@ import { Directive } from '@angular/core';
* @description * @description
* A Thumbnail is a component that creates a squared image for an item. * A Thumbnail is a component that creates a squared image for an item.
* Thumbnails can be place on the left or right side of an item with the `item-left` or `item-right` directive. * Thumbnails can be place on the left or right side of an item with the `item-left` or `item-right` directive.
* @see {@link /docs/v2/components/#thumbnail-list Thumbnail Component Docs} * @see {@link /docs/components/#thumbnail-list Thumbnail Component Docs}
*/ */
@Directive({ @Directive({
selector: 'ion-thumbnail' selector: 'ion-thumbnail'

View File

@ -66,7 +66,7 @@ import { ToastOptions } from './toast-options';
* | closeButtonText | `string` | "Close" | Text to display in the close button. | * | closeButtonText | `string` | "Close" | Text to display in the close button. |
* | dismissOnPageChange | `boolean` | false | Whether to dismiss the toast when navigating to a new page. | * | dismissOnPageChange | `boolean` | false | Whether to dismiss the toast when navigating to a new page. |
* *
* @demo /docs/v2/demos/src/toast/ * @demo /docs/demos/src/toast/
*/ */
@Injectable() @Injectable()
export class ToastController { export class ToastController {

View File

@ -54,8 +54,8 @@ export const TOGGLE_VALUE_ACCESSOR: any = {
* </ion-list> * </ion-list>
* ``` * ```
* *
* @demo /docs/v2/demos/src/toggle/ * @demo /docs/demos/src/toggle/
* @see {@link /docs/v2/components#toggle Toggle Component Docs} * @see {@link /docs/components#toggle Toggle Component Docs}
*/ */
@Component({ @Component({
selector: 'ion-toggle', selector: 'ion-toggle',

View File

@ -39,7 +39,7 @@ import { Toolbar } from './toolbar';
* </ion-header> * </ion-header>
* ``` * ```
* *
* @demo /docs/v2/demos/src/title/ * @demo /docs/demos/src/title/
*/ */
@Component({ @Component({
selector: 'ion-title', selector: 'ion-title',

View File

@ -90,7 +90,7 @@ import { ToolbarBase } from './toolbar-base';
* </ion-footer> * </ion-footer>
* ``` * ```
* *
* @demo /docs/v2/demos/src/toolbar/ * @demo /docs/demos/src/toolbar/
* @see {@link ../../navbar/Navbar/ Navbar API Docs} * @see {@link ../../navbar/Navbar/ Navbar API Docs}
*/ */
@Component({ @Component({

View File

@ -12,7 +12,7 @@ import { isObject, isDefined, isFunction, isArray } from '../util/util';
/** /**
* @name Config * @name Config
* @demo /docs/v2/demos/src/config/ * @demo /docs/demos/src/config/
* @description * @description
* The Config lets you configure your entire app or specific platforms. * The Config lets you configure your entire app or specific platforms.
* You can set the tab placement, icon mode, animations, and more here. * You can set the tab placement, icon mode, animations, and more here.

View File

@ -334,7 +334,7 @@ export { IonicGestureConfig } from './gestures/gesture-config';
* directives, and providers from the framework are imported. * directives, and providers from the framework are imported.
* *
* Any configuration for the app can be passed as the second argument to `forRoot`. This can be any * Any configuration for the app can be passed as the second argument to `forRoot`. This can be any
* valid property from the [Config](/docs/v2/api/config/Config/). * valid property from the [Config](/docs/api/config/Config/).
* *
* @usage * @usage
* ```ts * ```ts

View File

@ -346,7 +346,7 @@ import { ViewController } from './view-controller';
* *
* The property 'animation' understands the following values: `md-transition`, `ios-transition` and `wp-transition`. * The property 'animation' understands the following values: `md-transition`, `ios-transition` and `wp-transition`.
* *
* @see {@link /docs/v2/components#navigation Navigation Component Docs} * @see {@link /docs/components#navigation Navigation Component Docs}
*/ */
export abstract class NavController { export abstract class NavController {

View File

@ -14,11 +14,11 @@
* } * }
* } * }
* ``` * ```
* @demo /docs/v2/demos/src/nav-params/ * @demo /docs/demos/src/nav-params/
* @see {@link /docs/v2/components#navigation Navigation Component Docs} * @see {@link /docs/components#navigation Navigation Component Docs}
* @see {@link ../NavController/ NavController API Docs} * @see {@link ../NavController/ NavController API Docs}
* @see {@link /docs/v2/api/components/nav/Nav/ Nav API Docs} * @see {@link /docs/api/components/nav/Nav/ Nav API Docs}
* @see {@link /docs/v2/api/components/nav/NavPush/ NavPush API Docs} * @see {@link /docs/api/components/nav/NavPush/ NavPush API Docs}
*/ */
export class NavParams { export class NavParams {

View File

@ -27,7 +27,7 @@ import { removeArrayItem } from '../util/util';
* } * }
* } * }
* ``` * ```
* @demo /docs/v2/demos/src/platform/ * @demo /docs/demos/src/platform/
*/ */
export class Platform { export class Platform {
private _win: Window; private _win: Window;

View File

@ -27,7 +27,7 @@ import { ScrollView } from '../util/scroll-view';
* }); * });
* *
* ``` * ```
* @demo /docs/v2/demos/src/events/ * @demo /docs/demos/src/events/
*/ */
export class Events { export class Events {
private _channels: any = []; private _channels: any = [];