-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
631 additions
and
1,578 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
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
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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { defineConfig } from "vitepress"; | ||
|
||
export default defineConfig({ | ||
lang: "en-US", | ||
title: "BaklavaJS", | ||
description: "Graph / node editor in the browser using VueJS", | ||
themeConfig: { | ||
editLink: { | ||
pattern: "https://github.com/newcat/baklavajs/edit/master/docs/:path", | ||
}, | ||
externalLinkIcon: true, | ||
nav: [ | ||
{ | ||
text: "API Reference", | ||
link: "/api-reference.md", | ||
}, | ||
{ | ||
text: "v1", | ||
link: "https://v1.baklava.tech", | ||
}, | ||
], | ||
sidebar: [ | ||
{ text: "Getting Started", link: "/getting-started.md" }, | ||
{ text: "Core Concepts", link: "/core-concepts.md" }, | ||
{ | ||
text: "Nodes", | ||
items: [ | ||
{ text: "Creating Nodes", link: "/nodes/nodes.md" }, | ||
{ text: "Node Interfaces", link: "/nodes/interfaces.md" }, | ||
{ text: "Pre-defined Interfaces", link: "/nodes/pre-defined-interfaces.md" }, | ||
{ text: "Interface Types", link: "/nodes/interface-types.md" }, | ||
{ text: "Node Lifecycle", link: "/nodes/lifecycle.md" }, | ||
{ text: "Dynamic Nodes", link: "/nodes/dynamic-nodes.md" }, | ||
], | ||
}, | ||
{ | ||
text: "Editor", | ||
items: [ | ||
{ text: "Registering Nodes", link: "/editor/registering-nodes.md" }, | ||
{ text: "Subgraphs", link: "/editor/subgraphs.md" }, | ||
], | ||
}, | ||
{ | ||
text: "Visual Editor", | ||
items: [ | ||
{ text: "Setup", link: "/visual-editor/setup.md" }, | ||
{ text: "Commands", link: "/visual-editor/commands.md" }, | ||
{ text: "Toolbar", link: "/visual-editor/toolbar.md" }, | ||
{ text: "Customization", link: "/visual-editor/customization.md" }, | ||
], | ||
}, | ||
{ | ||
text: "Graph Execution", | ||
items: [ | ||
{ text: "Graph Execution", link: "/execution/setup.md" }, | ||
{ text: "Dependency Engine", link: "/execution/dependency.md" }, | ||
{ text: "Forward Engine", link: "/execution/forward.md" }, | ||
], | ||
}, | ||
{ text: "Event System", link: "/event-system.md" }, | ||
{ text: "Browser Build", link: "/browser-build.md" }, | ||
{ text: "Migrating from Baklava v1", link: "/migration.md" }, | ||
], | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,7 @@ | ||
<script setup> | ||
import StaticLink from "./components/StaticLink"; | ||
</script> | ||
|
||
# API Reference | ||
|
||
You can find the API reference <StaticLink href="/api/">here</StaticLink> |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<StaticLink :href="href" target="_blank"><slot /></StaticLink> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { computed } from "vue"; | ||
import StaticLink from "./StaticLink"; | ||
const props = withDefaults( | ||
defineProps<{ | ||
module: string; | ||
type: "classes" | "modules" | "interfaces"; | ||
name?: string; | ||
hash?: string; | ||
}>(), | ||
{ | ||
name: "", | ||
hash: "", | ||
}, | ||
); | ||
const href = computed(() => { | ||
const transformedModuleName = props.module.replace("@", "_").replace("/", "_"); | ||
let url = `https://v2.baklava.tech/api/${props.type}/${transformedModuleName}`; | ||
if (props.type !== "modules") { | ||
url += `.${props.name}`; | ||
} | ||
url += ".html"; | ||
if (props.hash) { | ||
url += `#${props.hash}`; | ||
} | ||
return url; | ||
}); | ||
</script> |
7 changes: 3 additions & 4 deletions
7
docs/.vuepress/components/Mermaid.vue → docs/components/Mermaid.vue
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
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
File renamed without changes
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
File renamed without changes
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
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
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
Empty file.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.