Skip to content

Commit 891b06c

Browse files
committed
Merge pull request #447 from documentationjs/local-util
Move documentation-theme-utils into core
2 parents 9bda568 + 3f08c19 commit 891b06c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2754
-683
lines changed

default-theme/index.js

Lines changed: 0 additions & 101 deletions
This file was deleted.

default-theme/lib/format_markdown.js

Lines changed: 0 additions & 63 deletions
This file was deleted.

default-theme/lib/format_parameters.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

default-theme/lib/highlight.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

default-theme/section_list._

Lines changed: 0 additions & 20 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

default-theme/assets/style.css renamed to default_theme/assets/style.css

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
.documentation {
2-
font-family: Helvetica, sans-serif;
3-
color: #666;
4-
line-height: 1.5;
2+
font-family: Helvetica, sans-serif;
3+
color: #666;
4+
line-height: 1.5;
5+
background: #f5f5f5;
56
}
67

78
.black {
89
color: #666;
910
}
1011

12+
.bg-white {
13+
background-color: #fff;
14+
}
15+
1116
h4 {
1217
margin: 20px 0 10px 0;
1318
}
@@ -16,20 +21,8 @@ h4 {
1621
color: #000;
1722
}
1823

19-
.keyline-top {
20-
border-top: 1px solid #ccc;
21-
}
22-
23-
.keyline-top-not {
24-
border-top: 1px solid #ccc;
25-
}
26-
27-
.keyline-top-not:first-child {
28-
border-top: none;
29-
}
30-
31-
.keyline-right {
32-
border-right: 1px solid #ccc;
24+
.border-bottom {
25+
border-color: #ddd;
3326
}
3427

3528
a {
@@ -125,10 +118,14 @@ table {
125118

126119
.prose table th,
127120
.prose table td {
121+
text-align: left;
128122
padding:8px;
129123
border:1px solid #ddd;
130124
}
131125

126+
.prose table th:nth-child(1) { border-right: none; }
127+
.prose table th:nth-child(2) { border-left: none; }
128+
132129
.prose table {
133130
border:1px solid #ddd;
134131
}
@@ -141,3 +138,7 @@ table {
141138
.quiet {
142139
opacity: 0.7;
143140
}
141+
142+
.minishadow {
143+
box-shadow: 2px 2px 10px #f3f3f3;
144+
}

default-theme/index._ renamed to default_theme/index._

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<% docs.forEach(function(doc) { %>
2626
<% var hasMembers = doc.members.static.length || doc.members.instance.length %>
2727
<li><a
28-
href='#<%=doc.namespace%>'
28+
href='#<%=slug(doc.namespace)%>'
2929
class="<% if (doc.kind === 'note') { %>h5 bold black caps<% } %><% if (hasMembers) { %> toggle-sibling<% } %>">
3030
<%- doc.name %>
3131
<% if (hasMembers) { %><span class='icon'>▸</span><% } %>
@@ -80,19 +80,17 @@
8080
</div>
8181
</div>
8282
<div class='fix-margin-3'>
83-
<div class='px2'>
84-
<% docs.forEach(function(s) { %>
85-
<% if (s.kind !== 'note') { %>
86-
<%= renderSection({
87-
section: s,
88-
renderSection: renderSection,
89-
renderSectionList: renderSectionList
90-
}) %>
91-
<% } else { %>
92-
<div class='keyline-top-not py2'><%=renderNote({ note: s })%></div>
93-
<% } %>
94-
<% }) %>
95-
</div>
83+
<% docs.forEach(function(s) { %>
84+
<% if (s.kind !== 'note') { %>
85+
<%= renderSection({
86+
section: s,
87+
renderSection: renderSection,
88+
renderSectionList: renderSectionList
89+
}) %>
90+
<% } else { %>
91+
<div class='keyline-top-not py2'><%=renderNote({ note: s })%></div>
92+
<% } %>
93+
<% }) %>
9694
</div>
9795
</div>
9896
</div>

0 commit comments

Comments
 (0)