Docs: Setup Guide
status: in-progress
Setting up the Prisma Collective Docs system allows you to contribute to knowledge, edit content collaboratively, and maintain up-to-date documentation for your community.
Why Use This Setup?
- Version Control: Track all changes to documentation with Git
- Collaborative Editing: Work with others using GitHub
- Rich Editing: Use Obsidian’s powerful markdown editor
- Auto-Sync: Automatically commit and push changes
- Local Preview: See your changes before publishing
Prerequisites
Before you begin, ensure you have:
- A computer running macOS or Windows
- Admin access to install software
- GitHub account with access to the docs repository
- Internet connection
Installation Guide
Step 1: Install Git
Git is the version control system that tracks changes to your documentation.
macOS
Option A: Using Homebrew (Recommended)
- Install Homebrew if you don’t have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Install Git:
brew install git- Verify installation:
git --versionStep 2: Configure Git
Configure your Git identity and authentication for the private repository.
Set Your Username and Email
Open Terminal (macOS) or Git Bash (Windows) and run:
# Set your name (use your real name for commit attribution)
git config --global user.name "Your Full Name"
# Set your email (use the email associated with your GitHub account)
git config --global user.email "your.email@example.com"
# Verify your configuration
git config --global --listSet Up GitHub Authentication
Since the docs repository is private, you need to authenticate with GitHub.
Using Personal Access Token (PAT) - Recommended
-
Create a Personal Access Token:
- Visit github.com/settings/tokens
- Click “Generate new token” then “Generate new token (classic)”
- Give it a descriptive name: “Prisma Docs Access”
- Set expiration (recommend: 90 days or No expiration)
- Select scopes:
- Check
repo(Full control of private repositories) - Check
workflow(if you need to run GitHub Actions)
- Check
- Click “Generate token”
- Copy the token immediately (you won’t see it again!)
-
Configure Git to use the token:
macOS
Using Git Credential Manager
# Install Git Credential Manager (via Homebrew)
brew install --cask git-credential-manager
# It will automatically store credentials securely in KeychainWhen you clone the repository (next step), you’ll be prompted to enter:
- Username: Your GitHub username
- Password: Paste your Personal Access Token (not your GitHub password)
The credentials will be saved automatically.
Step 3: Clone the Documentation Repository
Navigate to where you want to store the docs and clone the repository:
# Navigate to your desired location
cd ~/Documents # macOS
# or
cd /c/Users/YourUsername/Documents # Windows Git Bash
# Clone the repository (using HTTPS with PAT)
git clone https://github.com/[Your Organization Name]/docs.git
# Navigate into the repository
cd docs
# Verify you're in the right place
git statusYou should see:
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree cleanStep 4: Install Obsidian
Obsidian is a powerful markdown editor that we use for editing documentation.
macOS
Option A: Download from Website
- Visit obsidian.md
- Click “Download for macOS”
- Open the downloaded .dmg file
- Drag Obsidian to Applications folder
- Open Obsidian from Applications
Step 5: Open Docs Repository as Obsidian Vault
Connect Obsidian to your cloned documentation repository.
-
Launch Obsidian
-
Open folder as vault:
- Click “Open folder as vault” (or “Open” if you’ve used Obsidian before)
- Navigate to your cloned docs repository
- Select the root folder of the repository (the
docsfolder you cloned) - Click “Open”
Example path: ~/Documents/docs or C:\Users\YourName\Documents\docs
-
Trust the vault:
- Obsidian may show a security prompt
- Click “Trust author and enable plugins” (since you’re working with official Prisma docs)
Step 6: Install Obsidian Git Plugin
Set up automatic Git commits and syncing.
-
Open Settings:
- Click the gear icon in the bottom-left corner
- Or use keyboard shortcut:
Cmd + ,(macOS) orCtrl + ,(Windows)
-
Enable Community Plugins:
- Go to “Community plugins” in the left sidebar
- Click “Turn on community plugins”
- Click “Browse” to open the plugin marketplace
-
Install Obsidian Git:
- Search for “Obsidian Git”
- Click on “Obsidian Git” by Vinzent (Denis Olehov)
- Click “Install”
- After installation, click “Enable”
-
Configure Obsidian Git:
- Go back to Settings then Community plugins
- Find “Obsidian Git” in the installed plugins list
- Click the gear icon next to it to configure
Recommended Settings:
Vault backup interval (minutes): 1 Auto pull interval (minutes): 1 Commit message: vault backup: {{date}} Pull updates on startup: ON Push on backup: ONDetailed Configuration:
- Vault backup interval:
1(auto-commit every 1 minute) - Auto pull interval:
1(check for updates every 1 minute) - Commit message:
vault backup: {{date}}(or customize) - Date placeholder format:
YYYY-MM-DD HH:mm:ss - Pull updates on startup: Enabled
- Push on backup: Enabled
- Disable notifications: Your preference
- Show status bar: Enabled (helpful to see sync status)
-
Save settings and close the settings panel
Step 7: Make Your First Commit
Test your setup by making your first commit.
Using Obsidian
Using Obsidian Git Plugin
-
Make a test edit:
- Open any markdown file (or create a test file)
- Make a small change (add a space, edit a word)
- Save the file (
Cmd + SorCtrl + S)
-
Commit using Command Palette:
- Open Command Palette:
Cmd + P(macOS) orCtrl + P(Windows) - Type “Obsidian Git: Commit all changes”
- Press Enter
- Enter your commit message in the prompt:
docs: test commit from Obsidian - Press Enter to confirm
- Open Command Palette:
-
Push to GitHub:
- Open Command Palette again:
Cmd + PorCtrl + P - Type “Obsidian Git: Push”
- Press Enter
- Check the status bar (bottom-right) for confirmation
- Open Command Palette again:
-
Verify on GitHub:
- Visit your repository on GitHub
- You should see your commit in the commit history
Alternative: Wait for Auto-Commit
- With your settings, Obsidian will auto-commit and push every minute
- Make an edit, save it, and wait 1 minute
- Check the status bar for sync confirmation
Workflow: Editing Documentation
Now that everything is set up, here’s your typical workflow:
Daily Editing Process
- Open Obsidian (it will auto-pull latest changes on startup)
- Navigate to content using file explorer or search (
Cmd/Ctrl + O) - Edit markdown files as needed
- Save your changes (
Cmd/Ctrl + S) - Wait for auto-commit (every 60 seconds) or manually commit:
Cmd/Ctrl + Pthen “Obsidian Git: Commit all changes”
- Auto-push happens automatically with commits
- Close Obsidian when done
Best Practices
Do:
- Pull updates before starting work (auto-handled if configured)
- Write clear, descriptive commit messages
- Commit frequently (or let auto-commit handle it)
- Check the status bar to confirm syncs
- Review your changes before committing
Don’t:
- Force push (
git push --force) - it can overwrite others’ work - Commit sensitive information (API keys, passwords)
- Edit files directly on GitHub (conflicts with local changes)
- Ignore merge conflicts (resolve them promptly)
Commit Message Conventions
Use semantic commit messages, the description of your git commits should be direct and short.
Examples:
docs: add propagate installation guide
docs: update enrolment process
fix: correct typo in case study
feat: add new tutorial sectionFormat Examples: type: description
Types:
docs: Documentation changesfeat: New feature/sectionfix: Bug fixes, typosrefactor: Restructuring content
Troubleshooting
Authentication Problems
Issue: “Authentication failed” when pushing
Solutions:
-
Verify your token hasn’t expired:
- Go to github.com/settings/tokens
- Check token expiration
- Generate new token if needed
-
Update stored credentials:
# macOS - Remove and re-add git credential-osxkeychain erase # Type: host=github.com # Press Enter twice # Windows - Open Credential Manager # Control Panel then Credential Manager then Windows Credentials # Remove GitHub entries # Next push will prompt for new credentials -
Test authentication:
git pull origin main # Should not ask for credentials if configured correctly
Sync Errors
Issue: “Merge conflict” detected
Solutions:
-
Using Obsidian Git:
Cmd/Ctrl + Pthen “Obsidian Git: Pull”- If conflicts occur, open Terminal
-
Resolve in Terminal:
cd ~/Documents/docs # See conflicted files git status # Open conflicted file in editor # Look for conflict markers: # <<<<<<< HEAD # Your changes # ======= # Their changes # >>>>>>> branch # Edit to resolve, remove markers # Then: git add . git commit -m "docs: resolve merge conflict" git push origin main -
Prevent conflicts:
- Always pull before editing
- Use auto-pull in Obsidian Git settings
- Communicate with team about major edits
Issue: “Your branch is behind ‘origin/main’”
Solution:
git pull origin main
# Or in Obsidian: Cmd/Ctrl + P then "Obsidian Git: Pull"Issue: Changes not pushing automatically
Solutions:
-
Check Obsidian Git settings:
- “Push on backup” should be enabled
- Check status bar for error messages
-
Manually push:
Cmd/Ctrl + Pthen “Obsidian Git: Push”
-
Check network connection
-
Verify authentication (see Authentication section above)
Obsidian Issues
Issue: Obsidian Git plugin not working
Solutions:
-
Verify plugin is enabled:
- Settings then Community plugins
- Find “Obsidian Git” and ensure it’s enabled
-
Check Git is installed and in PATH:
git --version # Should show version number -
Restart Obsidian
-
Reinstall plugin:
- Settings then Community plugins
- Uninstall Obsidian Git
- Reinstall and enable
Issue: Files not showing in Obsidian
Solutions:
- Check if files are in correct location (under
content/) - Refresh file explorer (right-click then Refresh)
- Check file extensions (.md) (Some files have javascript code (.mdx), these Base example docs can ignored)
Next Steps
Now that your documentation environment is set up:
-
Explore the documentation structure:
- Browse content
-
Start contributing:
- Fix typos you find
- Add missing documentation
- Update outdated information
- Create new tutorials
-
Join the community:
- Share your setup experience
- Help others with installation
-
Learn Markdown/MDX:
- Markdown Guide
- MDX Documentation (For coders)
- Review existing content for examples
Resources
Official Documentation
Video Tutorials
Summary
You now have a complete documentation workflow:
- Git installed and configured
- GitHub authentication set up
- Repository cloned locally
- Obsidian installed and connected
- Auto-commit and sync enabled
- First commit completed
Your workflow is now:
- Open Obsidian (auto-pulls latest changes)
- Edit documentation
- Save (auto-commits and pushes every 60 seconds)
- Continue editing with confidence
Happy documenting!