Added sidebar

This commit is contained in:
thepaperpilot 2022-02-28 22:08:36 -06:00
parent f1f7b48b22
commit 0488a870ef
6 changed files with 39 additions and 6 deletions

View file

@ -2,16 +2,34 @@ module.exports = {
lang: "en-US",
title: 'Profectus',
description: 'A game engine that grows with you.',
head: [
['link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Roboto+Mono' }]
],
themeConfig: {
repo: 'profectus-engine/profectus-docs',
docsDir: '',
docsBranch: 'main',
editLinks: true,
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last Updated',
nav: [
{ text: "Home", link: "/" },
{ text: "Guide", link: "/guide/", activeMatch: "^/guide/" },
{ text: "Forums", link: "https://forums.moddingtree.com" },
{ text: "Discord", link: "https://discord.gg/F3xveHV" },
{ text: "Github", link: "https://github.com/profectus-engine/Profectus" }
],
// sidebar: [
// { text: "Guide", link: "/docs" },
// { text: "Reference", link: "/profectus" }
// ]
sidebar: [
{
text: "Guide",
children: [
{ text: "Introduction", link: "/guide/" },
{ text: "Getting Started", link: "/guide/getting-started" }
]
},
{
text: "Creating Features",
children: []
}
]
}
}

View file

@ -0,0 +1,4 @@
/* Hide Github button that goes to profectus-docs */
.nav-links > .item:last-child {
display: none;
}

View file

@ -1,5 +1,6 @@
import DefaultTheme from 'vitepress/theme';
import Layout from './Layout.vue';
import './custom.css';
import './vars.css';
export default {

View file

@ -1 +1,3 @@
# Getting Started
Clone the repo

8
guide/index.md Normal file
View file

@ -0,0 +1,8 @@
---
title: Introduction
---
# Introduction
Profectus is a web-based game engine. You can write your content using many built in features, write your own features, and build up complex gameplay quickly and easily.
The purpose of creating profectus was to create an easy to use engine that does not create a ceiling for a programmer's personal growth. This engine will grow in complexity with you, empowering you to create increasingly complex designs and mechanics.

View file

@ -4,7 +4,7 @@ title: Home
heroText: Profectus
tagline: A game engine that grows with you
actionText: Get Started
actionLink: /docs/getting-started
actionLink: /guide/getting-started
features:
- title: Easy to Use
details: Everything is written to be as intuitive to use as possible