Introduction
In our pursuit of the “All in AI” philosophy, the process of internalizing and producing knowledge shouldn’t be hindered by complex toolchains. By deeply integrating Obsidian with the chenfu.ai project, I have successfully achieved a seamless “edit-to-publish” experience. By incorporating AI-assisted analysis, every note I take now resonates with my historical technical expertise.
Phase 1: Basic Connection and Path Optimization
First, we set up Obsidian as the dedicated editor for the Hugo project, linking local files directly to the Vault.
- Open Project: Launch Obsidian and select
Open folder as vault. - Path Configuration: Navigate to the local project path
/Users/chenfu/Labs/chenfu.ai. - Optimize Directory View:
- Primary Creation Zone:
content/posts/(Blog posts). - Core Pages:
content/(About, Projects, etc.).
- Primary Creation Zone:
Phase 2: Git Integration for Automated Publishing
To achieve a “write-and-publish” workflow, we use the Obsidian Git plugin to connect the editor with GitHub.
- Install Plugin: Search for and install Obsidian Git (by Vinzent03) in
Community plugins. - Sync Settings:
- Manual Trigger (Recommended): Use the shortcut
Cmd + Pand typeGit: Pushto send updates to GitHub. - Automated Backup: You can set a
Vault backup interval(e.g., every 60 minutes) for automatic synchronization.
- Manual Trigger (Recommended): Use the shortcut
- Deployment Flow: Once the push is successful, Cloudflare Pages automatically detects the update and completes the deployment within 3 minutes.
Phase 3: AI Enhancement—Activating the Digital Twin
This is the core of AI-ifying our knowledge system: using Smart Connections to enable notes to “talk” across different time periods.
- Embedding: The plugin reads all historical articles and notes, building a vector model of your personal knowledge base.
- Smart Correlation: While writing, a side window automatically suggests: “In your 2018 notes, you mentioned a similar technical logic…”
- Knowledge Q&A: You can directly ask the AI: “Based on my past records, what are my core values regarding the integration of embedded systems and AI?”
Phase 4: Hugo Writing Templatization
To avoid the hassle of manually writing Frontmatter (YAML), standardized templates are pre-configured in the project:
- Template Path:
doc/templates/in the project directory. - Quick Recall:
- Configure the template path in Obsidian settings to point to this folder.
- When creating a new post, use
Templates: Insert templateto call uphugo-post-template.
- Default Logic:
git-settings.jsonis configured with the Commit message format to ensure a clean Git history.
Phase 5: Social Interaction (Giscus)
To increase engagement, the site integrates a comment system based on GitHub Discussions:
- Comment Management: All comment data is synchronized with Discussions in the GitHub Repo, allowing for direct management via the GitHub web interface.
- Feature Highlights: Supports reactions (+1/-1) and a multi-language interface.
- Checkpoint: Ensure the
Discussionsfeature is enabled in the GitHub Repository’sGeneralsettings.
💡 Daily Workflow Summary
- Capture Inspiration: Open Obsidian and use the template to quickly create a new article.
- AI Assistance: Use Smart Connections to link technical and management insights from over 14 years.
- Write and Preview: Write in Markdown (images are stored in
static/img/, with reference paths as/img/xxx.png). - One-Click Publish:
Cmd + P>Git: Commit-and-sync. - Live Instantly: Wait 3 minutes, and
chenfu.aiis automatically updated.
Conclusion
Combining writing tools with publishing channels not only lowers the barrier to sharing but, more importantly, allows me to engage in a “technical dialogue with my past self” via AI plugins. This is not just a blog; it is an extension of my personal digital brainpower.
Comments & Feedback