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

Example provided in theme documentation does not work #442

Closed
Jaimeloeuf opened this issue Nov 11, 2021 · 0 comments
Closed

Example provided in theme documentation does not work #442

Jaimeloeuf opened this issue Nov 11, 2021 · 0 comments

Comments

@Jaimeloeuf
Copy link

Hi there,

The example in the documentation for customizing the theme does not work. It fails as the file/package cannot be found. This is the specific line that I am referring to, but I believe that the other lines that use this same thing will also fail.

The specific import that fails

import DefaultTheme from 'vitepress/theme'

I found an alternative import that works by looking into the downloaded node_module folder directly

import DefaultTheme from "vitepress/dist/client/theme-default";

Im not sure if this is the intended use or? If this is an actual issue, I can help with making a PR to update the docs, else if it is something that needs to be fixed with the deployment process so that the DefaultTheme can be exported from vitepress/theme then it would probably need help from someone else familiar with the process.

Thanks alot for your time!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant