Skip to content

Commit

Permalink
Use featured.plutojl.org as the featured source for interactive previ…
Browse files Browse the repository at this point in the history
…ews! (#2666)

Co-authored-by: Παναγιώτης Γεωργακόπουλος <[email protected]>
  • Loading branch information
fonsp and pankgeorg authored Oct 30, 2023
1 parent 3b699e0 commit f4eefec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/components/welcome/FeaturedCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const FeaturedCard = ({ entry, source_manifest, direct_html_links, disabl
disable_ui: `true`,
name: title == null ? null : `sample ${title}`,
pluto_server_url: `.`,
slider_server_url: u(source_manifest?.slider_server_url),
// Little monkey patch because we don't want to use the slider server when for the CDN source, only for the featured.plutojl.org source. But both sources have the same pluto_export.json so this is easiest.
slider_server_url: source_url?.includes("cdn.jsdelivr.net/gh/JuliaPluto/featured") ? null : u(source_manifest?.slider_server_url),
})

const author = author_info(entry.frontmatter)
Expand Down
10 changes: 8 additions & 2 deletions frontend/featured_sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ export default {
// check out https://github.com/JuliaPluto/pluto-developer-instructions/blob/main/How%20to%20update%20the%20featured%20notebooks.md to learn more
sources: [
{
url: "https://cdn.jsdelivr.net/gh/JuliaPluto/featured@v3/pluto_export.json",
integrity: "sha256-y2E/niS8Em5a4wfSupsmDi0JaTrKSI0WF9DBkfEiQYQ=",
url: "https://featured.plutojl.org/pluto_export.json",
valid_until: "2024-10",
id: "featured pluto",
},
{
id: "featured pluto",
url: "https://cdn.jsdelivr.net/gh/JuliaPluto/featured@v4/pluto_export.json",
integrity: "sha256-YT5Msj4Iy4cJIuHQi09h3+AwxzreK46WS6EySbPPmJM=",
},
],
}

0 comments on commit f4eefec

Please sign in to comment.