DioxusLabs / docsite

Dioxuslabs.com documentation site
https://dioxuslabs.com
114 stars 102 forks source link

Docs for static site generator #305

Open srid opened 2 weeks ago

srid commented 2 weeks ago

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 commented 2 weeks ago

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