A container-bound Google Apps Script that provides wiki-like features in a multi-tab Google Doc.
Provides a list of backlinks (other tabs that link to the current tab) in the sidebar, and maintains a synchronized list of backlinks on any line in the Doc that starts with [[backlinks]].
The generated line uses the format
[[backlinks]] Example, Example 2 (auto-updated by SocDoc Scripts on 2026-9-10), with each source-tab title as a Google Docs link. Generated content is excluded from indexing. Leading whitespace and other text on that line are overwritten, and lines that are already accurate or differing only in date are untouched.
Colors internal links to nonexistent tabs red (ignoring external hyperlinks), and provides a global list of broken links in the sidebar.
Features such as backlink generation and broken link detection run when triggered through the menu bar or sidebar. Through installable triggers, they also run periodically and whenever the document is opened. Automatic document sync can be managed from the menu or sidebar.
Quickly jump to Google Docs tabs by title from the sidebar.
Any tab containing [[public]] is available through the Apps Script Web App. The public link is added after [[public]] in the doc.
Internal links between published tabs point to their published pages, while unpublished tabs are never exposed. Published URLs contain both the tab title and stable tab ID; requests resolve the ID first and title as a fallback. The line in the doc containing
[[public]]is replaced to have the format[[public]] Published through SocDoc Scripts at <link>as part of the document sync process.
- Prerequisites: Node.js and
pnpm - Create a Google Apps Script bound to your target Doc by going to
Extensions > Apps Scriptin the Google Docs menu. Find the id in the URL of the Apps Script editor that opens - Create
.clasp.jsonbased on.clasp.json.exampleand the Apps Script id from above pnpm installpnpm clasp loginpnpm clasp pushpnpm clasp deploy- Open or reload the target Doc. Run
SocDoc Scripts > Sync documentfrom the menu. Grant all requested permissions. - Also run
SocDoc Scripts > Install automatic sync - In the Apps Script editor, go to
Deploy > Manage Deploymentsand copy the web app URL. Paste it as the value forPUBLISHING_WEBAPP_URLinProject Settings > Script Properties
Development documentation is available in dev-docs
- Container-bound Google Apps Script
- clasp
- React
- Typescript
- pnpm
Maintains simple "category" pages