Editing Documents
How to edit and update documents in ArchDoc
Editing Documents
Learn how to edit documents using ArchDoc's powerful editor.
Accessing a Document
- Navigate to Dashboard > Documents
- Click on a document title to open it
- The document opens in view mode
- Click the Edit button in the top-right to switch to edit mode
Editor Modes
View Mode
- Read-only view of the document
- See formatted content with all rich text elements rendered
- View sign-off status, linked PRs, and comments
- See document revision history
Edit Mode
When you click Edit, the header switches to show:
- Edit / Preview toggle — switch between the TipTap rich editor and a Markdown preview of the content
- Cancel button — discards unsaved changes and restores the last saved state
- Save button — persists changes to the server
Saving Changes
Local Cache
- Content is automatically cached in
localStorageas you type - Prevents data loss from browser crashes or accidental navigation
- Cache is keyed to the document slug and expires after 24 hours
- The cache is cleared automatically after a successful save
Manual Save
- Click the Save button in the toolbar
- A revision is created and stored in version history
Cancelling Changes
- Click Cancel to discard all unsaved edits
- The editor reverts to the last saved content from the server
- The local cache for this document is also cleared
Document Metadata
Changing the Title
- Click Edit to enter edit mode
- Edit the title field at the top of the editor
- Click Save to persist the new title
Changing the title updates the document slug/URL. Existing links to the old URL will no longer work.
Changing the Category
- In the document view (outside edit mode), find the category dropdown
- Select:
- In Progress: Still being drafted
- Accepted: Approved and final
- Closed: No longer active
- The status change is saved immediately without needing to click Save
Document Type
Document type cannot be changed after creation. If needed, create a new document of the correct type and copy the content.
Version History
Every save creates a revision. The Revisions tab in the document view lets you browse and restore previous versions.
Browsing Revisions
- Open the document and switch to the Revisions tab
- The left pane lists every revision with its version number, timestamp, and the user who created it (newest first)
- Click a revision to load its full content into the right-hand preview pane
Previewing a Revision
- The right pane renders the selected revision as Markdown, so you can read it exactly as it was at that point in time
- Revision metadata (author and timestamp) is shown above the preview
- The current document is not modified by previewing — it's safe to click around
Restoring a Revision
- Open the revision you want to restore in the preview pane
- Click Restore this version
- Confirm the action in the dialog
When you restore, ArchDoc:
- Snapshots the document's current state as a new revision first, so the restore itself is reversible
- Overwrites the document with the selected revision's title and content
- Clears the local editor cache so the editor picks up the restored content on next mount
A document_revision_restored entry is written to the activity log for audit purposes.
Version history retention depends on your plan:
- Free: 7 days
- Base: 30 days
- Premium: Unlimited
Linked GitHub Content
Documents can display linked pull requests and commits:
- Linked PRs — shown in the document sidebar with PR number, title, and state
- Linked Commits — shown with the commit SHA and message
These links are created automatically when GitHub integration is configured and documents are synced.
Collaboration
Real-time Editing
When your organization has the collaboration server connected:
- See other users' cursors and avatars in the document header
- Changes from other users sync in real-time
- Collaboration is automatic — just open a document
Seeing Who's Editing
- Avatar circles appear in the document header for each connected user
- Each collaborator is shown with a unique color
- Up to 5 avatars are shown; additional users are shown as a "+N" count
See Collaboration for details.
Comments
Add feedback without editing content:
Adding Comments
- Select text in the document
- Click the Comment button
- Write your comment
- Submit
Viewing Comments
- Comments appear in the sidebar
- Click to jump to the relevant text
- Reply to create threads
Resolving Comments
- Click Resolve when addressed
- Resolved comments are hidden by default
Permissions
| Action | Admin | Member |
|---|---|---|
| Edit own documents | ✅ | ✅ |
| Edit others' documents | ✅ | ✅ |
| Delete documents | ✅ | Own only |
| Change category | ✅ | ✅ |
Best Practices
Write Clear Commit Messages
When saving, consider the change you made:
- Did you restructure content?
- Did you add a new section?
- Did you fix errors?
Use Draft Mode
Keep documents as "In Progress" until ready:
- Iterate freely
- Gather feedback
- Polish before accepting
Coordinate with Collaborators
When multiple people edit:
- Communicate who's working on what
- Use comments for discussion
- Review each other's changes
Regular Saves
Even with auto-save:
- Save before leaving
- Save after major changes
- Save before requesting sign-offs
Keyboard Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Save | Ctrl + S | Cmd + S |
| Bold | Ctrl + B | Cmd + B |
| Italic | Ctrl + I | Cmd + I |
| Undo | Ctrl + Z | Cmd + Z |
| Redo | Ctrl + Y | Cmd + Shift + Z |
See Editor Features for more shortcuts.