Skip to content

Commit

Permalink
update vuepress and theme
Browse files Browse the repository at this point in the history
  • Loading branch information
emiyl committed Jan 12, 2024
1 parent c464472 commit 89f3d6e
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 339 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "emiyl-theme"]
path = emiyl-theme
url = https://github.com/emiyl/emiyl-theme
[submodule "emiyl-theme-2"]
path = emiyl-theme-2
url = https://github.com/emiyl/emiyl-theme-2
57 changes: 0 additions & 57 deletions docs/.vuepress/components/Tab.vue

This file was deleted.

13 changes: 0 additions & 13 deletions docs/.vuepress/components/Tabs.vue

This file was deleted.

43 changes: 3 additions & 40 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
const { localePath, locales, themeConfigLocales, searchLocales } = require("./i18n")
const container = require('markdown-it-container')
const { path, fs } = require('@vuepress/utils')
const { searchPlugin } = require('@vuepress/plugin-search')
const { registerComponentsPlugin } = require('@vuepress/plugin-register-components')
const { localTheme } = require('../../emiyl-theme')
const { locales, themeConfigLocales } = require("./i18n")
const { emiylTheme } = require('../../emiyl-theme-2')

module.exports = {
locales: locales,

theme: localTheme({
theme: emiylTheme({
repo: 'cfw-guide/cemu.cfw.guide',
selectLanguageText: '<i class="fas fa-globe"></i>',
locales: themeConfigLocales,
Expand All @@ -17,13 +13,6 @@ module.exports = {
"8442"
]
}),

plugins: [
searchPlugin({locales: searchLocales}),
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components'),
}),
],

head: [
['link', { rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.6.1/css/all.css' } ],
Expand All @@ -32,30 +21,4 @@ module.exports = {
],

shouldPrefetch: true,

extendsMarkdown: (md) => {
md.use(require('markdown-it-include'))

md.use(container, "tabs", {
render: (tokens, idx) => {
const token = tokens[idx];
if (token.nesting === 1) {
return `<Tabs ${token.info}>\n`;
} else {
return `</Tabs>\n`;
}
}
});

md.use(container, 'tab', {
render: (tokens, idx) => {
const token = tokens[idx];
if (token.nesting === 1) {
return `<Tab ${token.info}>\n`;
} else {
return `</Tab>\n`;
}
}
});
},
}
37 changes: 0 additions & 37 deletions docs/.vuepress/plugins/redirectPlugin/lib/client.js

This file was deleted.

23 changes: 0 additions & 23 deletions docs/.vuepress/plugins/redirectPlugin/lib/index.js

This file was deleted.

47 changes: 0 additions & 47 deletions docs/.vuepress/styles/index.scss

This file was deleted.

24 changes: 0 additions & 24 deletions docs/.vuepress/styles/palette.scss

This file was deleted.

51 changes: 0 additions & 51 deletions docs/.vuepress/templates/index.dev.html

This file was deleted.

38 changes: 0 additions & 38 deletions docs/.vuepress/templates/index.ssr.html

This file was deleted.

1 change: 0 additions & 1 deletion emiyl-theme
Submodule emiyl-theme deleted from 067cef
1 change: 1 addition & 0 deletions emiyl-theme-2
Submodule emiyl-theme-2 added at a7e08b
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
"author": "emiyl <me@emiyl.com>",
"license": "MIT",
"devDependencies": {
"@vuepress/plugin-register-components": "2.0.0-beta.49",
"@vuepress/plugin-search": "2.0.0-beta.49",
"markdown-it-container": "^3.0.0",
"markdown-it-include": "^2.0.0",
"vuepress": "2.0.0-beta.49"
"@vuepress/plugin-register-components": "2.0.0-rc.0",
"vuepress": "2.0.0-rc.0"
},
"scripts": {
"dev": "vuepress dev docs",
Expand Down

0 comments on commit 89f3d6e

Please sign in to comment.