Sha256: 4d22934359220da9b9b3e56d35b452c8ac72c8d7bde4482873ee00774a1ab325
Contents?: true
Size: 940 Bytes
Versions: 2
Compression:
Stored size: 940 Bytes
Contents
# If your plugin requires a lot of steps to get set up, consider writing an automation to help guide users. # You could set up and configure all sorts of things, for example: # # add_bridgetown_plugin("my-plugin") # # add_yarn_for_gem("my-plugin") # # create_builder "my_nifty_builder.rb" do # <<~RUBY # class MyNeatBuilder < SiteBuilder # def build # puts MyPlugin.hello # end # end # RUBY # end # # javascript_import do # <<~JS # import { MyPlugin } from "my-plugin" # JS # end # # javascript_import 'import "my-plugin.css"' # # create_file "src/_data/plugin_data.yml" do # <<~YAML # data: # goes: # here # YAML # end # # color = ask("What's your favorite color?") # # append_to_file "bridgetown.config.yml" do # <<~YAML # # my_plugin: # favorite_color: #{color} # YAML # end # # Read the Automations documentation: https://www.bridgetownrb.com/docs/automations
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bridgetown_notion-0.2.0 | bridgetown.automation.rb |
bridgetown_notion-0.1.0 | bridgetown.automation.rb |