Skip to content

Commit

Permalink
docs: migrated to new docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecarr committed Apr 29, 2024
1 parent 770be57 commit 3f029d8
Show file tree
Hide file tree
Showing 29 changed files with 646 additions and 136 deletions.
178 changes: 177 additions & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,177 @@
book
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

# Logs

logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Caches

.cache

# Diagnostic reports (https://nodejs.org/api/report.html)

report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Runtime data

pids
_.pid
_.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover

lib-cov

# Coverage directory used by tools like istanbul

coverage
*.lcov

# nyc test coverage

.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)

.grunt

# Bower dependency directory (https://bower.io/)

bower_components

# node-waf configuration

.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)

build/Release

# Dependency directories

node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)

web_modules/

# TypeScript cache

*.tsbuildinfo

# Optional npm cache directory

.npm

# Optional eslint cache

.eslintcache

# Optional stylelint cache

.stylelintcache

# Microbundle cache

.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history

.node_repl_history

# Output of 'npm pack'

*.tgz

# Yarn Integrity file

.yarn-integrity

# dotenv environment variable files

.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)

.parcel-cache

# Next.js build output

.next
out

# Nuxt.js build / generate output

.nuxt
dist

# Gatsby files

# Comment in the public line in if your project uses Gatsby and not Next.js

# https://nextjs.org/blog/next-9-1#public-directory-support

# public

# vuepress build output

.vuepress/dist

# vuepress v2.x temp and cache directory

.temp

# Docusaurus cache and generated files

.docusaurus

# Serverless directories

.serverless/

# FuseBox cache

.fusebox/

# DynamoDB Local files

.dynamodb/

# TernJS port file

.tern-port

# Stores VSCode versions used for testing VSCode extensions

.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IntelliJ based IDEs
.idea

# Finder (MacOS) folder config
.DS_Store

.vitepress/cache
70 changes: 70 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import { defineConfig } from 'vitepress'

export default defineConfig({
title: "Mímir",
description: "Contextual query engine for dynamic video games.",
srcDir: "src",

themeConfig: {
logo: {
light: "/mimir-light.svg",
dark: "/mimir-dark.svg",
},

siteTitle: false,

footer: {
message: "Made with ❤️ in Exeter",
copyright: "Copyright © 2024 Subtale"
},

nav: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/overview' },
{ text: 'Release notes', link: '/release-notes' },
{ text: 'API Reference', link: 'https://docs.rs/subtale-mimir' },
],

sidebar: [
{
text: 'Introduction',
items: [
{ text: 'High-level overview', link: '/overview' },
{ text: 'Quick start', link: '/quick-start' },
{ text: 'Inspiration', link: '/inspiration' },
]
},
{
text: 'Concepts',
items: [
{ text: 'Evaluator', link: '/concepts/evaluator' },
{ text: 'Query', link: '/concepts/query' },
{ text: 'Rule', link: '/concepts/rule' },
{ text: 'Ruleset', link: '/concepts/ruleset' },
]
},
{
text: 'Recipes',
items: [
{ text: 'Loading screen tips', link: '/recipes/tips' },
{ text: 'Repeated evaluations', link: '/recipes/repeated-evaluations' },
]
},
{
text: 'Miscellaneous',
items: [
{ text: 'Performance', link: '/performance' },
{ text: 'Serialisation', link: '/serialisation' },
]
}
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/subtalegames/mimir' },
{ icon: 'x', link: 'https://x.com/subtalegames' },
{ icon: 'instagram', link: 'https://instagram.com/subtalegames' },
{ icon: 'youtube', link: 'https://youtube.com/@subtalegames' },
{ icon: 'discord', link: 'https://discord.subtale.com' },
]
}
})
17 changes: 17 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './style.css'

export default {
extends: DefaultTheme,
Layout: () => {
return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
})
},
enhanceApp({ app, router, siteData }) {
// ...
}
} satisfies Theme
92 changes: 92 additions & 0 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
:root {
--vp-c-default-1: var(--vp-c-gray-1);
--vp-c-default-2: var(--vp-c-gray-2);
--vp-c-default-3: var(--vp-c-gray-3);
--vp-c-default-soft: var(--vp-c-gray-soft);

--vp-c-brand-1: #5686f3;
--vp-c-brand-2: #5686f3;
--vp-c-brand-3: #2060d3;
--vp-c-brand-soft: var(--vp-c-indigo-soft);

--vp-c-tip-1: var(--vp-c-brand-1);
--vp-c-tip-2: var(--vp-c-brand-2);
--vp-c-tip-3: var(--vp-c-brand-3);
--vp-c-tip-soft: var(--vp-c-brand-soft);

--vp-c-warning-1: var(--vp-c-yellow-1);
--vp-c-warning-2: var(--vp-c-yellow-2);
--vp-c-warning-3: var(--vp-c-yellow-3);
--vp-c-warning-soft: var(--vp-c-yellow-soft);

--vp-c-danger-1: var(--vp-c-red-1);
--vp-c-danger-2: var(--vp-c-red-2);
--vp-c-danger-3: var(--vp-c-red-3);
--vp-c-danger-soft: var(--vp-c-red-soft);

--vp-button-brand-border: transparent;
--vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-bg: var(--vp-c-brand-3);
--vp-button-brand-hover-border: transparent;
--vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
--vp-button-brand-active-border: transparent;
--vp-button-brand-active-text: var(--vp-c-white);
--vp-button-brand-active-bg: #cadff4;

--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#2060d3 30%,
#5686f3
);

--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#5686f3 50%,
#cadff4 50%
);
--vp-home-hero-image-filter: blur(44px);

--vp-custom-block-tip-border: transparent;
--vp-custom-block-tip-text: var(--vp-c-text-1);
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
--vp-code-color: #090242;
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(68px);
}
}

:root.dark {
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#0b3c93,
#051f4f
);

--vp-code-color: #f0f0f1;
}

.DocSearch {
--docsearch-primary-color: var(--vp-c-brand-1) !important;
}

a.title > span {
font-size: 23px;
margin-top: 7px;
color: #090242;
}

.dark a.title > span {
color: #ffffff;
}
15 changes: 15 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# docs

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.0.33. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
6 changes: 0 additions & 6 deletions docs/book.toml

This file was deleted.

Binary file added docs/bun.lockb
Binary file not shown.
Loading

0 comments on commit 3f029d8

Please sign in to comment.