Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for static site generator #305

Open
srid opened this issue Aug 26, 2024 · 2 comments
Open

Docs for static site generator #305

srid opened this issue Aug 26, 2024 · 2 comments

Comments

@srid
Copy link
Contributor

srid commented Aug 26, 2024

Feature Request

Please add some documentation for how to actually run the existing examples for the static site generator. Notably: https://github.com/DioxusLabs/dioxus/tree/main/packages/static-generation/examples/github-pages

I'm trying to make https://github.com/srid/dioxus-static-site actually deploy to GitHub Pages. cargo run does not work; dx build (and dx serve) generates some HTML files which fail to work.

@srid
Copy link
Contributor Author

srid commented Aug 26, 2024

dx build creates this for https://github.com/srid/dioxus-static-site

image

Binary

Running the binary does nothing:

image

Generated files

Opening the generated HTML in browser opens an empty page (but with correct title) rife with console errors,

image

with all these coresponding warnings on the web server:

image

@srid
Copy link
Contributor Author

srid commented Oct 12, 2024

Following DioxusLabs/dioxus#2967 - I'm trying the new example here, following instructions from the past (see DioxusLabs/dioxus#2892). dx serve outputs:

image

When I press o, it opens the URL in browser with empty page and errors in browser console:

image

EDIT: No pressure, just wanted to leave these notes to consider as part of docs for next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@srid and others