BeaconCMS / BeaconCMS/beacon_live_admin
Import Livebook .livemd files
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
The .livemd files generated by [Livebook](https://livebook.dev) can be used to write pages for Beacon since it's essentially markdown files as long as they are exported with outputs.
So we want to:
- Add a new button "IMPORT LIVEBOOK" in the New Page `/pages/new`
- Add the same button in the Edit Page `/pages/:id`
That button will accept the upload of .livemd files, fill the page template with the file content, and change the template format to "Livemd (Livebook)" (see below).
We need to add a new [template format](https://github.com/BeaconCMS/beacon/blob/0a94cc51773afc5c1864f162a1d8613adf3e4861/lib/beacon/config.ex#L156-L173) named `:livemd` along with `:heex` and `:md` to differentiate this kind of content and allow further customizations in the future.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the New Page /pages/new and Edit Page /pages/:id entry points to trace how page content is uploaded and templates are selected. Review the linked lib/beacon/config.ex template-format section, then verify that .livemd uploads populate the page and use the new Livemd (Livebook) format in both flows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- backend, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100