Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctrekker/plutopublish.jl
⚡Fast and simple notebook publishing — see plutopublish.com⚡
https://github.com/ctrekker/plutopublish.jl
Last synced: about 1 month ago
JSON representation
⚡Fast and simple notebook publishing — see plutopublish.com⚡
- Host: GitHub
- URL: https://github.com/ctrekker/plutopublish.jl
- Owner: ctrekker
- License: mit
- Created: 2022-02-02T05:43:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-28T17:02:24.000Z (almost 3 years ago)
- Last Synced: 2024-11-15T16:13:45.863Z (about 2 months ago)
- Language: Julia
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PlutoPublish.jl
The Julia package that makes [plutopublish.com](https://plutopublish.com) work. Check out the website's [docs](https://plutopublish.com/docs) for more information on how the online service works.
## Installation
```julia
(@v1.7) pkg> add PlutoPublish
```## Quick Start
Make sure you have an up-to-date version of both [Julia](https://julialang.org/) and [Pluto.jl](https://github.com/fonsp/Pluto.jl) installed first!
Next, open up a Julia REPL with the `julia` command in a terminal. Enter Pkg mode by pressing `]` and install PlutoPublish by typing `add PlutoPublish`.
```julia
(@v1.7) pkg> add PlutoPublish
```Now start a Pluto server __with the publisher enabled__. This _will not_ publish any notebooks without explicit action later.
```julia
using Pluto, PlutoPublish
Pluto.run(; on_event=publisher())
```By passing in the `publish` function exported by `PlutoPublish` we listen for publishing requests inside notebooks and will automatically push updates when we do get requests.
Once you've got a notebook open that you want to publish, just add a cell with the following code in it:
```julia
PUBLISH = true;
```NOTE: This code __must__ be in __its own cell__
The `PlutoPublish` package will detect this cell and automatically upload and publish your notebook to this site every time you make a change!