Commit 10498368 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Various documentation fixes.

parent b7c90b2c
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -6,22 +6,19 @@ Ext.define('Docs.controller.DocTests', {
    baseUrl: "#!/doctests",

    /**
     * @cfg
     * Regex used to locate all <pre> nodes.
     * Regex used to locate all `pre` nodes.
     * @private
     */
    preRegex: /<pre[\s\S]*?>[\s\S]*?<\/pre[\s\S]*?>/gi,

    /**
     * @cfg
     * Regex used to determine if a node is an inline example.
     * @private
     */
    preClsRegex: /class=[\s\S]*?inline-example/i,

    /**
     * @cfg
     * Regex used to locate <code> node.
     * Regex used to locate `code` node.
     * @private
     */
    codeRegex: /<code[\s\S]*?>[\s\S]+?<\/code[\s\S]*?>/gi,
+6 −1
Original line number Diff line number Diff line
/**
 * Renders the title of the docs app (extracted from "header-content" div).
 *
 * When `Docs.otherProducts` is defined, also renders the menu with
 * links to these other products.
 */
Ext.define('Docs.view.Header', {
    extend: 'Ext.container.Container',
    alias: 'widget.docheader',
@@ -5,7 +11,6 @@ Ext.define('Docs.view.Header', {
    contentEl: 'header-content',

    initComponent: function() {

        if (Docs.otherProducts) {
            this.style = 'cursor: pointer;',
            this.cls = 'dropdown';
+5 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ Ext.define('Docs.view.examples.InlinePreview', {
    statics: {
        /**
         * @private
         * @static
         */
        iframeId: 0,

@@ -20,6 +21,7 @@ Ext.define('Docs.view.examples.InlinePreview', {
         *
         * @return {String} iframeId
         * @private
         * @static
         */
        getNextIframeId: function() {
            this.iframeId++;
@@ -32,6 +34,7 @@ Ext.define('Docs.view.examples.InlinePreview', {
         * @param {String} iframeId
         * @return {Ext.Component}
         * @private
         * @static
         */
        getPreviewByIframeId: function(iframeId) {
            return Ext.ComponentManager.get('inline-preview-' + iframeId.toString());
@@ -41,6 +44,7 @@ Ext.define('Docs.view.examples.InlinePreview', {
         * Called when an preview has been successfully executed.
         *
         * @param {String} iframeId
         * @static
         */
        previewSuccess: function(iframeId) {
            var preview = this.getPreviewByIframeId(iframeId);
@@ -52,6 +56,7 @@ Ext.define('Docs.view.examples.InlinePreview', {
         *
         * @param {String} iframeId
         * @param {Error} e
         * @static
         */
        previewFailure: function(iframeId, e) {
            var preview = this.getPreviewByIframeId(iframeId);