Admin panel

1. Import

Bring in the edits from the Google Doc.

Import from Google Doc

2. Export

New Google Doc with the current text.

Export to Google Doc

3. Release

Pre-release (review) or release (DOI).

Make a release or pre-release

4. Publish

Make a prepared release public.

Publish release

ℹ️ A button opens the task on GitHub (sign in if asked). There, click Run workflow on the right, fill in the form and click the green Run workflow button. Nothing happens until you do. Hover over a button for details.

Check setup · Setup how-to

Check setup (below the buttons) checks the secrets, variables and the Google, Zenodo and GitHub settings and lists anything to fix in the run’s details; it changes nothing. You need to be signed in to GitHub with an account that may edit this repository. Each task takes a few minutes; its status appears above (reload the page).

What the buttons do

  1. Import from Google Doc copies the text and the bibliographic tables from the Google Doc. Nothing changes on the website yet: you get a page showing every change, where you accept (Merge) or discard (Close) it. An accepted import gets the next beta number. The imported Doc gets a highlighted line at the top, “IMPORTED on … into ”, and is locked (read-only). The form takes a Doc link; leave it empty to import the latest exported Doc (shown above the buttons).
  2. Export to Google Doc asks which version this round of editing prepares (e.g. 1.1 for a minor or 2.0 for a major change; empty keeps the current one) and creates a new Google Doc in your Drive with the current text and the bibliographic tables, including that version; its link is shown under the run’s details. The previous export gets a highlighted line at the top, “NEW VERSION AVAILABLE … Continue in: ”, is locked (read-only) and is moved into a folder archive next to it (its link stays the same); otherwise existing Docs are not changed. Paste the new Doc’s link into the import form later (or ask the technical admin to make it the usual Doc).
  3. Make a release or pre-release asks for the type and what changed (items separated by ;). There is no version number to type: it follows the rules below.
    • Pre-release: the next release candidate, e.g. 1.1-rc.2. No DOI, archived on GitHub, shown at the Pre-release preview link.
    • Release: the latest release candidate, unchanged, becomes the final version, e.g. 1.1-rc.2 → 1.1. A DOI is reserved and a Zenodo draft prepared, but nothing is public until step 4. If the text changed after that candidate, make a new pre-release first.
  4. Publish release: after a release in step 3, check the Zenodo draft and the PDF, then publish. This makes the DOI permanent and updates the website. Leave the form empty to publish the newest release.

This panel is always at https://ipbes-data.github.io/IPBES_Data_Vision/admin/ and is updated whenever the repository changes.

Version rules

Released versions are MAJOR.MINOR (1.0, 1.1, 2.0); work in progress carries a suffix (1.1-beta.3, 1.1-rc.2). A cycle is the work between two releases; the line above the buttons shows the current one.

Step Version
Import (or other change to the text) accepted next beta, e.g. 1.1-beta.3: only recorded, no PDF, no DOI
Export asks for the version being prepared (1.1 or 2.0), which goes into the Doc’s Version row; the Doc also shows “Based on version …”
Pre-release next release candidate, e.g. 1.1-rc.2: PDF on GitHub, preview site, no DOI
Release + Publish the latest release candidate unchanged becomes 1.1, with a DOI
  • Minor or major is decided at export: you type only the MAJOR.MINOR part, and it must be the next minor (1.0 → 1.1) or the next major (1.0 → 2.0) version. It is written into the Google Doc’s Version row, can be corrected there, and takes effect when the import is accepted. The -beta.N / -rc.N part is always added automatically. Until a version is chosen, the next minor is assumed.
  • Which one?
    • Minor (1.0 → 1.1): the same content, better expressed or updated — wording, clarifications, corrections, updated references or names, changes to editors, contact or publisher.
    • Major (1.0 → 2.0): what the Vision says or commits to changes — aims, tracks or targets (including their dates) added, removed or substantially changed, the document restructured, or changes following a new Plenary decision. Rule of thumb: would someone citing the previous version need to know that the substance changed?
  • Beta and release-candidate numbers start at 1 for each new version; betas keep counting after a release candidate.
  • A release always publishes a release candidate exactly as it was reviewed; if the text changed since, make a new pre-release first. Released numbers only go up.
  • While ZENODO_TARGET is sandbox, releases are test releases tagged 1.1-test.N; they are not versions and do not end the cycle.
  • The numbers are git tags (v1.1-beta.3, …), handed out by scripts/versions.py.

