Sha256: 45fabf289b640203a8d41763dd20e1923a9fe4bbe65655c54115eafb5c955212
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
--- title: "Octopress Ink Plugin Reference" permalink: /plugin-reference/ --- Octopress Ink plugins should be distributed as Ruby gems. If you don't know how to create a ruby gem, [follow this walkthrough]({% doc_url /guides/create-a-gem/ %}). ### Plugin Template This is the basic template for creating an Octopress Ink plugin. ```ruby require "octopress-ink" Octopress::Ink.add_plugin({ name: "My Plugin", slug: "my-plugin", assets_path: File.expand_path(File.join(File.dirname(__FILE__), '../assets')), type: "plugin", version: MyPlugin::VERSION, description: "", website: "" }) ``` ### Configuration Reference The configuration options are as follows: | Configuration | Description | |:--------------|:------------| | name | The display name for your plugin, e.g. "My Plugin" | | path | Path to your plugin's root directory | | slug | Optional: The slug is how users will reference your plugin, (Default: sluggified name) | | type | Optional: "plugin" or "theme" (Default: "plugin") | | version | Optional: Version will be displayed with plugin info | | description | Optional: Description will be displayed with plugin info | | website | Optional: Website will be displayed with plugin info | ### Plugin Assets You can set `assets_path` to point wherever you like insde your gem file, but in this case we have it pointing to the `assets` directiory in root of the gem. There isn't a directory there yet, so we'll need to add one, and while were at it, add any assets that this plugin will need.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octopress-ink-1.0.0.rc.19 | assets/docs/plugin-reference.markdown |
octopress-ink-1.0.0.rc.18 | assets/docs/plugin-reference.markdown |