Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Requirements: Quarto (bundles Pandoc), TinyTeX (LuaLaTeX; `quarto install tinyte
- All admin workflows are `workflow_dispatch` forms linked from `admin.qmd` (the admin panel: rendered standalone with `embed-resources` by `make admin` and deployed to `gh-pages:/admin/` by `admin-panel.yml` on every change to it on main; not part of the site render list; shows live status via the public GitHub API). `release.yml` builds and creates the GitHub release itself (a release created with `GITHUB_TOKEN` would not trigger another workflow); a release reserves a DOI via Zenodo `newversion` and attaches `site.tar.gz` + `release.json`; `publish.yml` mints the draft and deploys that site to the `gh-pages` root (production target only), carrying over `/admin/` and `/preview/` from the current `gh-pages`. Pre-releases deploy to `gh-pages:/preview/` and are archived only as GitHub release assets.
- Zenodo sandbox pre-reserves DOIs with the production prefix `10.5281`; `Zenodo.doi()` rewrites them to `10.5072`, which is what the sandbox mints.
- `scripts/gdoc.py`: import = Drive export as docx → Pandoc JSON AST (`--shift-heading-level-by=1`). Blocks before the first non-"contents" heading are front matter: a "Document information" table (rows in `FIELDS` → frontmatter keys) and an "Editors" table (`Name | Institution | ORCID`), validated with a clear error list; the rest goes back through Pandoc to Markdown, typed heading numbers stripped. Export uploads the same layout as a new Google Doc (Drive converts the .docx) and `stamp()`s the previous export (`PREVIOUS_EXPORT`, from `gh-pages:admin/latest-export.json`): a highlighted notice inserted via the Docs API, then a Drive content-restriction lock, then `archive()` moves it into a sibling folder `archive` (created if missing; Drive API only, so it works even if the Docs API is off); the import workflow stamps the imported Doc the same way after opening the PR. Auth is OAuth as a user (`GOOGLE_OAUTH` = client id/secret + refresh token from `gdoc.py login`, loopback redirect), so files are owned by that user. Export → import round-trips `_content.md` and the frontmatter unchanged.
- Site chrome: `_quarto.yml` navbar (The Vision / All versions / Pre-release / Download PDF, pinned; `nav-links.html` hides the PDF and Pre-release buttons where their target does not exist) and footer, `styles.css`. The Vision page shows, on the website only, a status banner (release / pre-release / draft) and an "About this version" card from `_generated/front.md`; the PDF keeps its Release Metadata page. `v1.0.qmd` is a static page for version 1.0 (text only on Zenodo); until 2.0 is published the main site's `index.html` is a copy of it.
- Site chrome: `_quarto.yml` navbar (The Vision / All versions / Pre-release / Download PDF, pinned; `nav-links.html` hides the PDF and Pre-release buttons where their target does not exist) and footer, `styles.css`. The Vision page shows, on the website only, a status banner (release / pre-release / draft) and an "About this version" card from `_generated/front.md`; the PDF keeps its Release Metadata page. `v1.0.qmd` is the page for version 1.0; its text is `versions/v1.0.md`, converted from Appendix III of IPBES/9/INF/14 with the four wording differences to the Zenodo PDF applied (checked word by word against `IPBES_Data_Vision_org.pdf`); until 2.0 is published the main site's `index.html` is a copy of it.
- `older-releases.qmd` lists releases (Zenodo API) and pre-releases (GitHub API) client-side, so it stays current without re-rendering.
- Update `admin.qmd` and `README.md` when the workflow changes.
15 changes: 7 additions & 8 deletions v1.0.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "IPBES Long-term Vision on Data and Knowledge Management"
format:
html:
output-file: v1.0.html
toc: false
toc: true
---

```{=html}
Expand All @@ -16,20 +16,19 @@ format:
<div><div class="label">Editors</div>Debora Pignatari Drucker, David Thau, Rainer M. Krug, Joy A. Kumagai, Aidin Niamir</div>
</div>
<details><summary>How to cite</summary><p>IPBES (2022): <i>IPBES Long-term Vision on Data and Knowledge Management</i> ver. 1.0, Drucker, D.P., Thau, D., Krug, R.M., Kumagai, J.A., and Niamir, A. (eds.). IPBES secretariat, Bonn, Germany. DOI: <a href="https://doi.org/10.5281/zenodo.5513474">10.5281/zenodo.5513474</a></p></details>
<details><summary>About this text</summary><p>The text below is version 1.0 as published on Zenodo. The same text was published, marked as a draft, as Appendix III of document IPBES/9/INF/14 (4 May 2022) for the ninth session of the IPBES Plenary; it differs from version 1.0 only in four places: the preamble says "describes a draft for an overarching vision" and "The vision would be reviewed every two years", the roadmap's sub-headings are numbered "A-" and "B-", and the annex is titled "Definitions".</p></details>
</div>
<div class="vision-start"></div>

<p>Version 1.0 is the current released version of the IPBES long-term vision on data and knowledge management, prepared by the IPBES task force on knowledge and data. Its text is available from Zenodo.</p>

<p><a class="btn btn-success" href="https://doi.org/10.5281/zenodo.5513474"><i class="bi bi-box-arrow-up-right"></i> Version 1.0 on Zenodo</a></p>

<p>Version 2.0 is in preparation. Its latest pre-release, for review and not for citation, is at <a href="preview/">pre-release preview</a>; all versions are listed under <a href="older-releases.html">All versions</a>.</p>
<p>Version 1.0 is the current released version. Version 2.0 is in preparation: its latest pre-release, for review and not for citation, is at the <a href="https://ipbes-data.github.io/IPBES_Data_Vision/preview/">Pre-release</a> button; all versions are listed under <a href="older-releases.html">All versions</a>.</p>
<div class="vision-start"></div>

<script>
// The text of 1.0 is only on Zenodo, so the header's PDF button leads there on this page.
// The PDF of 1.0 is on Zenodo, so the header's PDF button leads there on this page.
document.querySelectorAll('a[href$="IPBES-Data-Management-Vision-latest.pdf"]').forEach((a) => {
a.href = "https://doi.org/10.5281/zenodo.5513474";
a.lastChild.textContent = " Version 1.0 on Zenodo";
});
</script>
```

{{< include versions/v1.0.md >}}
Loading
Loading