Skip to content

Commit 098626d

Browse files
authored
Merge pull request #51 from Bioconductor/align-with-bioconductor.org
Align styling with Bioconductor.org
2 parents 6a08c2b + 2852a96 commit 098626d

40 files changed

+1626
-161
lines changed

_quarto.yml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,33 @@ project:
33
output-dir: docs
44
render:
55
- "*.qmd"
6-
website:
7-
navbar:
8-
logo: "images/bioconductor-logo.svg"
9-
logo-href: "https://bioconductor.org"
10-
tools:
11-
- icon: github
12-
href: https://github.com/Bioconductor/bioconductor-training
13-
left:
14-
- text: "Home"
15-
href: index.qmd
16-
- text: "Resources"
17-
href: resources/resources.qmd
18-
- text: "Carpentry"
19-
menu:
20-
- text: "Overview"
21-
href: carpentry/index.qmd
22-
- text: "Instructors"
23-
href: carpentry/instructors.qmd
24-
- text: "Workshops"
25-
href: carpentry/workshops.qmd
6+
267
format:
278
html:
289
embed-resources: false
29-
css: styles.css
10+
theme: none
11+
page-layout: custom
12+
include-before-body:
13+
- layouts/components/announcement.html
14+
- layouts/components/header.html
15+
- layouts/components/container-start.html
16+
include-after-body:
17+
- layouts/components/container-end.html
18+
- layouts/components/footer.html
19+
css:
20+
- "style/base/colors.css"
21+
- "style/base/fonts.css"
22+
- "style/base/layout.css"
23+
- "style/base/typography.css"
24+
- "style/components/blockquote.css"
25+
- "style/components/breadcrumbs.css"
26+
- "style/components/buttons.css"
27+
- "style/components/code.css"
28+
- "style/components/dropdown.css"
29+
- "style/components/gallery.css"
30+
- "style/components/lists.css"
31+
- "style/components/tables.css"
32+
- "style/sections/announcement.css"
33+
- "style/sections/header.css"
34+
- "style/sections/footer.css"
35+
- "style/sections/sidebar.css"

carpentry/index.qmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
2-
title: "Bioconductor Carpentry"
2+
title: ""
33
format: html
44
editor: visual
55
---
66

