-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rm frontmatter.yml after consolidating with citation.cff
pnpm i -D js-yaml fix link to landing page overlapping with nav add image to Wrenformer model card
- Loading branch information
Showing
9 changed files
with
67 additions
and
38 deletions.
There are no files selected for viewing
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,33 +1,38 @@ | ||
cff-version: 1.2.0 | ||
title: Matbench Discovery | ||
# cff-version: 1.2.0 | ||
message: If you use this software, please cite it as below. | ||
title: Matbench Discovery | ||
subtitle: Can machine learning identify stable crystals? | ||
authors: | ||
- family-names: Riebesell | ||
given-names: Janosh | ||
- given-names: Janosh | ||
family-names: Riebesell | ||
affiliation: University of Cambridge, Lawrence Berkeley National Laboratory | ||
email: [email protected] | ||
orcid: https://orcid.org/0000-0001-5233-3462 | ||
corresponding: true | ||
- family-names: Goodall | ||
given-names: Rhys | ||
affil_key: 1, 2 | ||
- given-names: Rhys | ||
family-names: Goodall | ||
affiliation: University of Cambridge | ||
orcid: https://orcid.org/0000-0002-6589-1700 | ||
- family-names: Jain | ||
given-name: Anubhav | ||
affil_key: 1 | ||
- given-names: Anubhav | ||
family-names: Jain | ||
orcid: 0000-0001-5893-9967 | ||
affiliation: Lawrence Berkeley National Laboratory | ||
- family-names: Persson | ||
given-name: Kristin | ||
affil_key: 2 | ||
- given-names: Kristin | ||
family-names: Persson | ||
orcid: 0000-0003-2495-5509 | ||
affiliation: Lawrence Berkeley National Laboratory | ||
- family-names: King-Smith | ||
given-name: Emma | ||
orcid: 0000-0002-2999-0955 | ||
affiliation: University of Cambridge | ||
- family-names: Lee | ||
given-name: Alpha | ||
affil_key: 2 | ||
- given-names: Alpha | ||
family-names: Lee | ||
orcid: 0000-0002-9616-3108 | ||
affiliation: University of Cambridge | ||
affil_key: 1 | ||
affiliations: | ||
- Cavendish Laboratory, University of Cambridge, UK | ||
- Lawrence Berkeley National Laboratory, Berkeley, USA | ||
license: MIT | ||
license-url: https://github.com/janosh/matbench-discovery/blob/main/license" | ||
repository-code: https://github.com/janosh/matbench-discovery | ||
|
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
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
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
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,11 +1,13 @@ | ||
import fs from 'fs' | ||
import yml from 'js-yaml' | ||
import type { LayoutServerLoad } from './$types' | ||
|
||
export const load: LayoutServerLoad = async ({ route }) => { | ||
const data = fs.readFileSync(`src/routes/${route.id}/+page.md`, `utf8`) | ||
const cff = fs.readFileSync(`../citation.cff`, `utf8`) | ||
|
||
// Count the number of words using a regular expression | ||
const word_count = data.match(/\b\w+\b/g)?.length ?? null | ||
|
||
return { word_count } | ||
return { word_count, ...yml.load(cff) } | ||
} |
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