Skip to content

Consider to allow to use alternative for public directoryΒ #1491

Open
@timaschew

Description

@timaschew

Feature request

What problem does this feature solve?

The problem is that images and other resources which are referenced in markdown files won't work any other environment (on GitHub, GitLab, local preview tools). Because the resources need to be placed into the .vuepress/public directory, but the URL won't include neither .vuepress nor public.
This is really weird.

// edit
Also this will be much easier for everyone who is migrating to VuePress, for instance from GitBook.

What does the proposed API look like?

Allow to put images and other resources next to the markdown files instead of forcing to put them into .vuepress/public.

How should this be implemented in your opinion?

For the vuepress build command just passthrough all files which are have not a markdown file extension. This is the only file types you're expecting, right? Other files, like styles or vue components live somewhere else, so they are not affected.

Are you willing to work on this yourself?

Sure, let me know if you agree in general with this idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions