Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: too many arguments given outside repository #39

Open
MikeCZ23 opened this issue Apr 29, 2024 · 1 comment
Open

error: too many arguments given outside repository #39

MikeCZ23 opened this issue Apr 29, 2024 · 1 comment

Comments

@MikeCZ23
Copy link

MikeCZ23 commented Apr 29, 2024

error: too many arguments given outside repository

Snímek obrazovky 2024-04-29 221142

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({
...
@biscuit314
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants