GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CGIAR-Climate-Data-Hub/CGIAR-Climate-Data-Hub.github.io: The main frontend/core of the hub

BranchesTags
Open more actions menu

Latest commit

 

History

550 Commits
550 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills/web-design-guidelines
.agents/skills/web-design-guidelines
 
 
.claude
.claude
 
 
.codex
.codex
 
 
.github
.github
 
 
examples
examples
 
 
public
public
 
 
scripts
scripts
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.mcp.json
.mcp.json
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
_quarto.yml
_quarto.yml
 
 
astro.config.mjs
astro.config.mjs
 
 
biome.json
biome.json
 
 
bun.lock
bun.lock
 
 
lighthouserc.json
lighthouserc.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

CGIAR Climate Action Data Hub

Development

bun install
bun run dev     # dev server at localhost:4321
bun run build   # static build to dist/
bun run check   # lint + format (Biome)

Wiki PDFs

Some wikis double as PDF deliverables, e.g. the architecture blueprint at src/content/wikis/architecture/index.md. Quarto renders them with Typst (bundled, no LaTeX):

bun run pdf     # writes pdfs/<wiki>.pdf (gitignored)

Quarto 1.10+ must be on your PATH for this. It is only needed to generate PDFs from content; the site build does not use it.

_quarto.yml lists which wikis render and holds the print settings. To export another wiki, give it its own folder (wikis/<name>/index.md, images beside it) and add the file to project.render. The PDF is generated on demand, not in the site build; nothing is committed.

Two constraints on the content: wiki frontmatter must avoid keys Quarto reserves (section is why the sidebar key is group), and diagrams must be image references rather than inline <svg>, which Pandoc drops on the way to PDF. Use absolute URLs for links you want clickable in print.

Lighthouse CI

bun run lh builds the site with the bundled example records and skills, then audits the URLs configured in lighthouserc.json. Reports are written to the gitignored .lighthouseci/ directory; each run replaces the previous results. Open the latest local report with:

bun run lh:open

Pull requests to main run the same checks and attach the reports to the Lighthouse workflow as a downloadable artifact. The robots-txt audit is skipped because the pinned Lighthouse version does not yet recognize the valid Content-Signal directive used by the site.

Commit hooks

Lint/format checks run as git hooks via prek — a drop-in pre-commit replacement; both read the same .pre-commit-config.yaml, so use whichever you have:

prek install          # or: pre-commit install

On commit this runs Biome (JS/TS/Astro/CSS), ruff (Python snippets and notebooks), air (R snippets), and basic file hygiene checks.

Catalog records

Dataset records are not in this repo — the catalog collection is fetched at build time from cdh-catalog's records/ directory (that repo triggers a site rebuild when records change). To point a local session elsewhere, use shell environment variables (.env files don't reach the loader):

# A local checkout — offline, previews uncommitted records
RECORDS_DIR=../cdh-catalog/records bun run dev

# A branch of cdh-catalog (e.g. an open data PR)
RECORDS_REF=my-branch bun run dev

# A different repo, e.g. a fork (composes with RECORDS_REF)
RECORDS_REPO=you/cdh-catalog bun run dev

Unset, builds fetch cdh-catalog@main. If the records fetch fails, the previously loaded records are kept, so offline dev keeps working — unless REQUIRE_RECORDS is set (the deploy workflow's guard), in which case a build that would produce an empty catalog fails instead.

No records checked out? bun run dev:example runs the site against the bundled fixtures in examples/records/ — a populated catalog for frontend work without cloning cdh-catalog. The fixtures are dev-only: nothing uses them unless RECORDS_DIR points at them.

Don't commit record YAML to this repo — src/content/catalog/ is gitignored and anything in it is ignored by the build; records belong in cdh-catalog.

Licensing

  • Website content (text, documentation, images) is licensed under CC BY 4.0.
  • Source code is licensed under MIT.
  • Datasets are licensed individually — see the license field of each catalog record.

About

The main frontend/core of the hub

cgiar-climate-data-hub.github.io/

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.