Versions step by step: the example of 2.0

This walks through one full cycle, using what has actually happened so far with version 2.0 and what comes next.

flowchart TD
  R1["Released: 1.0<br/>(on Zenodo)"] --> E["1. Export to Google Doc<br/>choose target: 1.1 (minor) or 2.0 (major)"]
  E --> D["Edit in the Google Doc"]
  D --> I["2. Import from Google Doc<br/>review page: Merge"]
  I --> B["beta: 2.0-beta.N<br/>(automatic, not published)"]
  B -->|more edits: export again| E
  B --> P["3. Pre-release<br/>release candidate 2.0-rc.N<br/>PDF + /preview/, no DOI"]
  P -->|changes needed: export again| E
  P --> RL["4. Release<br/>2.0-rc.N becomes 2.0<br/>DOI reserved, Zenodo draft"]
  RL --> PB["5. Publish release<br/>DOI minted, website shows 2.0"]
  PB --> E2["Next export: target 2.1 or 3.0<br/>next betas: 2.1-beta.1, ..."]

Where 2.0 stands now

When What happened Version
25 April 2022 Published on Zenodo (DOI 10.5281/zenodo.5513474) 1.0 (latest release)
29 October 2026 Exported to Google Docs with Target version 2.0 (a major change: new aims, tracks and targets) target 2.0
29 October 2026 Changes accepted into the repository (version rules, website layout, Google Docs sync) 2.0-beta.1 to 2.0-beta.4
29 October 2026 2.0-beta.1 published for review at the Pre-release button (a one-off; normally step 3 publishes a release candidate) 2.0-beta.1 (published)

The line above the buttons always shows the current state, e.g. Latest release: 1.0 · Working towards 2.0 · latest accepted change 2.0-beta.4.

1. Start a round of editing and decide minor or major

Click Export to Google Doc. The form asks for the Target version: only MAJOR.MINOR, and only the next minor or the next major of the latest release. After 1.0 that is 1.1 or 2.0; after 2.0 it will be 2.1 or 3.0. Leave it empty to keep the current target.

  • Minor (1.0 → 1.1): the same content, better expressed or updated — wording, corrections, references, editors.
  • Major (1.0 → 2.0): what the Vision says or commits to changes — aims, tracks or targets added, removed or substantially changed, a new structure, a new Plenary decision.

The new Google Doc shows Current version (e.g. 2.0-beta.4, for information) and Target version (2.0) in its Document information table. The target can still be corrected there before importing. The previous export is marked “NEW VERSION AVAILABLE”, locked and moved into the folder archive.

2. Bring edits back: a beta

When the editing round is done, click Import from Google Doc (form empty = the latest exported Doc). You get a review page listing every change; click Merge to accept, Close to discard. The Doc is marked “IMPORTED” and locked.

Accepting gives the text the next beta number automatically: the next import after 2.0-beta.4 becomes 2.0-beta.5. Betas are only recorded: no PDF, no website, no DOI. Changes to the page layout in the repository also count as betas (that is how 2.0-beta.2 to 2.0-beta.4 came about). For more edits, export again: the imported Doc is locked, and each round starts with a fresh export. Repeat export → edit → import as often as needed; the target stays 2.0.

3. Publish for review: a release candidate

When the text is ready for review, click Make a release or pre-release, choose Pre-release (for review, no DOI) and write what changed (items separated by ;). The text becomes the next release candidate: the first one for 2.0 is 2.0-rc.1.

  • The PDF and release notes appear as a GitHub pre-release, the website version at the Pre-release button (/preview/), with the amber banner “for review, not for citation”.
  • If the review asks for changes: export again (step 1; the imported Doc is locked), edit the new Doc and import it (step 2, giving 2.0-beta.6, …), then make another pre-release: 2.0-rc.2.
  • A pre-release is refused if nothing has changed since the last one.

4. Release: the reviewed candidate gets the final number

When the task force approves the latest release candidate, click Make a release or pre-release and choose Release (citable, with DOI). There is no version to type: the latest candidate becomes the final version, 2.0-rc.2 → 2.0, exactly as reviewed.

  • Refused if the text changed after that candidate (“make a new pre-release first”), so the DOI always belongs to a reviewed text.
  • A DOI is reserved on Zenodo and a Zenodo draft is filled (PDF, title, version, date, editors, release notes; access closed for now). The GitHub release shows “DOI reserved: …”. Nothing public changes yet.
  • While ZENODO_TARGET is sandbox, this makes a test release 2.0-test.N on the Zenodo sandbox instead; it is not a version.

5. Publish: the DOI becomes permanent

Check the Zenodo draft (link in the run’s details) and the PDF on the GitHub release. If both are right, click Publish release (form empty = the release waiting to be published).

  • The DOI is minted on Zenodo and added to the release notes.
  • The website shows 2.0 with the green banner “Version 2.0 · released … · cite it with DOI …”; 1.0 stays available at All versions.
  • The preview is removed (its candidate is now the release); the Pre-release button disappears until the next pre-release.

If the draft is wrong instead: delete the draft on Zenodo and the release and its tag on GitHub, fix the text, and continue from step 3.

6. The next cycle

After 2.0 is published, the next export offers 2.1 (minor) or 3.0 (major). Accepted edits then count as 2.1-beta.1, 2.1-beta.2, …, the first pre-release becomes 2.1-rc.1, and its release 2.1. Beta and release-candidate numbers always start again at 1 for each new version.

Admin how-to: setting everything up

This is the complete setup, in order. Most of it is done once; the Maintenance part lists what recurs. When you are done — and whenever something does not work — click Check setup on the panel: its run’s details list every item as ✅ / ⚠️ / ❌ with what to fix.

You need

  • a GitHub account with Admin rights on this repository;
  • the Zenodo accounts (sandbox and production) that own the Vision’s records;
  • a Google account that will own the exported Docs (a free account is fine; IPBES.Vision@krugs.de at the moment);
  • for one step (the Google sign-in), a computer with Python 3 and the GitHub CLI signed in (gh auth login), in a copy of this repository.

1. GitHub settings

  1. Settings → Pages: Deploy from a branch, branch gh-pages, folder / (root).
  2. Settings → Actions → General → Workflow permissions: tick Allow GitHub Actions to create and approve pull requests (the import opens its review page this way). This is only possible once an owner of the IPBES-Data organisation has allowed it for the organisation: https://github.com/organizations/IPBES-Data/settings/actions → Workflow permissions → same box → Save.
  3. Settings → General → Pull Requests: Allow auto-merge (optional; lets a pull request merge itself once its check passes).
  4. Settings → Branches: main requires the status check build (“Check website and PDF build”), so nothing broken reaches the website.
  5. Settings → Collaborators: everyone who uses the panel needs Write access.

2. Zenodo

