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="${
2525 } " class="method-permalink" aria-label="Permalink">#</a>
2626 ${ method . fullName }
2727</h2>
28+ ${ method . private ? `<p class="method-scope">private method</p>` : '' }
2829
2930${ method . description ? md . render ( method . description ) : '' }
3031
@@ -107,6 +108,11 @@ export default async (doc: Doc): Promise<string> => `<!DOCTYPE html>
107108 position: relative;
108109 }
109110
111+ .method-scope {
112+ font-size: 1.5rem;
113+ color: #999;
114+ }
115+
110116 .method-permalink {
111117 position: absolute;
112118 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>
3535<title>${ doc . name } ${ doc . description ? ` - ${ doc . description } ` : '' } </title>
3636<link rel="stylesheet" href="resources/bootstrap.min.css">
3737<link rel="stylesheet" href="resources/github.min.css">
38+ <style>
39+ .method-scope {
40+ font-size: 1.5rem;
41+ color: #999;
42+ }
43+ </style>
3844</head>
3945
4046<body>
@@ -44,6 +50,7 @@ const renderMethod = (doc: Doc, method: Method) => `<!DOCTYPE html>
4450<h2 class="method-name">
4551 ${ method . fullName }
4652</h2>
53+ ${ method . private ? `<p class="method-scope">private method</p>` : '' }
4754
4855${ method . description ? md . render ( method . description ) : '' }
4956
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const renderMethod = (method: Method) => `<div class="mb-5"><a name="${
2222} " />
2323
2424<h2 class="method-name">${ method . fullName } </h2>
25+ ${ method . private ? `<p class="method-scope">private method</p>` : '' }
2526
2627${ method . description ? md . render ( method . description ) : '' }
2728
@@ -101,6 +102,11 @@ export default async (doc: Doc): Promise<Buffer> => {
101102 .method-name {
102103 position: relative;
103104 }
105+
106+ .method-scope {
107+ font-size: 1.5rem;
108+ color: #999;
109+ }
104110 </style>
105111 </head>
106112 <body>
You can’t perform that action at this time.
0 commit comments