Skip to content

Commit c215775

Browse files
authored
Update April (#12)
* ignore local files and fix event link * add QSI poster source and rendered outputs * feat: Add poster drafts and QMD file for NAIF project on responsible research assessment and metadata quality - Introduced a new PDF poster detailing the NAIF project, highlighting the importance of repository interoperability and responsible research assessment. - Created a QMD file containing structured content for the poster, including sections on overview, evidence base, DARIAH alignment, and key takeaways. * feat: Add initial QMD file and hero image for Swiss repository survey insights * feat: Enhance dashboard functionality with Excel export and styling improvements * feat: Mark posters as draft for ongoing development * feat: add visual listing for posters * chore: update tooling and local site config * docs: explain fork quarto local config workflow * chore: support poster rendering in CI --------- Co-authored-by: Moritz Mähr <14755525+maehr@users.noreply.github.com>
1 parent b74cb0b commit c215775

123 files changed

Lines changed: 7230 additions & 379 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rprofile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Configure R package repositories for CI and local installs.
2+
options(
3+
repos = c(
4+
CRAN = "https://cloud.r-project.org"
5+
),
6+
readr.show_progress = FALSE
7+
)

.github/workflows/quarto-publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ jobs:
6161
- name: Install uv
6262
uses: astral-sh/setup-uv@v6
6363

64+
- name: Set up R
65+
uses: r-lib/actions/setup-r@v2
66+
67+
- name: Install R dependencies
68+
run: Rscript -e 'install.packages("processx")'
69+
70+
- name: Set up Chrome
71+
id: setup-chrome
72+
uses: browser-actions/setup-chrome@v1
73+
74+
- name: Expose Chrome as google-chrome
75+
run: sudo ln -s "${{ steps.setup-chrome.outputs.chrome-path }}" /usr/local/bin/google-chrome
76+
6477
- name: Sync Python environment
6578
run: uv sync
6679

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ __pycache__/
1010
.coverage
1111
htmlcov/
1212
.ipynb_checkpoints/
13+
.env
1314

1415
**/*.quarto_ipynb
16+
**/*.quarto_ipynb_*
1517
.jampack/
1618
.lycheecache
19+
20+
/_*.local

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,31 @@ npm run validate
102102
| `npm run lychee-check` | `lychee` | Check for broken links in source `.md` and `.qmd` files |
103103
| `npm run lychee-check:rendered` | `lychee --offline` | Check internal links in rendered `_site/**/*.html` |
104104

105+
This fork intentionally tracks `_quarto.yml.local` to override the upstream website URLs with
106+
`https://maehr.github.io/naif/` and the fork repository links. Edit `_quarto.yml.local` directly if
107+
the fork deployment target changes.
108+
109+
#### Fork workflow with `_quarto.yml.local`
110+
111+
Quarto automatically merges `_quarto.yml.local` into `_quarto.yml` when it is present. In this fork,
112+
that file is used only for fork-specific website settings:
113+
114+
- `site-url`: points rendered canonical links and cards at the fork preview site
115+
- `repo-url`: points the website repo links at the fork repository
116+
- `issue-url`: stays on the upstream issue tracker
117+
118+
Use this workflow when working from a fork:
119+
120+
1. Keep all shared project configuration in `_quarto.yml`.
121+
2. Put fork-only overrides in `_quarto.yml.local`.
122+
3. Run `uv run quarto preview` for local development.
123+
4. Run `uv run quarto render` before pushing when you want to verify the full site build.
124+
5. Push your branch to the fork and use the fork Pages site, here `https://maehr.github.io/naif/`,
125+
as the remote preview.
126+
6. Open the pull request against `eth-library/naif` from your fork branch.
127+
128+
This keeps upstream configuration clean while letting a fork publish correct preview URLs.
129+
105130
#### Screenshots
106131

107132
| Script | Command | Description |

_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ project:
66
- "dashboards/**/index.qmd"
77
- "posts/index.qmd"
88
- "posts/**/index.qmd"
9+
- "posters/index.qmd"
10+
- "posters/**/poster.qmd"
911
- "events/**/index.qmd"
1012
- "!posts/_template-*/**"
1113
- "!events/_template-*/**"

_quarto.yml.local.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
website:
2+
# When working from a fork, copy this file to _quarto.yml.local.
3+
# Keep _quarto.yml.local untracked and set values for your fork only.
4+
site-url: "https://<your-user-or-org>.github.io/naif/"
5+
repo-url: "https://github.com/<your-user-or-org>/naif"
6+
issue-url: "https://github.com/<your-user-or-org>/naif/issues/new/choose"

dashboards/dashboard-common.css

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,68 @@
44
display: none;
55
}
66

