Skip to content

Recognize .md files in theme roots as templates - #24

Open
tomas wants to merge 1 commit into
masterfrom
support-md-theme-root-files
Open

Recognize .md files in theme roots as templates#24
tomas wants to merge 1 commit into
masterfrom
support-md-theme-root-files

Conversation

@tomas

@tomas tomas commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • The API recently added support for .md files at the theme root, alongside .json/.yml.
  • FSTheme classified root files by extension via TEMPLATE_PATTERNS/TEMPLATE_PATH_REGEX, which didn't include .md, so local .md files at a theme root were silently ignored by pull/push/sync/watch.
  • Added .md to both the glob patterns and the path regex used for classification.

Test plan

  • bundle exec rspec spec/themes/fs_theme_spec.rb — added a fixture readme.md and a dedicated test asserting .md root files are recognized as templates.
  • bundle exec rspec spec/themes/{fs_theme,mem_theme,missing_items_theme,updated_theme}_spec.rb — all pass.

🤖 Generated with Claude Code

The API now accepts .md files alongside .json/.yml at the theme root; teach FSTheme to classify them as templates so pull/push/sync/watch pick them up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant