Help us shape the future of Go! Take the 2026 Go Developer Survey

gslidev

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 9 Imported by: 0

README

gslidev

gslidev renders a Slidev presentation and synchronizes it to Google Slides as images.

Usage

gslidev slides.md
gslidev slides.md --presentation-id PRESENTATION_ID

If --presentation-id is omitted, a new Google Slides presentation is created. If it is supplied, the target presentation's existing slides are replaced.

The title and target IDs can also be stored in Slidev's headmatter:

---
title: My presentation
gslidev:
  presentationID: PRESENTATION_ID
  folderID: DRIVE_FOLDER_ID
---

The following options are available:

--presentation-id  Google Slides presentation ID
--title            title for a newly created presentation
--folder-id        Drive folder for the presentation and temporary images
--profile          OAuth credentials profile
--chrome-path      path to Chrome or Chromium
--slidev-path      path to the slidev executable
--verbose          enable debug logging

Google OAuth setup

Create a Google Cloud OAuth client of type Desktop app, enable Google Slides API and Google Drive API, and save the downloaded credentials as:

${XDG_DATA_HOME:-~/.local/share}/gslidev/credentials.json

If ${XDG_DATA_HOME:-~/.local/share}/deck/credentials.json already exists, it is used as a fallback so an existing deck setup can be reused.

The first execution opens the browser for authorization. The refresh token is stored under:

${XDG_STATE_HOME:-~/.local/state}/gslidev/token.json

For non-interactive runs, GSLIDEV_ACCESS_TOKEN can be supplied instead.

Media behavior

  • Each slide is captured from Slidev and inserted as a full-slide PNG.
  • GIF elements are hidden only while capturing, then the original GIF is inserted at its original position.
  • Video elements are hidden while capturing and are not inserted; they can be added manually in Google Slides.
  • HTML comments at the end of each Slidev slide are copied to the Google Slides speaker notes.

Development

task check

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL