Skip to content

static site export with relative links #439

@saracarl

Description

@saracarl

The existing code supports downloading a static site for a project, but that static site requires running in a webserver. We'd like the static site download to be something that is truly static -- an index.html page that links relatively to other pages in the site.

I found this discussion:
https://www.reddit.com/r/astrojs/comments/1dc81jt/how_to_build_astro_site_for_sharing_via_zip/

which suggests using this library:
https://github.com/ixkaito/astro-relative-links

Which I think has potential as an approach.

I'm worried, however, that the existing "push to github pages" may not work if we integrate a relative link strategy.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions