File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
packages/doxdox-renderer-bootstrap/src Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ ${method.returns.map(
65
65
</div>
66
66
` ;
67
67
68
- const renderFileNav = ( file : File ) => `<p><b>${ file . path } </b></p>
68
+ const renderFileNav = ( file : File ) => `<p><a href="#${
69
+ file . path
70
+ } " class="file-name"><b>${ file . path } </b></a></p>
69
71
<ul class="list-unstyled ml-0">
70
72
${ file . methods
71
73
. map (
@@ -78,7 +80,8 @@ ${file.methods
78
80
</ul>` ;
79
81
80
82
const renderFile = ( file : File ) =>
81
- `${ file . methods . map ( method => renderMethod ( method ) ) . join ( '' ) } ` ;
83
+ `<a name="${ file . path } " />
84
+ ${ file . methods . map ( method => renderMethod ( method ) ) . join ( '' ) } `;
82
85
83
86
export default async ( doc : Doc ) : Promise < string > => `<!DOCTYPE html>
84
87
<html>
@@ -109,6 +112,10 @@ export default async (doc: Doc): Promise<string> => `<!DOCTYPE html>
109
112
font-weight: 200;
110
113
}
111
114
115
+ .file-name {
116
+ color: #E54D89;
117
+ }
118
+
112
119
.method-name {
113
120
position: relative;
114
121
}
You can’t perform that action at this time.
0 commit comments