Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:bridgetownrb/bridgetown-prismic
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Jun 9, 2023
2 parents b73cdcd + 05a3a66 commit 136edf1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This plugin requires Ruby 3 and the latest alpha version of [Bridgetown 1.0](htt
Add the gem to your Gemfile and set up initial configuration by running the automation script:

```sh
$ bin/bridgetown apply https://github.com/bridgetownrb/bridgetown-prismic
bin/bridgetown apply https://github.com/bridgetownrb/bridgetown-prismic
```

This will add a `prismic_repository` setting to your `bridgetown.config.yml` file. Replace that with the subdomain of your Prismic repo.
Expand Down Expand Up @@ -47,7 +47,7 @@ class RodaApp < Bridgetown::Rack::Roda
plugin :bridgetown_ssr

route do |r|
Bridgetown::Rack::Routes.start! self
r.bridgetown
end
end
```
Expand Down Expand Up @@ -178,7 +178,7 @@ A few notes on the Ruby DSL:
end.flatten.compact
}
```
This would result in a `resource.data.tiles` array with one or more hashes including `backdrop`, `heading`, and `description` keys.
This would result in a `resource.data.tiles` array with one or more hashes including `backdrop`, `heading`, and `description` keys.
The Ruby DSL is pretty nifty, but you may occasionally run into a conflict between your variable name and an existing Ruby method. For example, you couldn't add something like `method doc["page.method"] .as_text` because `method` is an existing Ruby object method. Instead, use `set` like so:
Expand Down Expand Up @@ -292,7 +292,8 @@ Please submit an issue to this GitHub repo and we'll address your concerns as so
## Testing This Gem
* Run `bundle exec rake test` to run the test suite
* Run `bundle exec rake test` to run the test suite (make sure to run `bundle
install`)
* Or run `script/cibuild` to validate with Rubocop and Minitest together.

## Contributing
Expand Down

0 comments on commit 136edf1

Please sign in to comment.