-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional gist format to remote scripts docs.
- Loading branch information
1 parent
c3d23f2
commit 25f89fe
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. |