The project is in a healthy, maintained state
A Markdown compiler, two site themes, and a CLI with prebuilt frontend assets.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.5
= 2.10.0
= 4.4.1
~> 3.10
~> 1.18
~> 1.9
 Project Readme

jekyll-obsidian

English | 简体中文

Turn a Markdown folder or Obsidian vault into a blog or documentation site. Keep writing in your editor and push to GitHub; Actions builds and publishes the site using the jekyll-obsidian-site Ruby gem.

Live preview: sinputer.top/jekyll-obsidian

Choose a built-in theme:

  • minimal (default): an authored home page, recent posts, a blog, documentation, and project portfolios or custom sections.
  • docs: a document tree with previous and next links.

Both themes include search, wiki-link previews, page outlines, note relations, and interactive graphs. They support media embeds, translations, and GitHub Discussions comments, with canonical metadata, a sitemap, and Markdown downloads.

Publish with GitHub Pages

The workflow installs the build tools, so you do not need Ruby or Node.js locally. Public repositories can use GitHub Pages on GitHub Free.

Publication settings control the generated site, not access to committed files. Anyone who can read the repository can read unpublished notes too. Keep private material out of public repositories, and inspect linked Canvas and Bases files before publishing them as downloads.

Already have a Gemfile? Follow Host Integration first: the Action requires both Gemfile and Gemfile.lock, with the builder version matching the Action release.

  1. Create .github/jekyll-obsidian.yml using the example configuration:
title: My Site
website:
  source: docs
  theme: minimal
  1. Copy the Pages workflow to .github/workflows/pages.yml.
  2. Create docs/index.md:
---
publish: true
title: Welcome
---

# Welcome

My first public note.
  1. Select Settings > Pages > Build and deployment > Source > GitHub Actions, then commit and push to the default branch.

After Build and deploy Pages succeeds, find the URL in the deploy job or Settings > Pages. Project sites normally use https://<owner>.github.io/<repository>/; repositories named <owner>.github.io use the domain root. The workflow also reads custom-domain settings automatically. See Deployment.

Configure and update

Edit .github/jekyll-obsidian.yml. Site identity fields (title, description, lang, url, baseurl) belong at the YAML root; content, theme, and feature settings belong under website. Set website.source to a repository-relative content directory and website.theme to minimal or docs. Changes take effect on the next build.

By default, only notes whose frontmatter has the YAML boolean publish: true enter the site. To publish folders recursively, list content-relative paths under website.content.publish_by_default; . selects the whole content tree. Use publish: false to exclude a note. Quoted strings such as "true" are not booleans. Obsidian's .obsidian/ and .trash/ directories are excluded.

A home page is optional: without one, the site can open a section or another public note. At least one public note is required. See Publishing content for index selection and navigation.

Switching themes preserves the URLs of notes that remain published. For multilingual sites, set website.i18n.enabled: true explicitly to keep translations enabled across theme changes. See Localization.

See theme defaults for feature, localization, and comment settings.

To upgrade, change the Action release in the workflow. If you use Bundler, update the Gemfile constraint to the same version, run bundle update jekyll-obsidian-site, and commit both dependency files with the workflow. For a standalone local installation, run gem update jekyll-obsidian-site.

Optional local preview

With Ruby 4.0.x on macOS, Linux, or WSL, run from your repository root:

gem install jekyll-obsidian-site
jekyll-obsidian dev

Open http://127.0.0.1:58000/. Content and configuration changes trigger a rebuild; failures preserve the last successful site. Run jekyll-obsidian dev --help for host, port, base path, and theme options. The gem includes frontend assets, so Node.js is not required.

To create the configuration and workflow locally, run jekyll-obsidian init --source docs. It adds a public welcome note only when the content directory is absent or empty, and reports conflicting files without overwriting them. For Bundler commands, see Host Integration.

For another host, run jekyll-obsidian build --url https://example.com --baseurl /project and upload .jekyll-obsidian-cache/site/. jekyll-obsidian clean removes this project's cache and output.

Guides and contributing

  • Host Integration: installation, Bundler, and upgrades.
  • Getting Started: publishing and authoring.
  • Syntax: Obsidian-flavored Markdown and media embeds.
  • Publishing content: publication rules, note properties, recommendations, and trusted HTML slides.
  • Reading and navigation: header navigation, search, reading-time hints, graphs, and previews.
  • Customization: site identity, themes, navigation, footer links, and output limits.
  • Archives and favorites: archive tabs, filters, inline reading, Markdown exports, and saved articles.
  • Portfolio: project collections and public GitHub Markdown bodies.
  • Analytics: optional Cloudflare or Google traffic measurement.
  • Comments: GitHub Discussions setup and privacy.
  • Localization: translations, fallback pages, and SEO.
  • Deployment: hosting, URL paths, and custom domains.

For development setup and native Windows PowerShell commands, read the Developer Guide. On macOS, Linux, or WSL, run website/bin/test from the repository root. It builds frontend assets and packages the gem before running the Ruby, TypeScript, frontend, and Node checks. If running Ruby tests separately from website/, first run pnpm run build and bundle exec ruby scripts/package.rb --skip-assets, then bundle exec rake test; the suite tests an actual installed gem.

License

MIT