Skip to content

Commit c4c53aa

Browse files
author
Sean Katz
committedJul 2, 2022
Add redocusaurus with Lava's Blockchain API
1 parent a6bda01 commit c4c53aa

File tree

5 files changed

+52398
-19
lines changed

5 files changed

+52398
-19
lines changed
 
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Lava Blockchain API
3+
hide_table_of_contents: true
4+
---
5+
6+
import ApiDocMdx from '@theme/ApiDocMdx';
7+
8+
<ApiDocMdx id="lava-api" />

‎docusaurus.config.js

+34
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,40 @@ const config = {
3636
},
3737
}),
3838
],
39+
[
40+
'redocusaurus',
41+
/** @type {import('redocusaurus').PresetEntry} */
42+
{
43+
debug: Boolean(process.env.DEBUG || process.env.CI),
44+
specs: [
45+
{
46+
id: 'lava-api',
47+
spec: 'lava-api/openapi.yml',
48+
route: 'lava-api'
49+
}
50+
],
51+
theme: {
52+
/**
53+
* Highlight color for docs
54+
*/
55+
primaryColor: '#1890ff',
56+
/**
57+
* Options to pass to redoc
58+
* @see https://github.com/redocly/redoc#redoc-options-object
59+
*/
60+
options: { disableSearch: true },
61+
/**
62+
* Options to pass to override RedocThemeObject
63+
* @see https://github.com/Redocly/redoc#redoc-theme-object
64+
*/
65+
theme: {
66+
scrollYOffset: 100,
67+
sideNavStyle: "id-only"
68+
// nativeScrollbars: false
69+
},
70+
},
71+
},
72+
]
3973
],
4074

4175
themeConfig:

0 commit comments

Comments
 (0)