@@ -39,6 +39,10 @@ const examples = fs.readdirSync("static/blocks").map((ex) => {
3939 } ;
4040} ) ;
4141
42+ function link ( title , path ) {
43+ return `<a class="dropdown__link" href="${ path } "> ${ title } </a>` ;
44+ }
45+
4246/** @type {import('@docusaurus/types').Config } */
4347const config = {
4448 title : "Perspective" ,
@@ -119,20 +123,73 @@ const config = {
119123 label : "Docs" ,
120124 items : [
121125 {
122- href : "/guide/" ,
123- label : "User Guide" ,
126+ type : "html" ,
127+ value : `<a class="dropdown__link" style="font-size:16px;padding:0.25rem 0rem" href="/guide/">User Guide</a>` ,
128+ } ,
129+ {
130+ type : "html" ,
131+ value : '<span style="user-select:none">Python API</span>' ,
132+ } ,
133+ {
134+ type : "html" ,
135+ value : `<a class="dropdown__link" href="/python/"><code>perspective</code></a>` ,
136+ } ,
137+ {
138+ type : "html" ,
139+ value : `<a class="dropdown__link" href="/python/perspective/widget.html"><code>perspective.widget</code></a>` ,
140+ } ,
141+ {
142+ type : "html" ,
143+ value : `<a class="dropdown__link" href="/python/perspective/handlers/aiohttp.html"><code>perspective.handlers.aiohttp</code></a>` ,
144+ } ,
145+ {
146+ type : "html" ,
147+ value : `<a class="dropdown__link" href="/python/perspective/handlers/starlette.html"><code>perspective.handlers.starlette</code></a>` ,
148+ } ,
149+ {
150+ type : "html" ,
151+ value : `<a class="dropdown__link" href="/python/perspective/handlers/tornado.html"><code>perspective.handlers.tornado</code></a>` ,
152+ } ,
153+ {
154+ type : "html" ,
155+ value : '<span style="user-select:none">JavaScript API</span>' ,
156+ } ,
157+ {
158+ type : "html" ,
159+ value : link (
160+ "<code>@finos/perspective-viewer</code>" ,
161+ "/viewer/modules/perspective-viewer.html"
162+ ) ,
163+ } ,
164+ {
165+ type : "html" ,
166+ value : link (
167+ "<code>@finos/perspective</code> Browser" ,
168+ "/browser/modules/src_ts_perspective.browser.ts.html"
169+ ) ,
170+ } ,
171+ {
172+ type : "html" ,
173+ value : link (
174+ "<code>@finos/perspective</code> Node.js" ,
175+ "/node/modules/src_ts_perspective.node.ts.html"
176+ ) ,
177+ } ,
178+ {
179+ type : "html" ,
180+ value : '<span style="user-select:none">Rust API</span>' ,
124181 } ,
125182 {
126183 type : "html" ,
127- value : `<a class="dropdown__link" href="https://docs.rs/perspective-js/latest/perspective_js/"><code>@finos/ perspective</code> JavaScript API </a>` ,
184+ value : `<a class="dropdown__link" href="https://docs.rs/perspective-js/latest/perspective_js/"><code>perspective-js </code></a>` ,
128185 } ,
129186 {
130187 type : "html" ,
131- value : `<a class="dropdown__link" href="https://docs.rs/perspective-python/latest/perspective_python/"><code>perspective-python</code> Python API </a>` ,
188+ value : `<a class="dropdown__link" href="https://docs.rs/perspective-python/latest/perspective_python/"><code>perspective-python</code></a>` ,
132189 } ,
133190 {
134191 type : "html" ,
135- value : `<a class="dropdown__link" href="https://docs.rs/perspective/latest/perspective/"><code>perspective</code> Rust API </a>` ,
192+ value : `<a class="dropdown__link" href="https://docs.rs/perspective/latest/perspective/"><code>perspective</code></a>` ,
136193 } ,
137194 ] ,
138195 } ,
0 commit comments