File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
doxdox-renderer-bootstrap/src Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const renderMethod = (method: Method) => `<div class="mb-5"><a name="${
25
25
} " class="method-permalink" aria-label="Permalink">#</a>
26
26
${ method . fullName }
27
27
</h2>
28
+ ${ method . private ? `<p class="method-scope">private method</p>` : '' }
28
29
29
30
${ method . description ? md . render ( method . description ) : '' }
30
31
@@ -107,6 +108,11 @@ export default async (doc: Doc): Promise<string> => `<!DOCTYPE html>
107
108
position: relative;
108
109
}
109
110
111
+ .method-scope {
112
+ font-size: 1.5rem;
113
+ color: #999;
114
+ }
115
+
110
116
.method-permalink {
111
117
position: absolute;
112
118
margin-left: -1em;
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ const renderMethod = (doc: Doc, method: Method) => `<!DOCTYPE html>
35
35
<title>${ doc . name } ${ doc . description ? ` - ${ doc . description } ` : '' } </title>
36
36
<link rel="stylesheet" href="resources/bootstrap.min.css">
37
37
<link rel="stylesheet" href="resources/github.min.css">
38
+ <style>
39
+ .method-scope {
40
+ font-size: 1.5rem;
41
+ color: #999;
42
+ }
43
+ </style>
38
44
</head>
39
45
40
46
<body>
@@ -44,6 +50,7 @@ const renderMethod = (doc: Doc, method: Method) => `<!DOCTYPE html>
44
50
<h2 class="method-name">
45
51
${ method . fullName }
46
52
</h2>
53
+ ${ method . private ? `<p class="method-scope">private method</p>` : '' }
47
54
48
55
${ method . description ? md . render ( method . description ) : '' }
49
56
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const renderMethod = (method: Method) => `<div class="mb-5"><a name="${
22
22
} " />
23
23
24
24
<h2 class="method-name">${ method . fullName } </h2>
25
+ ${ method . private ? `<p class="method-scope">private method</p>` : '' }
25
26
26
27
${ method . description ? md . render ( method . description ) : '' }
27
28
@@ -101,6 +102,11 @@ export default async (doc: Doc): Promise<Buffer> => {
101
102
.method-name {
102
103
position: relative;
103
104
}
105
+
106
+ .method-scope {
107
+ font-size: 1.5rem;
108
+ color: #999;
109
+ }
104
110
</style>
105
111
</head>
106
112
<body>
You can’t perform that action at this time.
0 commit comments