Skip to content

Commit

Permalink
.vitepress: add lexicon RU for plugin NolebaseGitChangelog
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Jul 13, 2024
1 parent dfeb0dc commit 747ff8d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .vitepress/config/plugins/NolebaseGitChangelog/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export const NolebaseGitChangelogOptions = {
plugin: {
maxGitLogCount: 20000,
repoURL: 'https://github.com/OlegShchavelev/ALTKDEWiki'
},
pluginSections: {
sections: {
disableChangelog: false,
disableContributors: false
}
},
locales: {
'ru-RU': {
changelog: {
title: 'История изменений',
noData: 'Нет изменений',
lastEdited: 'Последнее редактирование: {{daysAgo}}',
lastEditedDateFnsLocaleName: 'ru',
viewFullHistory: 'Показать историю',
committedOn: ' от {{date}}'
},
contributors: {
title: 'Авторы',
noData: 'Нет информации'
}
}
},
}
3 changes: 2 additions & 1 deletion .vitepress/config/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { NolebaseEnhancedReadabilitiesOptions } from './NolebaseEnhancedReadabilities/index'
export { NolebaseEnhancedReadabilitiesOptions } from './NolebaseEnhancedReadabilities/index'
export { NolebaseGitChangelogOptions } from './NolebaseGitChangelog/index'
15 changes: 9 additions & 6 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,26 @@ 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 {
NolebaseEnhancedReadabilitiesOptions,
NolebaseGitChangelogOptions
} from '../config/plugins/index'

import {
import {
NolebaseEnhancedReadabilitiesMenu,
NolebaseEnhancedReadabilitiesScreenMenu
} from '@nolebase/vitepress-plugin-enhanced-readabilities/client'
import type { Options } from '@nolebase/vitepress-plugin-enhanced-readabilities/client'
import { NolebaseEnhancedReadabilitiesPlugin } from '@nolebase/vitepress-plugin-enhanced-readabilities/client'
import '@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css'

import {
NolebaseGitChangelogPlugin
import {
NolebaseGitChangelogPlugin
} from '@nolebase/vitepress-plugin-git-changelog/client'

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

import './styles/style.css'
import './styles/style.css'
import './styles/theme.css'
import 'uno.css'
import '@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css'
Expand All @@ -42,7 +45,7 @@ export default {
},
enhanceApp({ app }) {
app.use(NolebaseEnhancedReadabilitiesPlugin, NolebaseEnhancedReadabilitiesOptions as Options)
app.use(NolebaseGitChangelogPlugin)
app.use(NolebaseGitChangelogPlugin, NolebaseGitChangelogOptions)
app.component('contribution', AMWContribution)
app.component('Video', AMWVideo)
enhanceAppWithTabs(app)
Expand Down

0 comments on commit 747ff8d

Please sign in to comment.