Open MikeCZ23 opened 2 months ago
error: too many arguments given outside repository
theme/index.ts
import type { Theme } from "vitepress"; import DefaultTheme from "vitepress/theme" import './custom.css'; import PBlogFigure from "./components/PBlogFigure.vue"; import PBlogHeader from "./components/PBlogHeader.vue"; import PBlogListing from "./components/PBlogListing.vue"; import PBlogVideo from "./components/PBlogVideo.vue"; import PDateString from "./components/PDateString.vue"; import PTeamMembers from "./components/PTeamMembers.vue"; import Layout from './components/Layout.vue'; import vitepressBackToTop from '../../docs/plugins/vitepress-plugin-back-to-top/'; import './BtP-style.css'; import vitepressMusic from 'vitepress-plugin-music' import '../../docs/plugins/vitepress-plugin-music/dist/index.css' // import googleAnalytics from 'vitepress-plugin-google-analytics' import { VPLTheme } from '@lando/vitepress-theme-default-plus'; const playlist = [ { name: 'song1', author: 'author', file: '/docs/.mp3', }, { name: 'song2', author: 'author2', file: 'https://***.***.***/song2.mp3', hide: true }, ] export default { Layout: Layout, extends: DefaultTheme, enhanceApp({ app }) { app.component("PBlogFigure", PBlogFigure); app.component("PBlogHeader", PBlogHeader); app.component("PBlogListing", PBlogListing); app.component("PBlogVideo", PBlogVideo); app.component("PDateString", PDateString); app.component("PTeamMembers", PTeamMembers); vitepressMusic(playlist); vitepressBackToTop({ threshold:300 }) // googleAnalytics({ // id: 'G-******', // Replace with your GoogleAnalytics ID, which should start with the 'G-' // }) } } satisfies VPLTheme;
.vitepress/config.mts
// import { defineConfig } from 'vitepress' import FastGlob from "fast-glob"; import grayMatter from "gray-matter"; import { readFile } from "node:fs/promises"; import { basename } from "node:path"; import { URL, fileURLToPath } from 'node:url'; // import { generateSidebar } from 'vitepress-sidebar'; // import { getSidebar } from 'vitepress-plugin-auto-sidebar'; // import markdownitfootnote from 'markdown-it-footnote'; // import markdownit from 'markdown-it'; import {defineConfig} from '@lando/vitepress-theme-default-plus/config'; export default defineConfig({ ...
I got past this error with:
git init git add . --all git commit -m "Initial commit"
This gave rise to new issues, but at least I got past the git errors you mentioned above.
git
error: too many arguments given outside repository
theme/index.ts
.vitepress/config.mts