Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

.vscode/
.vscode/

# API Documentation
docs/api
26 changes: 22 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ const config = {
markdown: {
mermaid: true
},
themes: ['@docusaurus/theme-mermaid'],
themes: ['@docusaurus/theme-mermaid', 'docusaurus-theme-openapi-docs'],

plugins: [
'plugin-image-zoom',
Expand Down Expand Up @@ -507,11 +507,12 @@ const config = {
id: 'main-docs', // must be unique
path: 'docs', // folder on disk
routeBasePath: 'docs', // URL => /docs/…
sidebarPath: require.resolve('./sidebars.js'),
sidebarPath: require.resolve('./sidebars.ts'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
rehypePlugins: [imageFetchPriorityRehypePlugin],
editUrl: 'https://github.com/datazip-inc/olake-docs/tree/master/'
editUrl: 'https://github.com/datazip-inc/olake-docs/tree/master/',
docItemComponent: '@theme/ApiItem'
}
],

Expand Down Expand Up @@ -1108,7 +1109,24 @@ const config = {
]
}
],
'@docusaurus/theme-live-codeblock'
'@docusaurus/theme-live-codeblock',
[
'docusaurus-plugin-openapi-docs',
{
id: 'api',
docsPluginId: 'main-docs',
config: {
olakeApi: {
specPath: 'src/data/docs/swagger.json',
outputDir: 'docs/api',
hideSendButton: true,
sidebarOptions: {
groupPathsBy: 'tag'
}
}
}
}
]
]

// Removed render-blocking stylesheets - fonts now loaded asynchronously via head tags
Expand Down
Loading