Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 1dccb91

Browse files
committed
Added documentation.css file.
1 parent 6067a4e commit 1dccb91

File tree

3 files changed

+46
-44
lines changed

3 files changed

+46
-44
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ const plugin = data => new Promise((resolve, reject) => {
5454
`${data.title}.docset/Contents/Resources/Documents/resources/`
5555
);
5656

57+
zip.addLocalFile(
58+
path.join(__dirname, 'templates/resources/documentation.css'),
59+
`${data.title}.docset/Contents/Resources/Documents/resources/`
60+
);
61+
5762
zip.addLocalFile(
5863
path.join(__dirname, 'templates/resources/github.min.css'),
5964
`${data.title}.docset/Contents/Resources/Documents/resources/`

templates/method.hbs

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,7 @@
66
<title>{{name}}</title>
77
<link rel="stylesheet" href="resources/bootstrap.min.css">
88
<link rel="stylesheet" href="resources/github.min.css">
9-
<style>
10-
11-
.wrap {
12-
padding: 2rem 1rem;
13-
}
14-
15-
.method {
16-
margin: 0 0 4rem 0;
17-
}
18-
19-
.method .method-name {
20-
display: inline-block;
21-
width: 100%;
22-
white-space: nowrap;
23-
overflow: hidden;
24-
text-overflow: ellipsis;
25-
}
26-
27-
.method .method-name + .scope-private {
28-
color: #AAAAAA;
29-
}
30-
31-
.method section {
32-
margin: 2rem 0;
33-
}
34-
35-
.method h3 {
36-
margin: 0 0 1rem 0;
37-
}
38-
39-
.method .table,
40-
.method .table p,
41-
.method .table ol,
42-
.method .table ul {
43-
margin: 0;
44-
}
45-
46-
.bs-footer {
47-
margin: 3rem auto;
48-
color: #777;
49-
text-align: center;
50-
}
51-
52-
</style>
9+
<link rel="stylesheet" href="resources/documentation.css">
5310
</head>
5411

5512
<body>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.wrap {
2+
padding: 2rem 1rem;
3+
}
4+
5+
.method {
6+
margin: 0 0 4rem 0;
7+
}
8+
9+
.method .method-name {
10+
display: inline-block;
11+
width: 100%;
12+
white-space: nowrap;
13+
overflow: hidden;
14+
text-overflow: ellipsis;
15+
}
16+
17+
.method .method-name + .scope-private {
18+
color: #AAAAAA;
19+
}
20+
21+
.method section {
22+
margin: 2rem 0;
23+
}
24+
25+
.method h3 {
26+
margin: 0 0 1rem 0;
27+
}
28+
29+
.method .table,
30+
.method .table p,
31+
.method .table ol,
32+
.method .table ul {
33+
margin: 0;
34+
}
35+
36+
.bs-footer {
37+
margin: 3rem auto;
38+
color: #777;
39+
text-align: center;
40+
}

0 commit comments

Comments
 (0)