Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SocDoc Scripts

A container-bound Google Apps Script that provides wiki-like features in a multi-tab Google Doc.

Features

Backlinks

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.

Broken Link Detection

Colors internal links to nonexistent tabs red (ignoring external hyperlinks), and provides a global list of broken links in the sidebar.

Periodic Document Sync

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.

Tab search

Quickly jump to Google Docs tabs by title from the sidebar.

Selective Publishing

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.

Installation

  1. Prerequisites: Node.js and pnpm
  2. Create a Google Apps Script bound to your target Doc by going to Extensions > Apps Script in the Google Docs menu. Find the id in the URL of the Apps Script editor that opens
  3. Create .clasp.json based on .clasp.json.example and the Apps Script id from above
  4. pnpm install
  5. pnpm clasp login
  6. pnpm clasp push
  7. pnpm clasp deploy
  8. Open or reload the target Doc. Run SocDoc Scripts > Sync document from the menu. Grant all requested permissions.
  9. Also run SocDoc Scripts > Install automatic sync
  10. In the Apps Script editor, go to Deploy > Manage Deployments and copy the web app URL. Paste it as the value for PUBLISHING_WEBAPP_URL in Project Settings > Script Properties

Development

Development documentation is available in dev-docs

Tech Stack

  • Container-bound Google Apps Script
  • clasp
  • React
  • Typescript
  • pnpm

Potential Future Features

Index Page Generation

Maintains simple "category" pages

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages