vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
11.33k stars 1.83k forks source link

More than one Output target ! #3736

Closed aadrian closed 3 weeks ago

aadrian commented 3 weeks ago

Is your feature request related to a problem? Please describe.

A VitePress "project" seems to have a single usage/purpose (per project) - e.g. MPA Site, or "online help" or "blog".

However this is not how documentation is mostly managed (well maybe except for demos) : there's one set of documents (e.g. Markdown content files) than will be used to produce several outputs from the same content: e.g.

  1. an online help (SPA or MPA)
  2. "single long page document" (for offline use, but split per language) ,
  3. several PDFs (mostly per language split),
  4. Simple HTML files/fragments for contextual help inside the application (so no header/navigation/anchors ).

To achieve the above with VitePress, one would need several separate Projects that share the same Markdown content.

Describe the solution you'd like

Have a "goal" or "target" section that would allow to configure inside the same project the issues mentioned above (even themes, base url,, etc. since they can different based on the output target).

Describe alternatives you've considered

https://asciidoctor.org/ and other similar systems allow all the above, but with VitePress is not seem possible for now.

Additional context

No response

Validations

brc-dd commented 3 weeks ago

It's currently out of scope for the project. VitePress will remain a SSG and as such can be used to generate MPAs.