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

Set up GitHub Pages to use Workflows #53

Closed
ajkolenc opened this issue Dec 20, 2024 · 1 comment
Closed

Set up GitHub Pages to use Workflows #53

ajkolenc opened this issue Dec 20, 2024 · 1 comment

Comments

@ajkolenc
Copy link
Collaborator

Currently the GitHub Page for this repo uses a build branch to host the static HTML output of Flet. This can be improved to automate the build process without requiring manually updating build files on this branch.

To build the Flet app, run this command in the root of the repository:
flet build web ./source/package/pathways_app/ --base-url /PathwaysGenerator/

This creates a directory in source/package/pathways_app called build that contains the HTML file and other assets. *

Documentation can be served in a subdirectory of the output to allow URL access (e.g. https://deltares-research.github.io/PathwaysGenerator/documentation)

  • NOTE: this build command will not produce working output until the pathways_app module references the built Wheel file of the adaptation_pathways module, since Flet requires any referenced code to either be in a Wheel file or subdirectory.
@kordejong
Copy link
Collaborator

Fixed by #61

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

No branches or pull requests

2 participants