Skip to content

Commit

Permalink
Fix custom navbar usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Tonsen committed Nov 3, 2023
1 parent 0e31324 commit aa12596
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 28 deletions.
2 changes: 1 addition & 1 deletion alpha-lab/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ let config_additions = {
{
find: /^.*\/VPNavBar\.vue$/,
replacement: fileURLToPath(
new URL('./components/CustomNavBar.vue', import.meta.url)
new URL('./../../components/CustomNavBar.vue', import.meta.url)
)
}
]
Expand Down
2 changes: 1 addition & 1 deletion core/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let config_additions = {
{
find: /^.*\/VPNavBar\.vue$/,
replacement: fileURLToPath(
new URL('./components/CustomNavBar.vue', import.meta.url)
new URL('./../../components/CustomNavBar.vue', import.meta.url)
)
}
]
Expand Down
4 changes: 2 additions & 2 deletions core/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DefaultTheme from 'vitepress/theme'
import Youtube from './../components/Youtube.vue'
import PhotoGrid from './../components/PhotoGrid.vue'
import Youtube from '/../components/Youtube.vue'
import PhotoGrid from '/../components/PhotoGrid.vue'

import '/../custom.css'

Expand Down
2 changes: 1 addition & 1 deletion invisible/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ let config_additions = {
{
find: /^.*\/VPNavBar\.vue$/,
replacement: fileURLToPath(
new URL('./components/CustomNavBar.vue', import.meta.url)
new URL('./../../components/CustomNavBar.vue', import.meta.url)
)
}
]
Expand Down
36 changes: 13 additions & 23 deletions neon/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import { fileURLToPath, URL } from "node:url";
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vitepress";

import { config as default_config } from "./../../default_config.mts";
Expand Down Expand Up @@ -198,28 +198,18 @@ let config_additions = {
base: "/neon/",
title: "Neon",
description: "Documentation of the Neon eye tracker and it's ecosystem.",
// vite: {
// build: {
// rollupOptions: {
// external: ["vue", "vue/server-renderer"],
// output: {
// globals: {
// vue: "Vue",
// },
// },
// },
// },
// resolve: {
// alias: [
// {
// find: /^.*\/VPNavBar\.vue$/,
// replacement: fileURLToPath(
// new URL("./components/CustomNavBar.vue", import.meta.url)
// ),
// },
// ],
// },
// },
vite: {
resolve: {
alias: [
{
find: /^.*\/VPNavBar\.vue$/,
replacement: fileURLToPath(
new URL('./../../components/CustomNavBar.vue', import.meta.url)
)
}
]
}
},
};

export default defineConfig({
Expand Down

0 comments on commit aa12596

Please sign in to comment.