Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use featured.plutojl.org as the featured source for interactive previews! #2666

Merged
merged 5 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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=",
},
],
}
Loading