aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/templates')
-rw-r--r--docs/src/templates/docs.css36
-rw-r--r--docs/src/templates/docs.js10
-rw-r--r--docs/src/templates/index.html4
3 files changed, 47 insertions, 3 deletions
diff --git a/docs/src/templates/docs.css b/docs/src/templates/docs.css
index fd77970c..b3f9aad9 100644
--- a/docs/src/templates/docs.css
+++ b/docs/src/templates/docs.css
@@ -53,6 +53,42 @@ li {
border: 1px solid red;
}
+.member {
+ border: 1px solid gray;
+ margin: 2em 0;
+}
+
+.member p {
+ padding: 0;
+}
+
+.member>h2 {
+ background-color: lightgray;
+ padding: .2em .4em;
+ margin: 0;
+ border-bottom: 1px solid gray;
+}
+
+.member>ul {
+ list-style: none;
+ padding: 0;
+}
+
+.member>ul>li {
+ border: 1px solid lightgray;
+ margin: 1em;
+
+}
+.member>ul>li>h3 {
+ background-color: #EEE;
+ padding: .2em .4em;
+ margin: 0;
+ font-family: monospace;
+ border-bottom: 1px solid lightgray;
+}
+.member>ul>li>div {
+ padding: 1em;
+}
/*----- Upgrade IE Prompt -----*/
diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js
index 09a9e708..5b6379a6 100644
--- a/docs/src/templates/docs.js
+++ b/docs/src/templates/docs.js
@@ -152,6 +152,14 @@ function TutorialInstructionsCtrl($cookieStore) {
window.angular = window.angular || {};
angular.module = angular.module || {};
-angular.module.ngdocs = function($locationProvider) {
+angular.module.ngdocs = function($locationProvider, $filterProvider) {
$locationProvider.html5Mode(true).hashPrefix('!');
+
+ $filterProvider.register('title', function(){
+ return function(text) {
+ return text && text.replace(/^angular\.module\.([^\.]+)(\.(.*))?$/, function(_, module, _0, name){
+ return 'Module ' + module + (name ? ' - ' + name : '');
+ });
+ }
+ });
};
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html
index 6c8c5011..8a6dc7a7 100644
--- a/docs/src/templates/index.html
+++ b/docs/src/templates/index.html
@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="fragment" content="!">
- <title ng:bind-template="AngularJS: {{partialTitle}}">AngularJS</title>
+ <title ng:bind-template="AngularJS: {{partialTitle | title}}">AngularJS</title>
<script type="text/javascript">
// dynamically add base tag as well as css and javascript files.
// we can't add css/js the usual way, because some browsers (FF) eagerly prefetch resources
@@ -115,7 +115,7 @@
<div class="content-panel">
- <h2 ng:bind="partialTitle"></h2>
+ <h2 ng:bind="partialTitle | title"></h2>
<ng:include id="content"
class="content-panel-content"
src="getCurrentPartial()"