Skip to content

Commit

Permalink
Add additional gist format to remote scripts docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonkearns committed Jan 12, 2024
1 parent c3d23f2 commit 25f89fe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/docs/content/docs/11-remote-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,12 @@ Similar to the approach with GitHub repos, you specify a Gist URL which you coul

For example, you can look at this code in your browser: <https://gist.github.com/dillonkearns/4f050018784b25246729a82fc9907543>. And you can execute it by passing it to `elm-pages run`:

`npx elm-pages@latest run https://gist.github.com/dillonkearns/4f050018784b25246729a82fc9907543`
`npx [email protected] run https://gist.github.com/dillonkearns/4f050018784b25246729a82fc9907543`

You can specify an entrypoint file to execute from a Gist by linking to a raw file in a Gist directly like so:

<https://gist.githubusercontent.com/dillonkearns/4f050018784b25246729a82fc9907543/raw/898c6963b87b37d026f162f5758ad7a23825cd64/Main.elm>

`npx [email protected] run https://gist.githubusercontent.com/dillonkearns/4f050018784b25246729a82fc9907543/raw/898c6963b87b37d026f162f5758ad7a23825cd64/Main.elm`

You can use this to either explicitly point to the default entrypoint `Main.elm`, or to execute a different entrypoint script.

0 comments on commit 25f89fe

Please sign in to comment.