Skip to content

Commit

Permalink
.vitepress: add options for NolebaseEnhancedReadabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Jul 12, 2024
1 parent 8ba5738 commit dfeb0dc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 70 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const ERlocales = {
export const NolebaseEnhancedReadabilitiesOptions = {
locales: {
'ru-RU': {
title: {
title: 'Повышенная читаемость'
Expand Down Expand Up @@ -76,3 +77,4 @@ export const ERlocales = {
}
}
}
}
1 change: 1 addition & 0 deletions .vitepress/config/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { NolebaseEnhancedReadabilitiesOptions } from './NolebaseEnhancedReadabilities/index'
6 changes: 3 additions & 3 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import AMWDocsAsideMeta from './components/AMWDocsAsideMeta.vue'
import AMWHomeSponsors from './components/AMWHomeSponsors.vue'
import AMWVideo from './components/AMWVideo.vue'

import { NolebaseEnhancedReadabilitiesOptions } from '../config/plugins/index'

import {
NolebaseEnhancedReadabilitiesMenu,
NolebaseEnhancedReadabilitiesScreenMenu
Expand All @@ -19,7 +21,6 @@ import {
NolebaseGitChangelogPlugin
} from '@nolebase/vitepress-plugin-git-changelog/client'


import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'

import './styles/style.css'
Expand All @@ -28,7 +29,6 @@ import 'uno.css'
import '@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css'
import '@nolebase/vitepress-plugin-git-changelog/client/style.css'
import "vitepress-markdown-timeline/dist/theme/index.css"
import { ERlocales } from '../data/lexicon'

export default {
extends: DefaultTheme,
Expand All @@ -41,7 +41,7 @@ export default {
})
},
enhanceApp({ app }) {
app.use(NolebaseEnhancedReadabilitiesPlugin, {locales: ERlocales} as Options)
app.use(NolebaseEnhancedReadabilitiesPlugin, NolebaseEnhancedReadabilitiesOptions as Options)
app.use(NolebaseGitChangelogPlugin)
app.component('contribution', AMWContribution)
app.component('Video', AMWVideo)
Expand Down
66 changes: 0 additions & 66 deletions .vitepress/theme/plugins/enhanced-readabilities/index.ts

This file was deleted.

0 comments on commit dfeb0dc

Please sign in to comment.