Skip to content

[DO NOT MERGE!] Add Open Research Across Disciplines page#736

Open
LukasWallrich wants to merge 9 commits into
mainfrom
disciplines-page
Open

[DO NOT MERGE!] Add Open Research Across Disciplines page#736
LukasWallrich wants to merge 9 commits into
mainfrom
disciplines-page

Conversation

@LukasWallrich
Copy link
Copy Markdown
Contributor

@LukasWallrich LukasWallrich commented Apr 7, 2026

Summary

  • Adds a new Open Research Across Disciplines page at /disciplines/, showing open research practices, examples, and resources across 38 disciplines grouped into 11 fields (633 resources total)
  • Data sourced from this Google Sheet via a gws CLI pipeline script (scripts/parse_disciplines_to_json.py)
  • Reuses the clusters page interactive framework (sidebar navigation, search, tab switching, sticky layout, mobile responsive)
  • Resources display color-coded category badges (General, Open Data, Open Methods, Open Outputs, Open Education)
  • Added to the Educational NEXUS navigation menu

Files

  • scripts/parse_disciplines_to_json.py — data pipeline (fetches 3 sheets via gws, generates JSON)
  • data/disciplines.json — generated data file
  • content/disciplines/_index.md — page content with SEO frontmatter
  • layouts/disciplines/single.html — main layout
  • layouts/partials/disciplines/ — 7 partials (all_fields, field_section, sidebar_nav, controls, colors, intro, seo_jsonld)
  • assets/scss/custom.scss — disciplines badge styles
  • config/_default/menus.toml — menu entry
  • layouts/partials/custom_js.html — loads shared JS for disciplines page

Test plan

  • Verify page renders at /disciplines/
  • Check sidebar navigation expands/collapses fields and switches discipline tabs
  • Test search functionality across fields, disciplines, and resources
  • Verify category badges display with correct colors
  • Test mobile responsiveness
  • Refresh data: python3 scripts/parse_disciplines_to_json.py

🤖 Generated with Claude Code

Data-driven page showing open research practices, examples, and resources
across 38 disciplines grouped into 11 fields. Data sourced from Google Sheets
via gws CLI pipeline (scripts/parse_disciplines_to_json.py).

Reuses the clusters page interactive framework (sidebar nav, search, tabs).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LukasWallrich LukasWallrich requested a review from a team as a code owner April 7, 2026 13:06
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

✅ Spell Check Passed

No spelling issues found when checking 15 changed file(s)! 🎉

@LukasWallrich LukasWallrich changed the title Add Open Research Across Disciplines page [DO NOT MERGE!] Add Open Research Across Disciplines page Apr 7, 2026
@LukasWallrich
Copy link
Copy Markdown
Contributor Author

LukasWallrich commented Apr 7, 2026

Staging Deployment Status

This PR has been successfully deployed to staging as part of an aggregated deployment.

Deployed at: 2026-05-27 12:41:42 UTC
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

LukasWallrich and others added 3 commits April 7, 2026 14:32
The previous commit had empty (0-byte) files for all templates, content,
data, and script. This happened because `git show stash^3:...` failed
silently during branch switch, overwriting the files with empty output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update the disciplines workflow with content from the post-hackathon G-Doc
and tooling to keep it reproducible.

- parse_disciplines_gdoc.py: new reusable script to parse the canonical
  .docx (local or via Drive) and optionally rewrite the disciplines
  spreadsheet. One resource per URL even when cells list multiple.
- parse_disciplines_to_json.py: read an optional `Show` column on the
  Fields tab so the page only renders Natural Sciences -> Methodologies.
- export_disciplines_to_md.py: new script to produce an editable
  markdown rendering of the page for editorial review.
- intro.html: drop the "Relevant across multiple disciplines" callout
  now that the cross-cutting field is hidden.
- data/disciplines.json: regenerated from the updated sheet (7 fields,
  40 disciplines, 801 resources).
- .gitignore: exclude scripts/output/.
Covers the source spreadsheet structure, common editing flows, the
re-import from a new G-Doc edition, the Tenzing contributors sheet,
and the most common troubleshooting cases.
LukasWallrich and others added 2 commits May 14, 2026 15:30
Examples cells in the source sheet were rewritten to proper Markdown
(citations and titles become inline links instead of dangling URL-in-parens;
each `Open X:` section becomes a bold paragraph). The template now runs
them through `markdownify`. Also drops the stray "As open as possible..."
quote and adds a `.sc-heading` rule so the discipline title is no longer
larger than the field title above it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@richarddushime
Copy link
Copy Markdown
Contributor

  • the sidebar nav and search are not working as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants