Skip to content

Commit

Permalink
zoom and contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
DexrnZacAttack committed Nov 3, 2024
1 parent 7523c5a commit 165b9c7
Show file tree
Hide file tree
Showing 7 changed files with 992 additions and 29 deletions.
34 changes: 24 additions & 10 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
import { defineConfig, HeadConfig } from 'vitepress';
import { generateSidebar } from 'vitepress-sidebar';
import { withPwa } from '@vite-pwa/vitepress'

import lightbox from "vitepress-plugin-lightbox"
import { GitChangelog, GitChangelogMarkdownSection } from '@nolebase/vitepress-plugin-git-changelog';

export default withPwa(defineConfig({
vite: {
plugins: [
GitChangelog({
repoURL: () => 'https://github.com/Team-Lodestone/Documentation'
}),
GitChangelogMarkdownSection(),
],
server: {
host: '0.0.0.0',
port: 80,
}
},
title: 'Project Lodestone - Documentation',
description: 'Documentation for Project Lodestone and various file formats and mechanics for many versions and editions of Minecraft.',
lastUpdated: true,
Expand All @@ -13,7 +26,12 @@ export default withPwa(defineConfig({
hostname: 'https://team-lodestone.github.io/Documentation/'
},
rewrites: {
'(.*)/README.md': '(.*)/index.md'
'(.*)/readme.md': '(.*)/index.md'
},
markdown: {
config: (md) => {
md.use(lightbox, {});
},
},
themeConfig: {
siteTitle: false,
Expand All @@ -24,15 +42,16 @@ export default withPwa(defineConfig({
{ text: 'Bedrock', link: '/Bedrock/' },
{ text: '3DS', link: '/3DS/' },
{ text: 'Pi', link: '/Pi/' },
{ text: 'Info', link: '/readme.md' },
{ text: 'Team', link: '/Team.md' },
{ text: 'Info', link: '/readme' },
{ text: 'Team', link: '/Team' },
],

search: {
provider: 'local'
},

sidebar: generateSidebar({
sortFolderTo: "top",
documentRootPath: "/",
collapsed: true,
capitalizeEachWords: true,
Expand Down Expand Up @@ -73,12 +92,6 @@ export default withPwa(defineConfig({
['meta', {name: 'google-site-verification', content: 'z0A_sHsXyYXs1V9Ncly0Ppi6W78vrUKoLQti1FMeXl8' }],
['meta', {name: 'google-site-verification', content: 'LLV7ybaGj_-pAwlkHA2Cg55BxTOAdUdjG2WcoEuZKKM' }]
],
vite: {
server: {
host: '0.0.0.0',
port: 80,
}
},
transformHead: ({ pageData }) => {
const head: HeadConfig[] = []

Expand Down Expand Up @@ -123,5 +136,6 @@ export default withPwa(defineConfig({
],
},
},

}));

35 changes: 35 additions & 0 deletions .vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<script setup>
import DefaultTheme from "vitepress/theme";
import { onMounted } from "vue";
import { useRouter } from "vitepress";
import mediumZoom from "medium-zoom";
const { Layout } = DefaultTheme;
const router = useRouter();
const setupZoom = () => {
mediumZoom("[data-zoomable]", {
background: "transparent",
});
};
onMounted(setupZoom);
router.onAfterRouteChanged = setupZoom;
</script>

<template>
<Layout />
</template>

<style>
.zoom-overlay {
backdrop-filter: blur(5rem);
}
.zoom-overlay,
.zoom-image--opened {
z-index: 999;
}
</style>
13 changes: 13 additions & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import DefaultTheme from "vitepress/theme";
import Layout from "./Layout.vue";
import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client'
import '@nolebase/vitepress-plugin-git-changelog/client/style.css'

export default {
extends: DefaultTheme,
Layout,
enhanceApp({app})
{
app.use(NolebaseGitChangelogPlugin);
},
};
2 changes: 1 addition & 1 deletion LCE/Saving/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ If you're on a newer-gen console, specifically PS4, Xbox One, and Nintendo Switc
1. [Save Format](./Save%20Format.md)
2. [Pre-release Save Format](./Pre-Release%20Save%20Format.md) - Versions 0033 and 0035
3. [Save File Versions](./LCE%20Save%20File%20Versions.md) - The version part of the save file header in each Xbox 360 Edition TU
4. [Split Saves](./Split%20Saves.md)
4. [Split Saves](./Split%20Saves.md)
Check out the Menu/Sidebar for other stuff not mentioned here.

### Save file names
Expand Down
2 changes: 1 addition & 1 deletion LCE/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Documentation about Minecraft: Legacy Console Edition related stuff.
2. [Saving](./Saving/) - Save file format, split saving, etc
3. [Level/World](./Level/) - Region, Chunk, level storage, etc
4. [File Types](./File%20Types/) - ARC, COL, GRF, MSSCMP, Options, THUMB
5. [Game](./Game/) - Game mechanics and other stuff
5. [Game](./Game/) - Game mechanics and other stuff
Check out the Menu/Sidebar for other stuff not mentioned here.

# Contributors
Expand Down
Loading

0 comments on commit 165b9c7

Please sign in to comment.