Vuepress: Change content path

Created on 7 Nov 2018  路  2Comments  路  Source: vuejs/vuepress


Feature request



What problem does this feature solve?

Isolate content to a specific subdirectory.

A subdirectory as the content entrypoint, would make it trivial to sync the content elsewhere (dropbox, google drive, etc) and then be edited by non-techies.

What does the proposed API look like?

config.js

module.exports = {
  content: "./myContentDir" // sets the directory entry point for site content
}

Are you willing to work on this yourself?**

Yes, just need some advice on what files / variables to look out for

Most helpful comment

Thanks for the input, but i'm not sure this solves the problem.

This solution still requires the .vuepress directory to be included inside [targetDir]

folder structure

- package.json
- .vuepress
- node_modules
- myContentDir
  |
  - README.md
  - About.md
  - subFolder
    |
    - README.md
    - AnotherPage.md

All 2 comments

Try vuepress dev [targetDir].

Thanks for the input, but i'm not sure this solves the problem.

This solution still requires the .vuepress directory to be included inside [targetDir]

folder structure

- package.json
- .vuepress
- node_modules
- myContentDir
  |
  - README.md
  - About.md
  - subFolder
    |
    - README.md
    - AnotherPage.md
Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaomd picture gaomd  路  3Comments

genedronek picture genedronek  路  3Comments

alinnert picture alinnert  路  3Comments

harryhorton picture harryhorton  路  3Comments

higuoxing picture higuoxing  路  3Comments