Skip to content

Commit ce8e53b

Browse files
committed
adding bibtext
1 parent 89d256f commit ce8e53b

4 files changed

Lines changed: 260 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"gitlanding": "^2.0.0-rc.3",
2323
"onyxia-ui": "^5.3.3",
2424
"react": "^18.3.1",
25+
"react-code-blocks": "^0.1.6",
2526
"react-dom": "^18.3.1",
2627
"tss-react": "^4.9.13"
2728
},

src/App.tsx

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import { GlCheckList } from "gitlanding/GlCheckList";
1111
/*import { GlSlider } from "gitlanding/GlSlider";
1212
import { GlReviewSlide } from "gitlanding/GlReviewSlide";*/
1313
import { GlHeader } from "gitlanding/GlHeader";
14+
import { CopyBlock, dracula } from "react-code-blocks";
15+
import { useEffect, useState } from "react";
16+
import mesaBib from "./assets/txt/mesa.bib.txt";
1417
/*import mesaIconPng from "./assets/img/mesa-favicon.png";*/
1518
import mesaLogoPng from "./assets/img/mesa_logo2_200pt.png";
1619
import mesaMp4 from "./assets/videos/mesa1.mp4";
@@ -31,6 +34,19 @@ export function App() {
3134
);
3235
}
3336

37+
function useMesaBibTxt() {
38+
const [mesaBibTxt, setMesaBibTxt] = useState<string>("");
39+
40+
useEffect(() => {
41+
fetch(mesaBib)
42+
.then(response => response.text())
43+
.then(text => setMesaBibTxt(text))
44+
.catch(error => console.error("Error fetching mesa.bib.txt:", error));
45+
}, []);
46+
47+
return mesaBibTxt;
48+
}
49+
3450
function AppContextualized() {
3551
return (
3652
<GlTemplate
@@ -188,6 +204,7 @@ function Body() {
188204
</>
189205
}
190206
</GlCards>
207+
191208
{/*
192209
<GlArticle
193210
title="Article title"
@@ -210,8 +227,9 @@ function Body() {
210227
/>
211228
212229
<GlSectionDivider />
230+
*/}
213231

214-
*/}
232+
<GlSectionDivider />
215233

216234
<GlCheckList
217235
heading="Modules"
@@ -287,6 +305,21 @@ function Body() {
287305
}}
288306
hasAnimation={true}
289307
/>
308+
309+
<GlArticle
310+
title="MESA papers to cite"
311+
body={
312+
<div style={{ maxHeight: "500px", overflowY: "auto" }}>
313+
<CopyBlock
314+
language={"bash"}
315+
text={useMesaBibTxt()}
316+
showLineNumbers={true}
317+
theme={dracula}
318+
codeBlock
319+
/>
320+
</div>
321+
}
322+
/>
290323
</>
291324
);
292325
}