7+
.quarto-dashboard {
8+
--dashboard-surface: #f3f4f6;
9+
--dashboard-surface-strong: #e5e7eb;
10+
--dashboard-border: #cbd5e1;
11+
--dashboard-text: #111827;
12+
--dashboard-muted: #475569;
13+
}
14+
15+
.quarto-dashboard #quarto-dashboard-header .navbar {
16+
background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%) !important;
17+
border-bottom: 1px solid var(--dashboard-border);
18+
}
19+
20+
.quarto-dashboard #quarto-dashboard-header .navbar-title-text a,
21+
.quarto-dashboard #quarto-dashboard-header .navbar-author {
22+
color: #374151 !important;
23+
}
24+
25+
.quarto-dashboard #quarto-dashboard-header .navbar-title-text a {
26+
font-weight: 700;
27+
}
28+
729
.quarto-dashboard .dashboard-table-wrap {
8-
overflow-x: auto;
30+
height: 100%;
31+
overflow: auto;
32+
border: 1px solid var(--dashboard-border);
33+
border-radius: 0.9rem;
34+
background: #ffffff;
35+
}
36+
37+
.quarto-dashboard .dashboard-table-wrap table {
38+
width: 100%;
39+
margin-bottom: 0;
40+
table-layout: auto;
41+
}
42+
43+
.quarto-dashboard .dashboard-table-wrap thead th {
44+
position: sticky;
45+
top: 0;
46+
z-index: 1;
47+
background: #f8fafc;
48+
}
49+
50+
.quarto-dashboard .dashboard-table-wrap th,
51+
.quarto-dashboard .dashboard-table-wrap td {
52+
vertical-align: top;
53+
white-space: normal;
54+
overflow-wrap: anywhere;
55+
}
56+
57+
.quarto-dashboard .dashboard-table-wrap a {
58+
overflow-wrap: anywhere;
59+
}
60+
61+
.quarto-dashboard .dashboard-id-list,
62+
.quarto-dashboard .dashboard-id-token {
63+
white-space: normal;
64+
overflow-wrap: anywhere;
65+
}
66+
67+
.quarto-dashboard .dashboard-id-sep {
68+
color: #94a3b8;
969
}
1070

1171
.quarto-dashboard .nav-tabs {
@@ -19,6 +79,22 @@
1979

2080
.quarto-dashboard .nav-tabs .nav-link {
2181
font-weight: 600;
82+
background: var(--dashboard-surface-strong);
83+
}
84+
85+
.quarto-dashboard .nav-tabs .nav-link:not(.active) {
86+
border-color: transparent;
87+
}
88+
89+
.quarto-dashboard .bslib-value-box {
90+
background: var(--dashboard-surface) !important;
91+
border: 1px solid var(--dashboard-border);
92+
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
93+
color: var(--dashboard-text);
94+
}
95+
96+
.quarto-dashboard .bslib-value-box .value-box-showcase {
97+
color: var(--dashboard-muted);
2298
}
2399

24100
.quarto-dashboard .bslib-value-box .value-box-title {
@@ -30,3 +106,27 @@
30106
font-size: clamp(1.35rem, 2.2vw, 2.4rem);
31107
line-height: 1.05;
32108
}
109+
110+
.quarto-dashboard .dashboard-about {
111+
max-width: 72ch;
112+
color: var(--dashboard-text);
113+
font-size: 1rem;
114+
line-height: 1.65;
115+
}
116+
117+
.quarto-dashboard .dashboard-subheading {
118+
margin: 0 0 0.75rem;
119+
color: var(--dashboard-text);
120+
}
121+
122+
.quarto-dashboard .dashboard-download-actions {
123+
display: flex;
124+
flex-wrap: wrap;
125+
gap: 0.75rem;
126+
margin: 1rem 0;
127+
}
128+
129+
.quarto-dashboard .dashboard-download-note {
130+
max-width: 60ch;
131+
color: var(--dashboard-muted);
132+
}

dashboards/naif/hei.xlsx

24.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)