-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
89 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
const heroDirective = { | ||
name: `hero`, | ||
doc: `A directive for a hero section`, | ||
body: { | ||
type: "myst", | ||
}, | ||
run(data) { | ||
const div = { | ||
type: "div", | ||
style: { | ||
fontWeight: "bold", | ||
fontSize: "4em", | ||
maxWidth: "50%", | ||
margin: ".5em auto", | ||
textAlign: "center", | ||
lineHeight: "normal", | ||
}, | ||
children: data.body, | ||
}; | ||
return [div]; | ||
}, | ||
}; | ||
|
||
const largeRole = { | ||
name: `large`, | ||
doc: `A role for large text`, | ||
body: { | ||
type: "myst", | ||
}, | ||
run(data) { | ||
const div = { | ||
type: "span", | ||
style: { fontSize: "1.5em" }, | ||
children: data.body, | ||
}; | ||
return [div]; | ||
}, | ||
}; | ||
|
||
const orangeRole = { | ||
name: `orange`, | ||
doc: `A role for Jupyter orange text`, | ||
body: { | ||
type: "myst", | ||
}, | ||
run(data) { | ||
const div = { | ||
type: "span", | ||
style: { color: "#e07330" }, | ||
children: data.body, | ||
}; | ||
return [div]; | ||
}, | ||
}; | ||
|
||
const plugin = { | ||
name: "Landing page extensions", | ||
roles: [largeRole, orangeRole], | ||
directives: [heroDirective], | ||
}; | ||
|
||
export default plugin; |
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
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# See docs at: https://mystmd.org/guide/frontmatter | ||
version: 1 | ||
extends: | ||
- https://raw.githubusercontent.com/2i2c-org/demo-gallery/refs/heads/main/myst.shared.yaml | ||
project: | ||
title: Enabling Open Science Discoveries | ||
description: A gallery website for demonstrating open science discoveries at the knowledge frontier. | ||
keywords: [] | ||
authors: [] | ||
copyright: '2024' | ||
copyright: "2024" | ||
open_access: true | ||
plugins: | ||
- landing-page.mjs | ||
license: | ||
code: GPL-3.0-or-later | ||
content: CC-BY-4.0 | ||
content: CC-BY-4.0 | ||
github: https://github.com/2i2c-org/demo-gallery | ||
# bibliography: [] | ||
toc: | ||
# Auto-generated by `myst init --write-toc` | ||
- file: index.md | ||
site: | ||
template: book-theme | ||
options: | ||
# favicon: favicon.ico | ||
logo: img/logo-wide.png | ||
nav: [] | ||
domains: [] | ||
logo_text: Demo Gallery |