Dokki Docs logo

Import and Export

Your content is not locked in. Dokki supports document export from the editor and Google Drive import through workspace connections.

Visual guide

Export formats

The document export dialog supports five formats:

  • PDF — rendered from document content, with an embedded CJK font loaded lazily for better Chinese/Japanese/Korean output.

  • Markdown — plain text with Markdown formatting where possible.

  • Text — plain text without formatting.

  • Word Document (.docx) — Microsoft Word format generated from document structure.

  • Image (.jpg) — captures the visible editor content as a JPEG image. This option needs the document editor to be open in the browser.

Export source

When the editor is available, export uses the live editor content. When the editor is not available, Dokki falls back to the persisted document JSON and resource title where possible.

Import from Google Drive

The current import UI and API support Google Drive connections. Notion and SharePoint appear as tabs in the import dialog, but they are marked coming soon and the generic import endpoint rejects providers other than gdrive.

After a workspace admin connects Google Drive, admins and editors can choose files with the Google picker and enqueue import jobs into the selected folder.

What gets created

Each selected Google Drive item becomes one sync_connections job and, after the worker runs, one Dokki resource:

  • Google Docs are exported as Markdown and upserted as native Dokki documents.

  • Google Sheets are exported as CSV and stored as file resources.

  • Google Slides are exported as PDF and stored as file resources.

  • Other Drive files are downloaded and stored as file resources when they fit the configured file-size limit.

File imports land in workspace storage under an imports path and are eligible for file indexing. Re-imported or synced file resources overwrite the stored object and mark indexing pending again.

One-time import versus sync

  • One-time import queues a job that runs once and then remains done.

  • Sync mode queues the same import but keeps the job due again on the worker's sync interval.

  • Sync is one-way: external source to Dokki copy. Editing the Dokki copy does not write changes back to Google Drive.

  • A sync job skips work when Google Drive reports the same modified timestamp as the last successful run.

The connection must belong to the same workspace, must be a Google Drive connection, and must still be authorized. Imports require an admin or editor role in the destination workspace.

Workspace-to-workspace sync

Dokki also has an internal workspace sync adapter used when copied resources are kept refreshed from their original source. This is separate from external Google Drive import, but it follows the same one-way source-to-copy model.

Current limits

  • Google Drive is the only external import provider currently available end to end.

  • Notion and SharePoint adapters are scaffolded but not implemented.

  • Import is asynchronous; resources appear after the sync worker claims and finishes the queued job.

  • Export is document-focused. Tables, artifacts, and files have their own interaction surfaces.

  • Image export depends on browser rendering and may require the editor content to be visible.

Import and Export | Dokki Docs