Skip to content

Commit

Permalink
refactor: добавлен файл стилей icons.css, перенесены пользовательские…
Browse files Browse the repository at this point in the history
… иконки(#39).
  • Loading branch information
OlegShchavelev committed Sep 25, 2024
1 parent f6273af commit 6a74511
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 41 deletions.
12 changes: 5 additions & 7 deletions .vitepress/config/shared.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { defineConfig } from 'vitepress'
import { defineConfigWithTheme } from 'vitepress'
import { type AMWTheme } from '../theme/types/index'
import markdownTimeline from 'vitepress-markdown-timeline'
import { tabsMarkdownPlugin as markdownItTabs } from 'vitepress-plugin-tabs'
import markdownItTaskLists from 'markdown-it-task-lists'

import UnoCSS from 'unocss/vite'
import {
GitChangelog,
GitChangelogMarkdownSection
} from '@nolebase/vitepress-plugin-git-changelog/vite'
import { NolebaseGitChangelogOptions } from './plugins'

import { telegram } from '../data/icons'

export const shared = defineConfig({
export const shared = defineConfigWithTheme<AMWTheme.Config>({
title: 'ALT Mobile Wiki',
titleTemplate: ':title — ALT Mobile Wiki',
srcDir: './docs',
Expand Down Expand Up @@ -47,9 +47,7 @@ export const shared = defineConfig({
link: 'https://github.com/OlegShchavelev/ALTMobileWiki'
},
{
icon: {
svg: telegram
},
icon: 'telegram',
link: 'https://t.me/altmobile_channel'
}
],
Expand Down
34 changes: 0 additions & 34 deletions .vitepress/data/icons.ts

This file was deleted.

1 change: 1 addition & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'

import './styles/style.css'
import './styles/theme.css'
import './styles/icons.css'
import 'uno.css'
import 'vitepress-markdown-timeline/dist/theme/index.css'

Expand Down
12 changes: 12 additions & 0 deletions .vitepress/theme/styles/icons.css

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

0 comments on commit 6a74511

Please sign in to comment.