src/assets/txt/mesa.bib.txt

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
@ARTICLE{Paxton2011,
2+
author = {{Paxton}, B. and {Bildsten}, L. and {Dotter}, A. and {Herwig}, F. and {Lesaffre}, P. and {Timmes}, F.},
3+
title = {{Modules for Experiments in Stellar Astrophysics (MESA)}},
4+
journal = {\apjs},
5+
archivePrefix = {arXiv},
6+
eprint = {1009.1622},
7+
primaryClass = {astro-ph.SR},
8+
keywords = {methods: numerical, stars: evolution, stars: general},
9+
year = {2011},
10+
month = {jan},
11+
volume = {192},
12+
eid = {3},
13+
pages = {3},
14+
doi = {10.1088/0067-0049/192/1/3},
15+
adsurl = {https://ui.adsabs.harvard.edu/abs/2011ApJS..192....3P},
16+
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
17+
}
18+
19+
@ARTICLE{Paxton2013,
20+
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.},
21+
title = {{Modules for Experiments in Stellar Astrophysics (MESA): Planets, Oscillations, Rotation, and Massive Stars}},
22+
journal = {\apjs},
23+
archivePrefix = {arXiv},
24+
eprint = {1301.0319},
25+
primaryClass = {astro-ph.SR},
26+
keywords = {asteroseismology, methods: numerical, planets and satellites: physical evolution, stars: evolution, stars: massive, stars: rotation},
27+
year = {2013},
28+
month = {sep},
29+
volume = {208},
30+
eid = {4},
31+
pages = {4},
32+
doi = {10.1088/0067-0049/208/1/4},
33+
adsurl = {https://ui.adsabs.harvard.edu/abs/2013ApJS..208....4P},
34+
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
35+
}
36+
37+
@ARTICLE{Paxton2015,
38+
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.},
39+
title = {{Modules for Experiments in Stellar Astrophysics (MESA): Binaries, Pulsations, and Explosions}},
40+
journal = {\apjs},
41+
archivePrefix = {arXiv},
42+
eprint = {1506.03146},
43+
primaryClass = {astro-ph.SR},
44+
keywords = {binaries: general, methods: numerical, nuclear reactions, nucleosynthesis, abundances, shock waves, stars: evolution, stars: oscillations},
45+
year = {2015},
46+
month = {sep},
47+
volume = {220},
48+
eid = {15},
49+
pages = {15},
50+
doi = {10.1088/0067-0049/220/1/15},
51+
adsurl = {https://ui.adsabs.harvard.edu/abs/2015ApJS..220...15P},
52+
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
53+
}
54+
55+
@ARTICLE{Paxton2018,
56+
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.},
57+
title = {{Modules for Experiments in Stellar Astrophysics (MESA): Convective Boundaries, Element Diffusion, and Massive Star Explosions}},
58+
journal = {\apjs},
59+
archivePrefix = {arXiv},
60+
eprint = {1710.08424},
61+
primaryClass = {astro-ph.SR},
62+
keywords = {convection, diffusion, hydrodynamics, methods: numerical, stars: evolution, supernovae: general },
63+
year = {2018},
64+
month = {feb},
65+
volume = {234},
66+
eid = {34},
67+
pages = {34},
68+
doi = {10.3847/1538-4365/aaa5a8},
69+
adsurl = {https://ui.adsabs.harvard.edu/abs/2018ApJS..234...34P},
70+
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
71+
}
72+
73+
@ARTICLE{Paxton2019,
74+
author = {{Paxton}, Bill and {Smolec}, R. and {Schwab}, Josiah and {Gautschy}, A. and
75+
{Bildsten}, Lars and {Cantiello}, Matteo and {Dotter}, Aaron and
76+
{Farmer}, R. and {Goldberg}, Jared A. and {Jermyn}, Adam S. and
77+
{Kanbur}, S.~M. and {Marchant}, Pablo and {Thoul}, Anne and
78+
{Townsend}, Richard H.~D. and {Wolf}, William M. and {Zhang}, Michael and
79+
{Timmes}, F.~X.},
80+
title = "{Modules for Experiments in Stellar Astrophysics (MESA): Pulsating Variable Stars, Rotation, Convective Boundaries, and Energy Conservation}",
81+
journal = {\apjs},
82+
keywords = {stars: evolution, stars: general, stars: interiors, stars: oscillations: including pulsations, stars: rotation, stars: variables: general, Astrophysics - Solar and Stellar Astrophysics},
83+
year = "2019",
84+
month = "Jul",
85+
volume = {243},
86+
number = {1},
87+
eid = {10},
88+
pages = {10},
89+
doi = {10.3847/1538-4365/ab2241},
90+
archivePrefix = {arXiv},
91+
eprint = {1903.01426},
92+
primaryClass = {astro-ph.SR},
93+
adsurl = {https://ui.adsabs.harvard.edu/abs/2019ApJS..243...10P},
94+
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
95+
}
96+
97+
@ARTICLE{Jermyn2023,
98+
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.},
99+
title = "{Modules for Experiments in Stellar Astrophysics (MESA): Time-dependent Convection, Energy Conservation, Automatic Differentiation, and Infrastructure}",
100+
journal = {\apjs},
101+
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},
102+
year = 2023,
103+
month = mar,
104+
volume = {265},
105+
number = {1},
106+
eid = {15},
107+
pages = {15},
108+
doi = {10.3847/1538-4365/acae8d},
109+
archivePrefix = {arXiv},
110+
eprint = {2208.03651},
111+
primaryClass = {astro-ph.SR},
112+
adsurl = {https://ui.adsabs.harvard.edu/abs/2023ApJS..265...15J},
113+
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
114+
}

0 commit comments

Comments
 (0)