Skip to content

Commit

Permalink
Add background
Browse files Browse the repository at this point in the history
  • Loading branch information
misike12 committed Jun 29, 2024
1 parent fb89808 commit 6489990
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 110 deletions.
9 changes: 9 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default defineConfig({
description: "An Ultimate Collection of Minecraft History, Tools & Unlockers.",
base: '/',
cleanUrls:true,
ignoreDeadLinks: true,
srcExclude: ['/node_modules/'],
appearance:'dark',
head: [
Expand Down Expand Up @@ -177,6 +178,12 @@ export default defineConfig({
copyright: 'Copyright © 2024 OpenM Project',
},

// Page - Next & Previous Buttons
docFooter: {
prev: 'Prev',
next: 'Next',
},

socialLinks: [
{ icon: 'github', link: 'https://github.com/openm-project/mcdoc.github.io' },
{ icon: 'discord', link: 'https://dsc.gg/openmproject'},
Expand Down Expand Up @@ -216,6 +223,8 @@ editLink: {
lazyLoading: true
},

defaultHighlightLang: 'ts',

}

})
Expand Down
72 changes: 0 additions & 72 deletions .vitepress/theme/components/Layout.vue

This file was deleted.

2 changes: 0 additions & 2 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import '@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css'
import Video from './components/Video.vue'
import MNavLinks from './components/MNavLinks.vue'
import Navlink from './components/Navlink.vue'
// import Layout from './components/Layout.vue'

export default {
extends: DefaultTheme,
Expand All @@ -52,7 +51,6 @@ export default {
app.component('Video' , Video)
app.component('MNavLinks' , MNavLinks)
app.component('Navlink' , Navlink)
//app.component('Layout' , Layout)
app.provide(InjectionKey, {
// Configuration
} as Options)
Expand Down
9 changes: 9 additions & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
margin-right: 0;
}

.Layout {
background-color: var(--vp-c-bg-alt) !important;
background: url('/bg.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: bottom;
background-size: cover;
}

/**
* Customize default theme styling by overriding CSS variables:
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
Expand Down
4 changes: 2 additions & 2 deletions node_modules/.bin/vitepress

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions node_modules/.bin/vitepress.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions node_modules/.bin/vitepress.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"less": "^4.2.0",
"medium-zoom": "^1.1.0",
"sass": "^1.77.6",
"stylus": "^0.63.0",
"vite": "^5.3.2",
"vitepress": "1.2.3",
"vitepress-markdown-timeline": "^1.2.1",
Expand Down
Loading

0 comments on commit 6489990

Please sign in to comment.