Home

Site Layout EditOn Component

Edit on cloud service (Google Docs or Microsoft 365)

Displays a link to edit the current page on Google Docs or Microsoft 365 via Stencila Cloud. Only renders if workspace.id is configured, e.g.

# Edit on cloud service
[site.layout.footer]
end = "edit-on:gdocs"  # Edit on Google Docs
# or
end = "edit-on:m365"   # Edit on Microsoft 365

# With custom text:
end = { type = "edit-on", service = "gdocs", text = "Open in Google Docs" }

service

Type: EditOnService

Cloud service to edit on (gdocs or m365)

ValueDescription
gdocsGoogle Docs
m365Microsoft 365

text

Type: string (optional)

Custom link text

Default: "Edit on Google Docs" or "Edit on Microsoft 365"

style

Type: EditSourceStyle (optional)

Display style

Default: both

ValueDescription
iconPencil/edit icon only
textText only
bothIcon and text (default)

This documentation was generated from layout/components.rs by generate.rs.

© 2026 Stencila