Skip to content

Commit febdb39

Browse files
committed
Whoops, didn't stage some additions
1 parent 342893c commit febdb39

4 files changed

Lines changed: 160 additions & 3 deletions

File tree

_layout/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<li><a href="/research/">Research</a></li>
1010
<li><a href="/funding/">Funding</a></li>
1111
<li><a href="/publications/">Publications</a></li>
12-
<!-- <li><a href="/data/">Data</a></li>
13-
<li><a href="/software/">Software</a></li> -->
12+
<!-- <li><a href="/data/">Data</a></li> -->
13+
<li><a href="/software/">Software</a></li>
1414
<li><a href="/resources/">Resources</a></li>
1515
</ul>
1616
<img src="/assets/hamburger.svg" id="menu-icon" alt="Hamburger menu icon: three horizontal lines">

funding.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@ We note that "other resources" includes computational resources. This means that
2626
## Previous Funding Sources
2727

2828
{{previous_projects}}
29+
30+
# Other Support
31+
32+
## Computing Resources
33+
34+
{{computing_support}}
35+
36+
## Software
37+
38+
{{software_support}}

software.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ rss_pubdate = Date(2024, 6, 13)
88
tags = ["index", "software"]
99
+++
1010

11-
# Software
11+
# Software
12+
13+
The CoReACTER develops software as part of our scholarly work! All code is open source (currently hosted on [GitHub](https://github.com/CoReACTER)), in line with our commitment to [open science](/philosophy/openscience.md). Contributions from external developers are always welcome; please feel free to report issues and submit pull requests!
14+
15+
Here, we list only packages that were initially or are primarily developed by the CoReACTER. However, we note that ReACTERs contribute to many other community codes!
16+
17+
{{softwaretable}}

utils.jl

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,5 +590,146 @@ function hfun_previous_projects()
590590
"</tbody>\n</table>"
591591
)
592592

593+
return join(final_parts, "\n")
594+
end
595+
596+
function hfun_softwaretable()
597+
598+
software_data = YAML.load_file("_data/software.yml"; dicttype=OrderedDict{String,Any})
599+
people_data = YAML.load_file("_data/people.yml"; dicttype=OrderedDict{String,Any})
600+
601+
# Table initialization
602+
final_parts = [
603+
"""<table class="softwaretab">
604+
<colgroup>
605+
<col width="30%" />
606+
<col width="70%" />
607+
</colgroup>
608+
<thead></thead>
609+
<tbody>
610+
"""
611+
]
612+
613+
for values in software_data.vals
614+
615+
push!(
616+
final_parts,
617+
string(
618+
"\t<tr>\n\t\t<td>\n\t\t\t<div class=\"project_logo\"><img src=\"/_files/images/",
619+
values["image"],
620+
"\" class=\"project_logo\" alt=\"",
621+
values["alt"],
622+
"\"></div>\n\t\t</td>\n\t\t<td>\n\t\t\t<p><strong>",
623+
values["display_name"],
624+
"</strong><br>\n<strong>Lead Developer</strong>: ",
625+
people_data[values["lead_dev"]]["display_name"],
626+
" (",
627+
people_data[values["lead_dev"]]["pronouns"],
628+
")<br>\n<strong>Lead Maintainer</strong>: ",
629+
people_data[values["lead_maint"]]["display_name"],
630+
" (",
631+
people_data[values["lead_maint"]]["pronouns"],
632+
")\n",
633+
"<br>\n\t\t\t<strong>Description</strong>: ",
634+
values["description"],
635+
"</p>\n\t\t</td>\n\t</tr>"
636+
)
637+
)
638+
end
639+
640+
push!(
641+
final_parts,
642+
"</tbody>\n</table>"
643+
)
644+
645+
return join(final_parts, "\n")
646+
647+
end
648+
649+
function hfun_computing_support()
650+
support_data = YAML.load_file("_data/computing_support.yml"; dicttype=OrderedDict{String,Any})
651+
652+
# Table initialization
653+
final_parts = [
654+
"""<table class="projectstab">
655+
<colgroup>
656+
<col width="30%" />
657+
<col width="70%" />
658+
</colgroup>
659+
<thead></thead>
660+
<tbody>
661+
"""
662+
]
663+
664+
for values in support_data.vals
665+
if !values["active"]
666+
continue
667+
end
668+
669+
push!(
670+
final_parts,
671+
string(
672+
"\t<tr>\n\t\t<td>\n\t\t\t<div class=\"project_logo\"><img src=\"/_files/images/",
673+
values["image"],
674+
"\" class=\"project_logo\" alt=\"",
675+
values["alt"],
676+
"\"></div>\n\t\t</td>\n\t\t<td>\n\t\t\t<p><strong>",
677+
values["source_name"],
678+
"</strong>, <em>",
679+
values["provider_name"],
680+
"</em></p>\n\t\t</td>\n\t</tr>"
681+
)
682+
)
683+
end
684+
685+
push!(
686+
final_parts,
687+
"</tbody>\n</table>"
688+
)
689+
690+
return join(final_parts, "\n")
691+
end
692+
693+
function hfun_software_support()
694+
support_data = YAML.load_file("_data/software_support.yml"; dicttype=OrderedDict{String,Any})
695+
696+
# Table initialization
697+
final_parts = [
698+
"""<table class="projectstab">
699+
<colgroup>
700+
<col width="30%" />
701+
<col width="70%" />
702+
</colgroup>
703+
<thead></thead>
704+
<tbody>
705+
"""
706+
]
707+
708+
for values in support_data.vals
709+
if !values["active"]
710+
continue
711+
end
712+
713+
push!(
714+
final_parts,
715+
string(
716+
"\t<tr>\n\t\t<td>\n\t\t\t<div class=\"project_logo\"><img src=\"/_files/images/",
717+
values["image"],
718+
"\" class=\"project_logo\" alt=\"",
719+
values["alt"],
720+
"\"></div>\n\t\t</td>\n\t\t<td>\n\t\t\t<p><strong>",
721+
values["display_name"],
722+
"</strong><br>\n\t\t\t<strong>Description</strong>: ",
723+
values["description"],
724+
"</p>\n\t\t</td>\n\t</tr>"
725+
)
726+
)
727+
end
728+
729+
push!(
730+
final_parts,
731+
"</tbody>\n</table>"
732+
)
733+
593734
return join(final_parts, "\n")
594735
end

0 commit comments

Comments
 (0)