diff options
Diffstat (limited to 'docs/src/templates')
| -rw-r--r-- | docs/src/templates/doc_widgets.css | 2 | ||||
| -rw-r--r-- | docs/src/templates/doc_widgets.js | 16 | ||||
| -rw-r--r-- | docs/src/templates/docs-scenario.html | 2 | ||||
| -rw-r--r-- | docs/src/templates/docs.js | 8 | ||||
| -rw-r--r-- | docs/src/templates/syntaxhighlighter/shBrushJScript.js | 6 | ||||
| -rw-r--r-- | docs/src/templates/syntaxhighlighter/shBrushXml.js | 10 | ||||
| -rw-r--r-- | docs/src/templates/syntaxhighlighter/shCore.css | 2 | ||||
| -rw-r--r-- | docs/src/templates/syntaxhighlighter/shCore.js | 2 | ||||
| -rw-r--r-- | docs/src/templates/syntaxhighlighter/shThemeDefault.css | 2 | 
9 files changed, 25 insertions, 25 deletions
diff --git a/docs/src/templates/doc_widgets.css b/docs/src/templates/doc_widgets.css index 8361f105..9f007f0e 100644 --- a/docs/src/templates/doc_widgets.css +++ b/docs/src/templates/doc_widgets.css @@ -32,4 +32,4 @@ li.doc-example-live {  div.syntaxhighlighter {    padding-bottom: 1px !important; /* fix to remove unnecessary scrollbars http://is.gd/gSMgC */ -}
\ No newline at end of file +} diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js index 18aeeacb..2d1ab8c6 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -1,5 +1,5 @@  (function(){ -   +    var angularJsUrl;    var scripts = document.getElementsByTagName("script");    var filename = /(.*\/)angular([^\/]*)/; @@ -10,7 +10,7 @@      }    } -   +    var HTML_TEMPLATE =    '<!doctype html>\n' +    '<html xmlns:ng="http://angularjs.org">\n' + @@ -32,15 +32,15 @@      var tabs = angular.element(          '<ul class="doc-example">' +            '<li class="doc-example-heading"><h3>Source</h3></li>' + -          '<li class="doc-example-source" ng:non-bindable>' +  -            '<pre class="brush: js; html-script: true; highlight: [' +  +          '<li class="doc-example-source" ng:non-bindable>' + +            '<pre class="brush: js; html-script: true; highlight: [' +              code.hilite + ']; toolbar: false;"></pre></li>' +            '<li class="doc-example-heading"><h3>Live Preview</h3></li>' +            '<li class="doc-example-live">' + exampleSrc +'</li>' +            '<li class="doc-example-heading"><h3>Scenario Test</h3></li>' +            '<li class="doc-example-scenario"><pre class="brush: js">' + scenario.text() + '</pre></li>' +          '</ul>'); -     +      tabs.find('li.doc-example-source > pre').text(HTML_TEMPLATE.replace('_HTML_SOURCE_', code.html));      element.html(''); @@ -54,7 +54,7 @@        alert(e);      }    }); -   +    function indent(text) {      var lines = text.split(/\n/);      var lineNo = []; @@ -66,5 +66,5 @@      }      return {html: lines.join('\n'), hilite: lineNo.join(',') };    }; -   -})();
\ No newline at end of file + +})(); diff --git a/docs/src/templates/docs-scenario.html b/docs/src/templates/docs-scenario.html index c75155c5..bc244d5d 100644 --- a/docs/src/templates/docs-scenario.html +++ b/docs/src/templates/docs-scenario.html @@ -7,4 +7,4 @@  </head>  <body>  </body> -</html>
\ No newline at end of file +</html> diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index 6bf86ed3..f1cfc3e7 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -2,7 +2,7 @@ DocsController.$inject = ['$location', '$browser', '$window'];  function DocsController($location, $browser, $window) {    this.pages = NG_PAGES;    window.$root = this.$root; -   +    this.getUrl = function(page){      return '#!' + page.name;    }; @@ -10,7 +10,7 @@ function DocsController($location, $browser, $window) {    this.getCurrentPartial = function(){      return './' + this.getTitle() + '.html';    }; -   +    this.getTitle = function(){      var hashPath = $location.hashPath || '!angular';      if (hashPath.match(/^!angular/)) { @@ -18,7 +18,7 @@ function DocsController($location, $browser, $window) {      }      return this.partialTitle;    }; -   +    this.getClass = function(page) {      var depth = page.name.split(/\./).length - 1,          cssClass = 'level-' + depth + (page.name == this.getTitle() ? ' selected' : ''); @@ -37,7 +37,7 @@ function DocsController($location, $browser, $window) {             "subject=" + escape("Feedback on " + $location.href) + "&" +             "body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ....");    }; -   +  }  angular.filter('short', function(name){ diff --git a/docs/src/templates/syntaxhighlighter/shBrushJScript.js b/docs/src/templates/syntaxhighlighter/shBrushJScript.js index ff98daba..d52a77b2 100644 --- a/docs/src/templates/syntaxhighlighter/shBrushJScript.js +++ b/docs/src/templates/syntaxhighlighter/shBrushJScript.js @@ -7,7 +7,7 @@   *   * @version   * 3.0.83 (July 02 2010) - *  + *   * @copyright   * Copyright (C) 2004-2010 Alex Gorbatchev.   * @@ -29,7 +29,7 @@  						;  		var r = SyntaxHighlighter.regexLib; -		 +  		this.regexList = [  			{ regex: r.multiLineDoubleQuotedString,					css: 'string' },			// double quoted strings  			{ regex: r.multiLineSingleQuotedString,					css: 'string' },			// single quoted strings @@ -38,7 +38,7 @@  			{ regex: /\s*#.*/gm,									css: 'preprocessor' },		// preprocessor tags like #region and #endregion  			{ regex: new RegExp(this.getKeywords(keywords), 'gm'),	css: 'keyword' }			// keywords  			]; -	 +  		this.forHtmlScript(r.scriptScriptTags);  	}; diff --git a/docs/src/templates/syntaxhighlighter/shBrushXml.js b/docs/src/templates/syntaxhighlighter/shBrushXml.js index 69d9fd0b..ac879949 100644 --- a/docs/src/templates/syntaxhighlighter/shBrushXml.js +++ b/docs/src/templates/syntaxhighlighter/shBrushXml.js @@ -7,7 +7,7 @@   *   * @version   * 3.0.83 (July 02 2010) - *  + *   * @copyright   * Copyright (C) 2004-2010 Alex Gorbatchev.   * @@ -28,8 +28,8 @@  				tag = new XRegExp('(<|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),  				result = []  				; -		 -			if (match.attributes != null)  + +			if (match.attributes != null)  			{  				var attributes,  					regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' + @@ -37,7 +37,7 @@  										'(?<value> ".*?"|\'.*?\'|\\w+)',  										'xg'); -				while ((attributes = regex.exec(code)) != null)  +				while ((attributes = regex.exec(code)) != null)  				{  					result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));  					result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); @@ -51,7 +51,7 @@  			return result;  		} -	 +  		this.regexList = [  			{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'),			css: 'color2' },	// <![ ... [ ... ]]>  			{ regex: SyntaxHighlighter.regexLib.xmlComments,												css: 'comments' },	// <!-- ... --> diff --git a/docs/src/templates/syntaxhighlighter/shCore.css b/docs/src/templates/syntaxhighlighter/shCore.css index 34f6864a..4f0021e2 100644 --- a/docs/src/templates/syntaxhighlighter/shCore.css +++ b/docs/src/templates/syntaxhighlighter/shCore.css @@ -7,7 +7,7 @@   *   * @version   * 3.0.83 (July 02 2010) - *  + *   * @copyright   * Copyright (C) 2004-2010 Alex Gorbatchev.   * diff --git a/docs/src/templates/syntaxhighlighter/shCore.js b/docs/src/templates/syntaxhighlighter/shCore.js index b47b6454..effcf59d 100644 --- a/docs/src/templates/syntaxhighlighter/shCore.js +++ b/docs/src/templates/syntaxhighlighter/shCore.js @@ -7,7 +7,7 @@   *   * @version   * 3.0.83 (July 02 2010) - *  + *   * @copyright   * Copyright (C) 2004-2010 Alex Gorbatchev.   * diff --git a/docs/src/templates/syntaxhighlighter/shThemeDefault.css b/docs/src/templates/syntaxhighlighter/shThemeDefault.css index 13654117..8a870e4e 100644 --- a/docs/src/templates/syntaxhighlighter/shThemeDefault.css +++ b/docs/src/templates/syntaxhighlighter/shThemeDefault.css @@ -7,7 +7,7 @@   *   * @version   * 3.0.83 (July 02 2010) - *  + *   * @copyright   * Copyright (C) 2004-2010 Alex Gorbatchev.   *  | 
