This commit is contained in:
Robert Jelic
2025-02-16 18:01:30 +01:00
parent 68925bb926
commit 41e6149828
3 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Basalt",
description: "A UI Framework made for CC:Tweaked",
lang: 'en-US',
lastUpdated: true,
base: "/Basalt2/",
head: [
//[
// 'link',
// { rel: 'stylesheet', href: '../css/computer.css', type: 'text/css' }
//],
//[
// 'script',
// { async: '', src: 'https://copy-cat.squiddev.cc/require.js' }
//],
//[
// 'script',
// {},
// `require.config({ paths: { copycat: "https://copy-cat.squiddev.cc/" } });
// require(["copycat/embed"], setup => setup(document.getElementById("embed-computer")));`
//],
//[
// 'script',
// {src: '../js/computer.js' },
//],
//HTML for this:
//<button onclick="toggleComputer('computer-1')">Click Me</button>
//<div id="computer-1" class="computer">
// <div id="embed-computer"></div>
//</div>
],
themeConfig: {
editLink: {
pattern: 'https://github.com/Pyroxenium/Basalt2/tree/gh-pages/docs/:path'
},
search: {
provider: 'local'
},
outline: 2,
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2025 Robert Jelic'
},
nav: [
{ text: 'Home', link: '/home' },
{ text: 'References', link: '/references/main' },
],
docFooter: {
prev: false,
next: false
},
sidebar: {
'/guides/': [
],
'/references/':[
{
text: 'References', link: 'references/main',
items: [
{text: 'Basalt', link: 'references/basalt'},
{text: 'Element', link: 'references/baseelement'},
{text: 'Frame', link: 'references/frame'},
]
}
]
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/Pyroxenium/Basalt2' }
]
}
})

31
docs/index.md Normal file
View File

@@ -0,0 +1,31 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
hero:
name: "Basalt"
text: Official Documentation
tagline: A CC:Tweaked UI Framework
actions:
- theme: brand
text: Home
link: /guides/
- theme: alt
text: Guides
link: guides/getting-started
- theme: alt
text: References
link: /references
- theme: alt
text: Github
link: https://github.com/Pyroxenium/Basalt/tree/basalt2
features:
- title: User friendly
details: Basalt's intuitive interface makes UI design a breeze, even for beginners. Experience seamless integration without the steep learning curve.
- title: High Performance
details: Designed with efficiency in mind, Basalt ensures smooth and responsive interfaces, even for the most complex applications.
- title: Modular Design
details: With a rich set of objects and modules, Basalt allows you to craft custom experiences, scaling up or down based on your needs.
---

1
docs/references.md Normal file
View File

@@ -0,0 +1 @@
# References Page