From 4f22d6866c052fb5b770ce4f377cecacacd9e6d8 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 23 Dec 2010 00:44:27 +0100 Subject: complete rewrite of documentation generation - romeved mustache.js - unified templates - improved testability of the code --- docs/docs.js | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 docs/docs.js (limited to 'docs/docs.js') diff --git a/docs/docs.js b/docs/docs.js deleted file mode 100644 index 6bf86ed3..00000000 --- a/docs/docs.js +++ /dev/null @@ -1,47 +0,0 @@ -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; - }; - - this.getCurrentPartial = function(){ - return './' + this.getTitle() + '.html'; - }; - - this.getTitle = function(){ - var hashPath = $location.hashPath || '!angular'; - if (hashPath.match(/^!angular/)) { - this.partialTitle = hashPath.substring(1); - } - return this.partialTitle; - }; - - this.getClass = function(page) { - var depth = page.name.split(/\./).length - 1, - cssClass = 'level-' + depth + (page.name == this.getTitle() ? ' selected' : ''); - - if (depth == 1 && page.type !== 'overview') cssClass += ' level-angular'; - - return cssClass; - }; - - this.afterPartialLoaded = function() { - SyntaxHighlighter.highlight(); - }; - - this.getFeedbackUrl = function() { - return "mailto:angular@googlegroups.com?" + - "subject=" + escape("Feedback on " + $location.href) + "&" + - "body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ...."); - }; - -} - -angular.filter('short', function(name){ - return (name||'').split(/\./).pop(); -}); - -SyntaxHighlighter['defaults'].toolbar = false; -- cgit v1.2.3