Skip to content

Commit

Permalink
new sidebar navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
PGimenez committed Sep 25, 2024
1 parent a6b6646 commit 3918e3b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
7 changes: 4 additions & 3 deletions app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const nav = inject<Ref<NavItem[]>>('navigation')
let navigation = nav;
if (root == 'framework') {
const pkg = route.path.split('/').filter(Boolean)[1];
navigation = computed(() => nav!.value[1].children.find(item => item._path.startsWith('/framework/'+pkg))?.children || [])
// navigation = computed(() => nav!.value[1].children.find(item => item._path.startsWith('/framework/'+pkg))?.children || [])
navigation = computed(() => nav!.value[1].children || [])
} else if (root == 'tutorials') {
navigation = computed(() => nav.value.filter(item => item._path.startsWith('/tutorials')))
} else if (root == 'geniebuilder') {
Expand Down Expand Up @@ -64,8 +65,8 @@ const links = computed(() => [toc?.bottom?.edit && {

<template #left v-if="root!='tutorials'">
<UAside >
<PkgSelect v-if="root== 'framework'"/>
<UNavigationTree :links="mapContentNavigation(navigation)" :multiple="false" default-open style="min-height:600px"/>
<PkgSelect v-if="root== 'framework'"/>
<UNavigationTree :links="mapContentNavigation(navigation)" :multiple="true" default-open style="min-height:600px" :defaultOpen="1"/>
</UAside>
</template>

Expand Down
10 changes: 4 additions & 6 deletions content/2.framework/0.index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Genie Framework"
redirect: /framework/guides/
title: "Framework introduction"
---

# Welcome to Genie Framework!
Expand All @@ -10,14 +9,13 @@ Genie is a powerful full-stack web framework for the Julia programming language,

<img src="/assets/docs/guides/intro/framework.png">

Genie Framework has three main components: Genie, Stipple and SearchLight.
Genie Framework has three main components: Genie, Stipple, SearchLight and Genie Builder.

**[Genie.jl](/framework/genie.jl/docs/)** provides backend and frontend tools, so that you can build **full stack web apps** and APIs around your Julia code.

For **real-time interactivity** and a rich UI, like what's needed in a **dashboard**, **[Stipple.jl](/framework/stipple.jl/docs/)** provides a reactive UI layer.

For **database persistence**, Genie's ORM, **[SearchLight.jl](/framework/searchlight.jl)**, can be added at any time.

For **database persistence**, Genie's ORM, **[SearchLight.jl](/framework/searchlight.jl/docs)**, can be added at any time.


## Getting started
Expand Down Expand Up @@ -54,7 +52,7 @@ using GenieFramework
@genietools

@app begin
@out name = "Genie"
@in name = "Genie"
end

function ui()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Framework introduction"
navigation: false
---

# Welcome to Genie Framework!
Expand Down
File renamed without changes.

0 comments on commit 3918e3b

Please sign in to comment.