7+
# Bioconductor Carpentry
8+
79
Bioconductor is a member of [The Carpentries](https://carpentries.org/), a global community focused on teaching foundational coding and data science skills. Our membership supports community members in earning Carpentries instructor certification, developing Bioconductor-specific training materials, and enabling our certified instructors to teach Carpentry workshops at Bioconductor events and beyond. While not an official Carpentries program like Software, Data, or Library Carpentry, Bioconductor Carpentry is aligned in spirit with The Carpentries and benefits from a close association.
810

911
Coordinated through the University of Limerick (UL) by Dr. Maria Doyle, Bioconductor Community Manager and [ELIXIR Ireland](https://elixir-ireland.ie/) Training Coordinator, this program organises workshops — including upcoming initiatives planned for Africa and Latin America — supports instructors, and manages logistics to foster essential data science skills and collaborative learning opportunities across the life sciences community.
1012

1113
For more information, you can:
1214

13-
- [Express interest](https://forms.gle/MBULoxQGn9fMTK4v8) in becoming a certified Carpentries instructor through our Train-the-Trainer program (when places are available).
14-
- [Request a Bioconductor workshop](https://forms.gle/PGGRqFbmLrzTQmTY7) at your institute; please note that instructor expenses will typically be required unless local instructors are available and willing to volunteer.
15+
- [Express interest](https://forms.gle/MBULoxQGn9fMTK4v8) in becoming a certified Carpentries instructor through our Train-the-Trainer program (when places are available).\
16+
- [Request a Bioconductor workshop](https://forms.gle/PGGRqFbmLrzTQmTY7) at your institute; please note that instructor expenses will typically be required unless local instructors are available and willing to volunteer.\
1517
- Visit our [Instructors](instructors.qmd) and [Workshops](workshops.qmd) pages for current details.
1618
- Explore the [blog post](https://blog.bioconductor.org/posts/2022-07-12-carpentries-membership/) that outlines Bioconductor’s Carpentries membership or browse other [Carpentries-related posts](https://blog.bioconductor.org/index.html#category=Carpentries).

carpentry/instructors.qmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
2-
title: "Instructors"
2+
title: ""
33
format: html
44
page-layout: full
55
editor: visual
66
execute:
77
message: false
88
warning: false
99
echo: false
10+
cache: true
1011
---
1112

13+
# Instructors
14+
1215
```{r}
1316
# Load necessary libraries
1417
library(readr)
@@ -258,7 +261,7 @@ reactable(
258261
```
259262

260263
:::: footer-timestamp
261-
::: {style="text-align: center; font-size: 0.9em; color: var(--neutral-n200); margin-top: 20px; padding-top: 10px;"}
264+
::: {style="text-align: center; font-size: 0.9em; color: var(--neutral-n50); margin-top: 20px; padding-top: 10px;"}
262265
```
263266
Last rendered on: `r format(Sys.Date(), "%Y-%m-%d")`
264267
```

carpentry/workshops.qmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
2-
title: "Workshops"
2+
title: ""
33
format: html
44
page-layout: full
55
editor: visual
66
execute:
77
message: false
88
warning: false
99
echo: false
10+
cache: true
1011
---
1112

13+
# Workshops
14+
1215
```{r}
1316
# Load necessary libraries
1417
library(readr)
@@ -240,7 +243,7 @@ workshops %>%
240243
```
241244

242245
:::: footer-timestamp
243-
::: {style="text-align: center; font-size: 0.9em; color: var(--neutral-n200); margin-top: 20px; padding-top: 10px;"}
246+
::: {style="text-align: center; font-size: 0.9em; color: var(--neutral-n50); margin-top: 20px; padding-top: 10px;"}
244247
```
245248
Last rendered on: `r format(Sys.Date(), "%Y-%m-%d")`
246249
```

images/icons/slack.png

448 Bytes
Loading
Lines changed: 5 additions & 0 deletions
Loading

images/icons/svgs/bluesky.svg

Lines changed: 3 additions & 0 deletions
Loading

images/icons/svgs/linkedin.svg

Lines changed: 9 additions & 0 deletions
Loading

images/icons/svgs/mastodon.svg

Lines changed: 3 additions & 0 deletions
Loading

images/icons/svgs/youtube.svg

Lines changed: 9 additions & 0 deletions
Loading

index.qmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: ""
33
format: html
4-
page-layout: full
54
---
65

7-
{{< include README.md >}}
6+
{{< include README.md >}}

layouts/components/announcement.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<div class="announcement announcement-brand">
2+
</div>

layouts/components/container-end.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="container">

layouts/components/footer.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<footer>
2+
<div class="footer-container">
3+
<div class="footer-content">
4+
<p>© 2003 - 2024 Bioconductor | Join the Bioconductor Community</p>
5+
<div class="footer-socials">
6+
<a href="https://slack.bioconductor.org/" target="_blank"><img alt="Slack Logo" src="/images/icons/slack.png" /></a>
7+
<a href="https://www.youtube.com/user/bioconductor" target="_blank"><img alt="YouTube Logo" src="/images/icons/svgs/youtube.svg" /></a>
8+
<a href="https://www.linkedin.com/company/bioconductor/" target="_blank"><img alt="LinkedIn Logo" src="/images/icons/svgs/linkedin.svg" /></a>
9+
<a href="https://bsky.app/profile/bioconductor.bsky.social" target="_blank"><img alt="Bluesky Logo" src="/images/icons/svgs/bluesky.svg" /></a>
10+
<a href="https://genomic.social/@bioconductor" target="_blank"><img alt="Mastodon Logo" src="/images/icons/svgs/mastodon.svg" /></a>
11+
<a href="https://blog.bioconductor.org/" target="_blank"><img alt="Blog Logo" src="/images/icons/svgs/arrow-circle-right-white.svg" /></a>
12+
</div>
13+
</div>
14+
</div>
15+
</footer>

layouts/components/header.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<header id="site-masthead" class="site-masthead">
2+
<div class="header-size">
3+
<!-- Logo Section -->
4+
<div class="header-logo">
5+
<a href="https://bioconductor.org">
6+
<img
7+
src="/images/bioconductor-logo.svg"
8+
class="masthead-logo"
9+
alt="Bioconductor Training Home"
10+
/>
11+
</a>
12+
</div>
13+
14+
<!-- Navigation Section -->
15+
<nav class="header-nav">
16+
<div class="nav-links">
17+
<a class="format-bold mobile-link" href="/">Home</a>
18+
<a class="format-bold mobile-link" href="/resources/resources.html">Resources</a>
19+
<a class="format-bold mobile-link" href="/workshops/2025-03-Nairobi/index.html">Workshops</a>
20+
<div class="dropdown">
21+
<a class="format-bold mobile-link" href="/carpentry/index.html">Carpentry</a>
22+
<div class="dropdown-content">
23+
<a href="/carpentry/instructors.html">Instructors</a>
24+
<a href="/carpentry/workshops.html">Workshops</a>
25+
</div>
26+
</div>
27+
</div>
28+
</nav>
29+
30+
<!-- Mobile Navigation -->
31+
<div class="nav-mobile">
32+
<h6>Menu</h6>
33+
<div class="hamburger">
34+
<span class="bar"></span>
35+
<span class="bar"></span>
36+
<span class="bar"></span>
37+
</div>
38+
</div>
39+
</div>
40+
</header>

layouts/components/sidebar.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<div class="sidebar-box">
2+
<!-- Optional: Sidebar header -->
3+
<div class="sidebar-box-header">
4+
<h2>Navigation</h2>
5+
</div>
6+
7+
<!-- Navigation links -->
8+
<nav>
9+
<div>
10+
<a href="/resources/resources.html" class="sidebar-nav-button">Resources</a>
11+
</div>
12+
<div>
13+
<a href="/workshops/" class="sidebar-nav-button">Workshops</a>
14+
</div>
15+
<div>
16+
<a href="/carpentry/index.html" class="sidebar-nav-button">Carpentry</a>
17+
</div>
18+
<div>
19+
<a href="/about/index.html" class="sidebar-nav-button">About Us</a>
20+
</div>
21+
</nav>
22+
23+
<!-- Optional: Bottom note -->
24+
<div class="bottom-note">
25+
<p>Learn more about Bioconductor and how you can contribute!</p>
26+
</div>
27+
</div>

resources/resources.qmd

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Resources"
2+
title: ""
33
format: html
44
editor: visual
55
execute:
@@ -8,6 +8,8 @@ execute:
88
echo: false
99
---
1010

11+
# Resources
12+
1113
The table below lists various resources for learning and teaching Bioconductor. If you're looking for more information or have updates, feel free to suggest changes via issues or contact us as described [here](../index.qmd).
1214

1315
```{r}
@@ -30,16 +32,13 @@ read_resources <- function(file_path) {
3032
3133
# Function to convert all markdown links in a string to HTML links
3234
convert_markdown_links <- function(text) {
33-
# Replace all [text](url) with <a href='url' target='_blank'>text</a>
34-
# Ensure that the URL doesn't capture trailing characters like parentheses
3535
gsub("\\[(.*?)\\]\\((https?://[a-zA-Z0-9./?=_-]+)\\)", "<a href='\\2' target='_blank'>\\1</a>", text)
3636
}
3737
3838
# Function to clean text by removing surrounding quotes
3939
clean_text <- function(text) {
4040
text <- replace_na_with_empty(text)
41-
# Remove starting and ending double quotes if present
42-
text <- gsub('^"(.*)"$', '\\1', text)
41+
text <- gsub('^"(.*)"$', '\\1', text) # Remove starting and ending double quotes if present
4342
return(text)
4443
}
4544
@@ -51,13 +50,10 @@ replace_na_with_empty <- function(x) {
5150
# Load the data from the TSV file
5251
resources_data <- read_resources("resources-table.tsv")
5352
54-
# Define styles for category and resource rows with reduced padding and smaller font
55-
category_style <- "background-color: #f0f0f0; font-weight: bold; border-bottom: 2px solid #ddd; font-size: 12px;" # Lighter grey and smaller font
56-
resource_style <- "background-color: #ffffff !important; border-bottom: 1px solid #ddd; font-size: 12px;" # Smaller font size for rows
53+
# Simplified styles for category rows
54+
category_style <- "background-color: #f0f0f0; font-weight: bold;"
5755
5856
# Define column widths using <colgroup>
59-
# First column (Resource): 25%
60-
# Remaining 6 columns: (75% / 6) = 12.5% each
6157
colgroup_html <- paste0(
6258
"<colgroup>",
6359
"<col style='width: 25%;'>", # Resource column
@@ -72,20 +68,20 @@ colgroup_html <- paste0(
7268
7369
# Initialize HTML table with <colgroup> and headers
7470
html_table <- paste0(
75-
"<table data-quarto-disable-processing='true' style='border-collapse: collapse; width: 100%; border: 1px solid #ddd;'>", # Add data-quarto-disable-processing attribute
71+
"<table data-quarto-disable-processing='true' class='full-width'>", # Use class 'full-width' from tables.css
7672
colgroup_html, # Insert the colgroup here
7773
"<thead>",
78-
"<tr style='background-color: #f6f8fa; font-weight: bold; border-bottom: 2px solid #ddd; font-size: 12px;'>", # Reduced font size for headers
79-
"<th rowspan='2' style='border-right: 1px solid #ddd; padding: 4px;'>Resource</th>",
80-
"<th colspan='6' style='padding: 4px; text-align: center;'>Goals</th>",
74+
"<tr>",
75+
"<th rowspan='2'>Resource</th>",
76+
"<th colspan='6'>Goals</th>",
8177
"</tr>",
82-
"<tr style='background-color: #f6f8fa; font-weight: bold; border-bottom: 2px solid #ddd; font-size: 12px;'>",
83-
"<th style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>Acquire the Fundamentals (novice R)</th>",
84-
"<th style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>Acquire the Fundamentals (experienced R)</th>",
85-
"<th style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>Analyze Your Data</th>",
86-
"<th style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>Connect with the Community</th>",
87-
"<th style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>Train Others</th>",
88-
"<th style='padding: 4px; text-align: center;'>Develop a Package</th>",
78+
"<tr>",
79+
"<th>Acquire the Fundamentals (novice R)</th>",
80+
"<th>Acquire the Fundamentals (experienced R)</th>",
81+
"<th>Analyze Your Data</th>",
82+
"<th>Connect with the Community</th>",
83+
"<th>Train Others</th>",
84+
"<th>Develop a Package</th>",
8985
"</tr>",
9086
"</thead><tbody>"
9187
)
@@ -107,7 +103,7 @@ for (i in 1:nrow(resources_data)) {
107103
html_table <- paste0(
108104
html_table,
109105
"<tr style='", category_style, "'>",
110-
"<td colspan='7' style='padding: 4px;'>",
106+
"<td colspan='7'>",
111107
category_display,
112108
"</td></tr>"
113109
)
@@ -122,14 +118,14 @@ for (i in 1:nrow(resources_data)) {
122118
123119
# Construct the resource row with styles and aligned cells
124120
resource_row <- paste0(
125-
"<tr style='", resource_style, "'>",
126-
"<td style='border-right: 1px solid #ddd; padding: 4px;'>", resource_display, "</td>",
127-
"<td style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>", replace_na_with_empty(row[[3]]), "</td>",
128-
"<td style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>", replace_na_with_empty(row[[4]]), "</td>",
129-
"<td style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>", replace_na_with_empty(row[[5]]), "</td>",
130-
"<td style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>", replace_na_with_empty(row[[6]]), "</td>",
131-
"<td style='border-right: 1px solid #ddd; padding: 4px; text-align: center;'>", replace_na_with_empty(row[[7]]), "</td>",
132-
"<td style='padding: 4px; text-align: center;'>", replace_na_with_empty(row[[8]]), "</td>",
121+
"<tr>",
122+
"<td>", resource_display, "</td>",
123+
"<td>", replace_na_with_empty(row[[3]]), "</td>",
124+
"<td>", replace_na_with_empty(row[[4]]), "</td>",
125+
"<td>", replace_na_with_empty(row[[5]]), "</td>",
126+
"<td>", replace_na_with_empty(row[[6]]), "</td>",
127+
"<td>", replace_na_with_empty(row[[7]]), "</td>",
128+
"<td>", replace_na_with_empty(row[[8]]), "</td>",
133129
"</tr>"
134130
)
135131
@@ -142,4 +138,4 @@ html_table <- paste0(html_table, "</tbody></table>")
142138
143139
# Output the HTML table using htmltools::HTML()
144140
HTML(html_table)
145-
```
141+
```

0 commit comments

Comments
 (0)