docsite icon indicating copy to clipboard operation
docsite copied to clipboard

Docs for static site generator

Open srid opened this issue 1 year ago • 1 comments

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 avatar Aug 26 '24 22:08 srid

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 avatar Aug 26 '24 22:08 srid

Following https://github.com/DioxusLabs/dioxus/pull/2967 - I'm trying the new example here, following instructions from the past (see https://github.com/DioxusLabs/dioxus/pull/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.

srid avatar Oct 12 '24 16:10 srid