Welcome to 750W's codebase for Pathy, a dead-simple path making tool built for WolfLib.
Pathy is built to run on the web, and is deployed on Github Pages. The current latest live version can be accessed here.
The field size for a standard Vex field is already set up for you. You'll need to get a picture of the current season's field, and drop it onto Pathy to set the background.
Afterwards, simply use the mouse to draw Bezier paths on the field, then press Generate to generate the path code.
To test Pathy locally, you'll need to clone the repository and run it on your local machine.
We use Trunk to build for the web target.
- Install the required target with
rustup target add wasm32-unknown-unknown. - Install Trunk with
cargo install --locked trunk. - Run
trunk serveto build and serve onhttp://127.0.0.1:8080. Trunk will rebuild automatically if you edit the project. - Open
http://127.0.0.1:8080/index.html#devin a browser. See the warning below.
Chrome likes to try to cache our app, preventing updates from showing in the browser. If updates still are not showing, inspect the webpage with
ctrl+shift+c, go to theNetworktab, and checkDisable cache. Make sure to leave this DevTools window open, as otherwise the cache will be re-enabled.
- Just run
trunk build --release. - It will generate a
distdirectory as a "static html" website - Upload the
distdirectory to any of the numerous free hosting websites including GitHub Pages. - We have already set up a
gh-pagesworkflow in the repository to automatically deploy the website to GitHub Pages on every push to themainbranch.
To enable Github Pages, you need to go to Repository -> Settings -> Pages -> Source -> set to
gh-pagesbranch and/(root).If
gh-pagesis not available inSource, just create and push a branch calledgh-pagesand it should be available.
a proudly made 750w tool