Skip to content

Commit

Permalink
Добавлено: imageViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Sep 20, 2023
1 parent 3f9dd36 commit 526fe0e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import { useRoute } from 'vitepress';
import Theme from 'vitepress/theme'
import imageViewer from 'vitepress-plugin-image-viewer';

import './style.css'
import './custom.css'
import 'viewerjs/dist/viewer.min.css';

export default {
extends: Theme,
Expand All @@ -14,5 +17,11 @@ export default {
},
enhanceApp({ app, router, siteData }) {

},
setup() {
// Get route
const route = useRoute();
// Using
imageViewer(route);
}
}
4 changes: 3 additions & 1 deletion docs/codium.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ epm play codium

Для установки и просмотра плагинов выберите пункт Расширения на панели слева или нажмите сочетание клавиш `Ctrl`+ `Shift`+ `X`.
Введите название плагина в строке поиска, выберите дополнение и нажмите установить.
Каждое расширение в списке включает краткое описание, имя издателя, количество загрузок и пятизвездочный рейтинг.
Каждое расширение в списке включает краткое описание, имя издателя, количество загрузок и пятизвездочный рейтинг.

![codium_1](/codium/codium_1.gif)
Binary file added docs/public/codium/codium_1.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"@types/markdown-it-container": "^2.0.6",
"markdown-it": "^13.0.1",
"markdown-it-container": "^3.0.0",
"vitepress": "^1.0.0-rc.14"
"vitepress": "^1.0.0-rc.14",
"vitepress-plugin-image-viewer": "^1.1.2"
},
"type": "module",
"scripts": {
Expand Down

0 comments on commit 526fe0e

Please sign in to comment.