New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci skip] Fix doc usage of :source_path #301

Merged
merged 1 commit into from May 24, 2016

Conversation

Projects
None yet
2 participants
@schneems
Member

schneems commented May 13, 2016

A follow up from ai/autoprefixer-rails#89 we were accidentally recommending to use the wrong API when building your own processor.

I also added docs for all the different keys that we pass to processors for future reference.

Show outdated Hide outdated guides/extending_sprockets.md
- `:cache` - [Sprockets::Cache] A cache object you can use to store and retrieve intermediate objects. You can use `Cache#get`, `Cache#set` and `Cache#fetch` api. Refer to method docs for more info. If using paths for the key or contents, use `Sprockets::Environment#compress_from_root` and `Sprockets::Environment#expand_from_root` as the location of of your files absolute path will change.
- `:environment` [Sprockets::Environment] Now you have direct access to all 105 methods that sprockets uses! Use carefully, we may consider limiting this in the future. If you have feedback on what methods you need or use please say hi, Open an issue and let the Sprockets team know.

This comment has been minimized.

@maclover7

maclover7 May 13, 2016

Member

sprockets --> Sprockets

@maclover7

maclover7 May 13, 2016

Member

sprockets --> Sprockets

This comment has been minimized.

@schneems

schneems May 14, 2016

Member

Fixed, thanks for the eyes.

@schneems

schneems May 14, 2016

Member

Fixed, thanks for the eyes.

[ci skip] Fix doc usage of :source_path
A follow up from ai/autoprefixer-rails#89 we were accidentally recommending to use the wrong API when building your own processor. 

I also added docs for all the different keys that we pass to processors for future reference.

@schneems schneems merged commit 697cc28 into master May 24, 2016

@schneems schneems referenced this pull request May 24, 2016

Closed

WIP Deprecate hash key #292

@jeremy jeremy deleted the schneems/update-extending-docs-hash branch Nov 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment