Skip to content

Commit

Permalink
adding bibtext
Browse files Browse the repository at this point in the history
  • Loading branch information
pmocz committed Oct 2, 2024
1 parent 89d256f commit ce8e53b
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"gitlanding": "^2.0.0-rc.3",
"onyxia-ui": "^5.3.3",
"react": "^18.3.1",
"react-code-blocks": "^0.1.6",
"react-dom": "^18.3.1",
"tss-react": "^4.9.13"
},
Expand Down
35 changes: 34 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { GlCheckList } from "gitlanding/GlCheckList";
/*import { GlSlider } from "gitlanding/GlSlider";
import { GlReviewSlide } from "gitlanding/GlReviewSlide";*/
import { GlHeader } from "gitlanding/GlHeader";
import { CopyBlock, dracula } from "react-code-blocks";
import { useEffect, useState } from "react";
import mesaBib from "./assets/txt/mesa.bib.txt";
/*import mesaIconPng from "./assets/img/mesa-favicon.png";*/
import mesaLogoPng from "./assets/img/mesa_logo2_200pt.png";
import mesaMp4 from "./assets/videos/mesa1.mp4";
Expand All @@ -31,6 +34,19 @@ export function App() {
);
}

function useMesaBibTxt() {
const [mesaBibTxt, setMesaBibTxt] = useState<string>("");

useEffect(() => {
fetch(mesaBib)
.then(response => response.text())
.then(text => setMesaBibTxt(text))
.catch(error => console.error("Error fetching mesa.bib.txt:", error));
}, []);

return mesaBibTxt;
}

function AppContextualized() {
return (
<GlTemplate
Expand Down Expand Up @@ -188,6 +204,7 @@ function Body() {
</>
}
</GlCards>

{/*
<GlArticle
title="Article title"
Expand All @@ -210,8 +227,9 @@ function Body() {
/>
<GlSectionDivider />
*/}

*/}
<GlSectionDivider />

<GlCheckList
heading="Modules"
Expand Down Expand Up @@ -287,6 +305,21 @@ function Body() {
}}
hasAnimation={true}
/>

