Skip to content

Commit

Permalink
add back theme config
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Nov 30, 2024
1 parent 84c771c commit 74200e6
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 0 deletions.
150 changes: 150 additions & 0 deletions www/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Sunbeam",
head: [
["link", { rel: "icon", href: "/favicon.png" }],
["meta", { property: "og:type", content: "website" }],
[
"meta",
{
property: "og:image",
content: "https://pomdtr.github.io/sunbeam/screenshot.png",
},
],
[
"meta",
{
property: "og:description",
content: "Wrap your tools in keyboard-friendly TUIs",
},
],
],
appearance: "force-dark",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
outline: [2, 3],
nav: [
{ text: "Home", link: "/" },
{
text: "Docs",
link: "/docs/",
},
{
text: "Extension Catalog",
link: "/catalog/",
},
],
search: {
provider: "local",
},
sidebar: [
{
text: "Introduction",
link: "/docs/",
},
{
text: "User Guide",
items: [
{
text: "Installation",
link: "/docs/user-guide/installation",
},
{
text: "Quick Start",
link: "/docs/user-guide/quickstart",
},
{
text: "Integrations",
link: "/docs/user-guide/integrations",
},
],
},
{
text: "Developer Guide",
items: [
{
text: "Guidelines",
link: "/docs/developer-guide/guidelines",
},
{
text: "Examples",
items: [
{
text: "DevDocs (Shell)",
link: "/docs/developer-guide/examples/devdocs",
},
{
text: "Hackernews (Typescript)",
link: "/docs/developer-guide/examples/hackernews",
},
{
text: "File Browser (Python)",
link: "/docs/developer-guide/examples/file-browser",
},
{
text: "Google Search (Shell)",
link: "/docs/developer-guide/examples/google-search",
},
],
},
{
text: "Publishing",
link: "/docs/developer-guide/publishing",
},
{
text: "Tips",
link: "/docs/developer-guide/tips",
},
],
},
{
text: "Reference",
items: [
{
text: "Configuration",
link: "/docs/reference/config",
},
{
text: "Schemas",
collapsed: true,
items: [
{
text: "Manifest",
link: "/docs/reference/schemas/manifest",
},
{
text: "Payload",
link: "/docs/reference/schemas/payload",
},
{
text: "List",
link: "/docs/reference/schemas/list",
},
{
text: "Detail",
link: "/docs/reference/schemas/detail",
},
{
text: "Action",
link: "/docs/reference/schemas/action",
},
],
},
{
text: "CLI",
link: "/docs/reference/cli",
},
],
},
{
text: "Alternatives",
link: "/docs/alternatives",
},
],
socialLinks: [
{ icon: "github", link: "https://github.com/pomdtr/sunbeam" },
],
},
});
33 changes: 33 additions & 0 deletions www/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<script setup>
import DefaultTheme from 'vitepress/theme'
const { Layout } = DefaultTheme
</script>

<template>
<Layout>
<template #home-hero-image>
<div class="demo-wrapper">
<img src="https://vhs.charm.sh/vhs-1331psn9qEJqr4QhiCMSMd.gif" class="demo" />
</div>
</template>
</Layout>
</template>

<style>
.demo-wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%; /* Adjust the height as needed to match the parent div's height */
}
.demo {
margin: auto;
border: double 4px transparent;
border-radius: 10px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00, #3020ff);
background-origin: border-box;
background-clip: padding-box, border-box;
}
</style>
10 changes: 10 additions & 0 deletions www/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import DefaultTheme from 'vitepress/theme'
import { Theme } from 'vitepress'
// @ts-ignore
import Layout from './Layout.vue'


export default {
extends: DefaultTheme,
Layout,
} as Theme

0 comments on commit 74200e6

Please sign in to comment.