Skip to content

Commit

Permalink
refactor: v2
Browse files Browse the repository at this point in the history
  • Loading branch information
altrusl committed Nov 1, 2023
1 parent 114d727 commit b89e5b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
base: "/cv/",
lang: "en",
title: "Ruslan Makarov",
description: "Software Architect / Principal Engineer",
Expand Down
21 changes: 11 additions & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import { defineConfig } from "vite";
import { SearchPlugin } from "vitepress-plugin-search";
// import { SearchPlugin } from "vitepress-plugin-search";
import vue from "@vitejs/plugin-vue";

//default options
var options = {
...flexSearchIndexOptions,
previewLength: 62,
buttonLabel: "Search",
placeholder: "Search docs",
allow: [],
ignore: [],
};
// var options = {
// // ...flexSearchIndexOptions,
// previewLength: 62,
// buttonLabel: "Search",
// placeholder: "Search docs",
// allow: [],
// ignore: [],
// };

// https://vitejs.dev/config/
export default defineConfig({
base: "/cv/",
plugins: [vue(), SearchPlugin(options)],
// plugins: [vue(), SearchPlugin(options)],
plugins: [vue()],
});

0 comments on commit b89e5b0

Please sign in to comment.