Skip to content

feat(docs): add html export format for Google Docs#141

Closed
in-liberty420 wants to merge 1 commit intoopenclaw:mainfrom
in-liberty420:feat/docs-html-export
Closed

feat(docs): add html export format for Google Docs#141
in-liberty420 wants to merge 1 commit intoopenclaw:mainfrom
in-liberty420:feat/docs-html-export

Conversation

@in-liberty420
Copy link
Copy Markdown

Summary

Adds HTML as an export format option for Google Docs, enabling direct export to text/html.

Use Case

Useful for web workflows and document processing pipelines where HTML is needed as an intermediate format (e.g., programmatic document manipulation before converting to PDF).

Changes

  • Add mimeHTML and extHTML constants
  • Add html case in driveExportMimeTypeForFormat for Google Docs
  • Add mimeHTML case in driveExportExtension
  • Update help text in docs export and drive download commands

Usage

gog docs export <docId> --format html --out document.html
gog drive download <fileId> --format html

Testing

  • Built and verified help text shows pdf|docx|txt|html
  • Format correctly maps to text/html MIME type and .html extension

Adds HTML as an export format option for Google Docs, enabling
direct export to text/html for web workflows and document processing.

Changes:
- Add mimeHTML and extHTML constants
- Add html case in driveExportMimeTypeForFormat for Google Docs
- Add mimeHTML case in driveExportExtension
- Update help text in docs export and drive download commands
@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 8, 2026

Closing after direct land on main in ffd8cd4; PR head repo is no longer available for a normal merge update.

@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 8, 2026

Landed directly on main from a current-main port.

  • Gate: make ci
  • Land commit: ffd8cd41217d71283d95d496b5228b90f6b460de
  • Note: PR head repo is no longer available, so the rebased branch could not be pushed back for a normal PR merge.

Thanks @in-liberty420!

@steipete steipete closed this Mar 8, 2026
klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants