{"action":"created","issue":{"url":"https://api.github.com/repos/ashmaroli/jekyll-data/issues/7","repository_url":"https://api.github.com/repos/ashmaroli/jekyll-data","labels_url":"https://api.github.com/repos/ashmaroli/jekyll-data/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ashmaroli/jekyll-data/issues/7/comments","events_url":"https://api.github.com/repos/ashmaroli/jekyll-data/issues/7/events","html_url":"https://github.com/ashmaroli/jekyll-data/issues/7","id":195561194,"number":7,"title":"`_data` files in theme gem don't appear to load","user":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars.githubusercontent.com/u/1376749?v=3","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T15:28:15Z","updated_at":"2016-12-14T16:12:15Z","closed_at":null,"body":"Very useful plugin. I gave it a go to see if I could integrate it with my theme gem so users don't have to copy a file with all of the UI text's translation.\r\n\r\nHere's what I tried:\r\n\r\n1. Add `spec.add_runtime_dependency \"jekyll-data\", \"~> 0.4\"` to my [theme's gemspec](https://github.com/mmistakes/minimal-mistakes/blob/feature/jekyll-data/minimal-mistakes-jekyll.gemspec)\r\n2. Went into my theme gem's `/test` folder ran `bundle update` and verified `jekyll-data` installed and was added to `Gemfile.lock`\r\n3. Changed `locale: en` in `/test/config.yml` to `fr` to test if the UI text strings change from English to French.\r\n4. From the theme gem's root ran `bundle exec rake preview` to fire up a test site at `http://localhost:4000/test`\r\n5. Observed no change to the UI text.\r\n\r\nIf I copy `_data/ui-text.yml` to `/test/_data/ui-text.yml` the French translations appear. I also tried adding `gem \"jekyll-data\"` to the `Gemfile` in `/test` and that made no difference.\r\n\r\nhttps://github.com/mmistakes/minimal-mistakes/tree/feature/jekyll-data"},"comment":{"url":"https://api.github.com/repos/ashmaroli/jekyll-data/issues/comments/267076238","html_url":"https://github.com/ashmaroli/jekyll-data/issues/7#issuecomment-267076238","issue_url":"https://api.github.com/repos/ashmaroli/jekyll-data/issues/7","id":267076238,"user":{"login":"ashmaroli","id":12479464,"avatar_url":"https://avatars.githubusercontent.com/u/12479464?v=3","gravatar_id":"","url":"https://api.github.com/users/ashmaroli","html_url":"https://github.com/ashmaroli","followers_url":"https://api.github.com/users/ashmaroli/followers","following_url":"https://api.github.com/users/ashmaroli/following{/other_user}","gists_url":"https://api.github.com/users/ashmaroli/gists{/gist_id}","starred_url":"https://api.github.com/users/ashmaroli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashmaroli/subscriptions","organizations_url":"https://api.github.com/users/ashmaroli/orgs","repos_url":"https://api.github.com/users/ashmaroli/repos","events_url":"https://api.github.com/users/ashmaroli/events{/privacy}","received_events_url":"https://api.github.com/users/ashmaroli/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T16:12:15Z","updated_at":"2016-12-14T16:12:15Z","body":"Thank you for trying the plugin and opening this ticket @mmistakes .\r\nlooks like I was wrong about `runtime_dependency` plugin not needing to be added to the site's `_config.yml` \r\nMy apologies..\r\n\r\nadding `jekyll-data` to the `gems:` array in your test site's `_config.yml` should resolve this. \r\nAnother way to check if Jekyll reads `_data` folder is by serving with the `--verbose` switch. Though, in your theme's case, the humongous data hash is probably going to cascade relevant information. "}}
{"actor":{"display_login":"ashmaroli"}}