Skip to content

Commit

Permalink
new sidebar navigation (#112)
Browse files Browse the repository at this point in the history
* new sidebar navigation

* remove selector

* reorganized guides section
  • Loading branch information
PGimenez authored Sep 30, 2024
1 parent a6b6646 commit 68f08fb
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 105 deletions.
14 changes: 7 additions & 7 deletions app/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@ const links = [
{
label: 'Genie Framework',
icon: 'i-heroicons-square-3-stack-3d',
to: '/framework/',
to: '/framework',
children: [
{
label: 'Guides',
to: '/framework/guides/',
icon: 'i-heroicons-book-open-20-solid',
description: '',
},
{
label: 'Genie.jl',
to: '/framework/genie.jl',
Expand All @@ -37,6 +31,12 @@ const links = [
to: '/framework/searchlight.jl',
icon: 'i-heroicons-circle-stack-20-solid',
description: '',
},
{
label: 'Guides',
to: '/framework/guides/',
icon: 'i-heroicons-book-open-20-solid',
description: '',
}
] },
{
Expand Down
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
88 changes: 0 additions & 88 deletions content/2.framework/1.guides/0.index.md

This file was deleted.

1 change: 0 additions & 1 deletion content/2.framework/1.guides/_dir.yml

This file was deleted.

4 changes: 4 additions & 0 deletions content/2.framework/5.guides/0.index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
redirect: /framework/guides/deployments/deploying-genie-apps
---

2 changes: 2 additions & 0 deletions content/2.framework/5.guides/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: Framework guides
redirect: /framework/guides/deployments/deploying-genie-apps

0 comments on commit 68f08fb

Please sign in to comment.