Zenodo has two separate systems: sandbox (sandbox.zenodo.org, for tests, DOIs 10.5072/…) and production (zenodo.org, real DOIs 10.5281/…). Each needs:

  1. A first record, published by hand, whose concept DOI (“all versions” DOI) goes into the frontmatter of IPBES_Data_Vision.qmd: zenodo.concept_doi (production; now 10.5281/zenodo.5513473, version 1.0) and zenodo.sandbox_concept_doi (now 10.5072/zenodo.472195). Releases create new versions of these records.

  2. A personal access token of the account that owns that record: Zenodo → your name (top right) → Applications → Personal access tokens → New token, scopes deposit:write and deposit:actions. The token is shown only once.

  3. Store the tokens as secrets (Settings → Secrets and variables → Actions → New repository secret, or on the command line, which asks for the value):

    gh secret set ZENODO_TOKEN            # production token
    gh secret set ZENODO_SANDBOX_TOKEN    # sandbox token
  4. Choose the target with the variable ZENODO_TARGET: sandbox while testing (releases become test releases 2.0-test.N, the website is never changed), production for real DOIs:

    gh variable set ZENODO_TARGET --body sandbox    # or: production

The access right and licence of new versions are in the frontmatter (zenodo.access_right, now closed; zenodo.license, cc-by-4.0, applied once access is open).

3. Google (free account is fine)

Import and export act as one Google account. They read any Doc that account can open; exports are new Docs owned by it. Signed in to the Google Cloud console with that account (German labels in brackets):

  1. Project: create one (e.g. “IPBES Vision”). No billing is needed.

  2. APIs (APIs & Services → Library): enable Google Drive API and Google Docs API (Aktivieren). The Docs API writes the “NEW VERSION” / “IMPORTED” notices; without it, everything else still works.

  3. Branding (Google Auth Platform → Branding): app name (“IPBES Vision”), support e-mail, developer contact e-mail, and — required before publishing — App home page https://ipbes-data.github.io/IPBES_Data_Vision/admin/, Privacy policy link https://ipbes-data.github.io/IPBES_Data_Vision/admin/#privacy, Authorized domain ipbes-data.github.io. Save (Speichern).

  4. Audience (Zielgruppe): user type External, then Publish app (App veröffentlichen) → the status must read In production (In Produktion). In Testing only listed test users can sign in and Google ends the sign-in after 7 days.

  5. Client (Clients → Create client): type Desktop app; download its JSON file (client_secret_….json). Keep it somewhere safe: it is needed again to renew the sign-in (or download it again from Clients).

  6. Sign in once, in a copy of this repository:

    python3 scripts/gdoc.py login ~/Downloads/client_secret_….json | gh secret set GOOGLE_OAUTH

    A browser opens: choose the Google account; on “Google hasn’t verified this app” (Google hat diese App nicht überprüft) click Advanced → Go to IPBES Vision (unsafe) (Erweitert → Zu IPBES Vision wechseln) — it is your own app — and allow Google Drive access. The browser then says “Signed in”, the terminal “✓ Set Actions secret GOOGLE_OAUTH”.

4. Optional variables

Variable Use
GDRIVE_FOLDER_ID Drive folder (link or ID) for new exports; default My Drive. Superseded exports move into a folder archive next to them.
GDOC_ID Doc (link or ID) to import when the import form is empty; normally not needed, because the latest exported Doc is used.

5. Check and first run

  1. Check setup on the panel; fix every ❌ (⚠️ are hints, e.g. “sandbox”).
  2. Export to Google Doc once (Target version e.g. 2.0), then Import from Google Doc without editing: it should report “No changes”, which confirms the round trip through Google.
  3. Optional full test on the sandbox: with ZENODO_TARGET=sandbox make a pre-release, a release (…-test.1) and publish it; check it on sandbox.zenodo.org. Then set ZENODO_TARGET to production.

Troubleshooting