<GlArticle
title="MESA papers to cite"
body={
<div style={{ maxHeight: "500px", overflowY: "auto" }}>
<CopyBlock
language={"bash"}
text={useMesaBibTxt()}
showLineNumbers={true}
theme={dracula}
codeBlock
/>
</div>
}
/>
</>
);
}
114 changes: 114 additions & 0 deletions src/assets/txt/mesa.bib.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
@ARTICLE{Paxton2011,
author = {{Paxton}, B. and {Bildsten}, L. and {Dotter}, A. and {Herwig}, F. and {Lesaffre}, P. and {Timmes}, F.},
title = {{Modules for Experiments in Stellar Astrophysics (MESA)}},
journal = {\apjs},
archivePrefix = {arXiv},
eprint = {1009.1622},
primaryClass = {astro-ph.SR},
keywords = {methods: numerical, stars: evolution, stars: general},
year = {2011},
month = {jan},
volume = {192},
eid = {3},
pages = {3},
doi = {10.1088/0067-0049/192/1/3},
adsurl = {https://ui.adsabs.harvard.edu/abs/2011ApJS..192....3P},
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
}

@ARTICLE{Paxton2013,
author = {{Paxton}, B. and {Cantiello}, M. and {Arras}, P. and {Bildsten}, L. and {Brown}, E.~F. and {Dotter}, A. and {Mankovich}, C. and {Montgomery}, M.~H. and {Stello}, D. and {Timmes}, F.~X. and {Townsend}, R.},
title = {{Modules for Experiments in Stellar Astrophysics (MESA): Planets, Oscillations, Rotation, and Massive Stars}},
journal = {\apjs},
archivePrefix = {arXiv},
eprint = {1301.0319},
primaryClass = {astro-ph.SR},
keywords = {asteroseismology, methods: numerical, planets and satellites: physical evolution, stars: evolution, stars: massive, stars: rotation},
year = {2013},
month = {sep},
volume = {208},
eid = {4},
pages = {4},
doi = {10.1088/0067-0049/208/1/4},
adsurl = {https://ui.adsabs.harvard.edu/abs/2013ApJS..208....4P},
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
}

@ARTICLE{Paxton2015,
author = {{Paxton}, B. and {Marchant}, P. and {Schwab}, J. and {Bauer}, E.~B. and {Bildsten}, L. and {Cantiello}, M. and {Dessart}, L. and {Farmer}, R. and {Hu}, H. and {Langer}, N. and {Townsend}, R.~H.~D. and {Townsley}, D.~M. and {Timmes}, F.~X.},
title = {{Modules for Experiments in Stellar Astrophysics (MESA): Binaries, Pulsations, and Explosions}},
journal = {\apjs},
archivePrefix = {arXiv},
eprint = {1506.03146},
primaryClass = {astro-ph.SR},
keywords = {binaries: general, methods: numerical, nuclear reactions, nucleosynthesis, abundances, shock waves, stars: evolution, stars: oscillations},
year = {2015},
month = {sep},
volume = {220},
eid = {15},
pages = {15},
doi = {10.1088/0067-0049/220/1/15},
adsurl = {https://ui.adsabs.harvard.edu/abs/2015ApJS..220...15P},
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
}

@ARTICLE{Paxton2018,
author = {{Paxton}, B. and {Schwab}, J. and {Bauer}, E.~B. and {Bildsten}, L. and {Blinnikov}, S. and {Duffell}, P. and {Farmer}, R. and {Goldberg}, J.~A. and {Marchant}, P. and {Sorokina}, E. and {Thoul}, A. and {Townsend}, R.~H.~D. and {Timmes}, F.~X.},
title = {{Modules for Experiments in Stellar Astrophysics (MESA): Convective Boundaries, Element Diffusion, and Massive Star Explosions}},
journal = {\apjs},
archivePrefix = {arXiv},
eprint = {1710.08424},
primaryClass = {astro-ph.SR},
keywords = {convection, diffusion, hydrodynamics, methods: numerical, stars: evolution, supernovae: general },
year = {2018},
month = {feb},
volume = {234},
eid = {34},
pages = {34},
doi = {10.3847/1538-4365/aaa5a8},
adsurl = {https://ui.adsabs.harvard.edu/abs/2018ApJS..234...34P},
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
}

@ARTICLE{Paxton2019,
author = {{Paxton}, Bill and {Smolec}, R. and {Schwab}, Josiah and {Gautschy}, A. and
{Bildsten}, Lars and {Cantiello}, Matteo and {Dotter}, Aaron and
{Farmer}, R. and {Goldberg}, Jared A. and {Jermyn}, Adam S. and
{Kanbur}, S.~M. and {Marchant}, Pablo and {Thoul}, Anne and
{Townsend}, Richard H.~D. and {Wolf}, William M. and {Zhang}, Michael and
{Timmes}, F.~X.},
title = "{Modules for Experiments in Stellar Astrophysics (MESA): Pulsating Variable Stars, Rotation, Convective Boundaries, and Energy Conservation}",
journal = {\apjs},
keywords = {stars: evolution, stars: general, stars: interiors, stars: oscillations: including pulsations, stars: rotation, stars: variables: general, Astrophysics - Solar and Stellar Astrophysics},
year = "2019",
month = "Jul",
volume = {243},
number = {1},
eid = {10},
pages = {10},
doi = {10.3847/1538-4365/ab2241},
archivePrefix = {arXiv},
eprint = {1903.01426},
primaryClass = {astro-ph.SR},
adsurl = {https://ui.adsabs.harvard.edu/abs/2019ApJS..243...10P},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Jermyn2023,
author = {{Jermyn}, Adam S. and {Bauer}, Evan B. and {Schwab}, Josiah and {Farmer}, R. and {Ball}, Warrick H. and {Bellinger}, Earl P. and {Dotter}, Aaron and {Joyce}, Meridith and {Marchant}, Pablo and {Mombarg}, Joey S.~G. and {Wolf}, William M. and {Sunny Wong}, Tin Long and {Cinquegrana}, Giulia C. and {Farrell}, Eoin and {Smolec}, R. and {Thoul}, Anne and {Cantiello}, Matteo and {Herwig}, Falk and {Toloza}, Odette and {Bildsten}, Lars and {Townsend}, Richard H.~D. and {Timmes}, F.~X.},
title = "{Modules for Experiments in Stellar Astrophysics (MESA): Time-dependent Convection, Energy Conservation, Automatic Differentiation, and Infrastructure}",
journal = {\apjs},
keywords = {Stellar physics, Stellar evolution, Stellar evolutionary models, Computational methods, 1621, 1599, 2046, 1965, Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Earth and Planetary Astrophysics, Astrophysics - High Energy Astrophysical Phenomena, Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2023,
month = mar,
volume = {265},
number = {1},
eid = {15},
pages = {15},
doi = {10.3847/1538-4365/acae8d},
archivePrefix = {arXiv},
eprint = {2208.03651},
primaryClass = {astro-ph.SR},
adsurl = {https://ui.adsabs.harvard.edu/abs/2023ApJS..265...15J},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Loading

0 comments on commit ce8e53b

Please sign in to comment.