-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Linkurious/develop
1.0.2
- Loading branch information
Showing
41 changed files
with
974 additions
and
922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 1.0.1 | ||
current_version = 1.0.2 | ||
commit = False | ||
tag = False | ||
serialize = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.1 | ||
1.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,64 @@ | ||
import { DefaultTheme, defineConfig } from 'vitepress'; | ||
import fs from 'fs/promises'; | ||
import { DefaultTheme, defineConfig } from "vitepress"; | ||
import fs from "fs/promises"; | ||
|
||
// recursively go into input dir and create a vitepress sidebar config | ||
function createSidebar(dir) { | ||
return fs.readdir(dir, { withFileTypes: true }) | ||
.then(files => { | ||
const promises = files.map(file => { | ||
return fs | ||
.readdir(dir, { withFileTypes: true }) | ||
.then((files) => { | ||
const promises = files.map((file) => { | ||
if (file.isDirectory()) { | ||
return createSidebar(`${dir}/${file.name}`); | ||
} else if (file.name.endsWith('.md')) { | ||
} else if (file.name.endsWith(".md")) { | ||
return { | ||
text: file.name.replace('.md', ''), | ||
link: `${dir.replace('docs/', '')}/${file.name.replace('.md', '')}`, | ||
text: file.name.replace(".md", ""), | ||
link: `${dir.replace("docs/", "")}/${file.name.replace(".md", "")}`, | ||
}; | ||
} | ||
}); | ||
return Promise.all(promises); | ||
}) | ||
.then(res => { | ||
return res.filter(r => r); | ||
.then((res) => { | ||
return res.filter((r) => r); | ||
}); | ||
} | ||
const classes = await createSidebar('docs/api/classes'); | ||
const classes = await createSidebar("docs/api/classes"); | ||
// const interfaces = await createSidebar('docs/api/interfaces'); | ||
const sidebar: DefaultTheme.Sidebar = { | ||
'api/': [ | ||
"api/": [ | ||
{ | ||
text: 'OgmaOracleParser', | ||
link: 'api/classes/OgmaOracleParser' | ||
text: "OgmaOracleParser", | ||
link: "api/classes/OgmaOracleParser", | ||
}, | ||
{ | ||
text: 'Types', | ||
link: 'api/modules' | ||
text: "Types", | ||
link: "api/modules", | ||
}, | ||
], | ||
}; | ||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: "ogma-oracle-parser", | ||
description: "Seamless Ogma and Oracle Property Graph integration", | ||
head: [['link', { rel: 'icon', href: '/ogma-oracle-parser/favicon.ico' }]], | ||
base: '/ogma-oracle-parser/', | ||
description: | ||
"Seamless communication between Ogma and SQL Property Graphs in the Oracle Database 23ai", | ||
head: [["link", { rel: "icon", href: "/ogma-oracle-parser/favicon.ico" }]], | ||
base: "/ogma-oracle-parser/", | ||
themeConfig: { | ||
logo: '/logo-small.svg', | ||
logo: "/logo-small.svg", | ||
nav: [ | ||
{ text: 'Getting started', link: '/getting-started' }, | ||
{ text: 'Example', link: '/example' }, | ||
{ text: 'API', link: '/api/classes/OgmaOracleParser' }, | ||
|
||
{ text: "Getting started", link: "/getting-started" }, | ||
{ text: "Example", link: "/example" }, | ||
{ text: "API", link: "/api/classes/OgmaOracleParser" }, | ||
], | ||
sidebar, | ||
outline: { | ||
level: [2, 3] | ||
level: [2, 3], | ||
}, | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/Linkurious/ogma-oracle-graph-db' } | ||
] | ||
} | ||
{ | ||
icon: "github", | ||
link: "https://github.com/Linkurious/ogma-oracle-graph-db", | ||
}, | ||
], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.