Message Cause and fix
“Google Drive API has not been used in project … or it is disabled” Enable the Drive API (step 3.2), wait a few minutes.
“Google Docs API has not been used …” (warning) Enable the Docs API (step 3.2); exports still worked, but without notice on the old Doc.
At sign-in: “Access blocked … has not completed the Google verification process”, Error 403: access_denied The app is still in Testing: publish it (step 3.4).
Publish app is greyed out Branding is incomplete: home page, privacy link and authorized domain (step 3.3).
“The Google sign-in has expired or was revoked” / invalid_grant Repeat step 3.6 (happens after 6 months without use, a password-related revocation, or removing the app’s access in the Google account).
Import: “The front matter of the Google Doc needs fixing” Fix the listed rows in the Doc’s tables (see How the Google Doc must be laid out) and import again.
Release: “There is no release candidate …”, “The text has changed since …”, “Nothing has changed since …” The version rules at work: make a pre-release first, or a new one.
“The version must be 2.1 (minor change) or 3.0 (major change)” Only the next minor or major is allowed as Target version.
Check setup: “Token accepted, but its account does not own …” The Zenodo token belongs to another account than the record: create it in the owning account.
Import: the review page is not opened; “GitHub Actions is not permitted to create or approve pull requests” Step 1.2 (organisation setting first, then the repository’s).
A pull request stays open although its check is green Auto-merge sometimes does not fire: click Merge on the pull request.
All versions shows “HTTP 403” under pre-releases GitHub’s limit of 60 requests per hour per visitor; it clears within the hour.

Maintenance

  • Before the real release: ZENODO_TARGET → production.
  • Zenodo tokens: when replaced or revoked, create a new one (step 2.2) and store it again (step 2.3).
  • Google sign-in: renew with step 3.6 when import/export report it expired.
  • People: give new admins Write access (step 1.5).
  • No longer used (can be deleted): the variables ZENODO_API_BASE and ZENODO_SANDBOX_API_BASE.

Without the panel (command line)

make preview                                                      # live preview while editing
make build                                                        # website + PDF as unreleased draft
make admin                                                        # this panel → _site/admin/index.html
python3 scripts/release.py prepare --prerelease --notes "a; b"    # pre-release build (no Zenodo)
python3 scripts/versions.py status                                # current versions
python3 scripts/check_setup.py                                    # setup check (needs the secrets in the environment)
export GOOGLE_OAUTH="$(python3 scripts/gdoc.py login client.json)"   # sign in for this shell
python3 scripts/gdoc.py import <doc link>

How the Google Doc must be laid out

Everything before the first heading is the front matter; the text of the Vision starts at the first Heading 1.

  • Document information table, two columns, one row per field: Title, Produced by, Publisher, Contact e-mail, Current version (information only), Target version. All but Current version are required and imported; only the second column is edited. Current version is the version of the text in the Doc (e.g. 2.0-beta.3); Target version is what the edits work towards (MAJOR.MINOR, e.g. 2.0).
  • Editors table with the columns Name | Institution | ORCID, one row per editor; add or delete rows as needed. Institution and ORCID may be empty; an ORCID may be given as number or as orcid.org link.
  • Anything else before the first heading (notes, Google’s table of contents) is ignored.
  • Section titles use Heading 1 (sub-sections Heading 2, …). Typed numbers such as “I.” or “2.1” in headings are removed; the website and PDF number sections themselves.
  • Suggestions must be accepted or rejected before importing; comments are not imported.

If a table is missing or a value is invalid, the import stops without changing anything and lists what to fix (shown under the failed run’s details).

An export writes exactly this layout, so the easiest start is to run Export to Google Doc once and edit the new Doc.

Privacy: Google sign-in “IPBES Vision”

The Google sign-in “IPBES Vision” is used only by the automated tasks of this repository (Import from Google Doc, Export to Google Doc) to move the text of the IPBES Data Management Vision between this repository and Google Docs in the Google Drive of the account that signed in.

  • What is accessed: the import opens only the Google Doc it is given and reads its content; the export creates a new Google Doc. No other files are opened, changed or deleted.
  • What is stored: the imported text and bibliographic information are stored in this public repository, because they are the content of the Vision. Nothing else from Google, and no personal data of Google users, is stored, shared or sold.
  • Where the sign-in is kept: as an encrypted secret of this GitHub repository, used only by these tasks.
  • Withdrawing access: at any time at https://myaccount.google.com/permissions (remove “IPBES Vision”); import and export then stop working until someone signs in again.
  • Contact: IPBES.Vision@krugs.de