cncf / landscape2

Landscape2 is a tool that generates interactive landscapes websites
https://landscape.cncf.io
Apache License 2.0
143 stars 39 forks source link

Is there any setting that can support base url? #542

Closed flyfishzy closed 5 months ago

flyfishzy commented 6 months ago

Hi, I am using cncf landscape2 to build a landscape web page for front-end opensource software. However, the current landscape2 does not support base url. Because I want to deploy it to a URL like https://foo.github.io/landscape/. Is there any solution to this problem? FYI: here is a vitepress base url config https://vitepress.dev/guide/asset-handling#base-url

If your site is deployed to a non-root URL, you will need to set the base option in .vitepress/config.js. For example, if you plan to deploy your site to https://foo.github.io/bar/, then base should be set to '/bar/' (it should always start and end with a slash).

Many thanks!

tegioz commented 6 months ago

Hi @flyfishzy 👋

Not at the moment, but this is something we'd like to have to we'll take care of it 🙂

flyfishzy commented 6 months ago

Thanks a lot ! I'm really looking forward to it.

tegioz commented 5 months ago

This is ready @flyfishzy 🙂

You can see it in action in this repository: https://github.com/tegioz/sample-landscape

Closed by #557 and #561

flyfishzy commented 5 months ago

Thank you!!! It works for me.