Add support for showing the YogaKit README on CocoaPods.org
Summary: Hey there, congrats on the launch - we use React Native at Artsy, and I've been wondering about what Yoga + Jest Snapshots for RN looks like but haven't had the time to explore that yet. With https://github.com/CocoaPods/cocoadocs.org/pull/501 I added the ability to customize the location of the README for the front-page of the CocoaPods site. That is being deployed as I speak, so it should be available the next time you decide to ship a version of Yoga. I also fixed the capitalisation of CocoaPods, and removed a redundant CocoaPods badge on your initial README. Closes https://github.com/facebook/yoga/pull/366 Reviewed By: emilsjolander Differential Revision: D4488011 Pulled By: dshahidehpour fbshipit-source-id: 6c0c4efc23a69e1fcb936214b159b49217218b49
This commit is contained in:
committed by
Facebook Github Bot
parent
c217553cf8
commit
4400b52aab
@@ -1,4 +1,4 @@
|
|||||||
# Yoga [](https://travis-ci.org/facebook/yoga) [](http://cocoapods.org/pods/Yoga)[](http://cocoapods.org/pods/YogaKit)[](https://www.npmjs.com/package/yoga-layout)
|
# Yoga [](https://travis-ci.org/facebook/yoga) [](http://cocoapods.org/pods/YogaKit) [](https://www.npmjs.com/package/yoga-layout)
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
Yoga builds with [buck](https://buckbuild.com). Make sure you install buck before contributing to Yoga. Yoga's main implementation is in C, with bindings to supported languages and frameworks. When making changes to Yoga please ensure the changes are also propagated to these bindings when applicable.
|
Yoga builds with [buck](https://buckbuild.com). Make sure you install buck before contributing to Yoga. Yoga's main implementation is in C, with bindings to supported languages and frameworks. When making changes to Yoga please ensure the changes are also propagated to these bindings when applicable.
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
# YogaKit
|
# YogaKit
|
||||||
|
|
||||||
[](https://cocoapods.org/pods/YogaKit)
|
[](https://cocoapods.org/pods/YogaKit)
|
||||||
[](https://facebook.github.io/yoga/docs/api/yogakit/)
|
[](https://facebook.github.io/yoga/docs/api/yogakit/)
|
||||||
[](https://facebook.github.io/yoga/docs/api/yogakit/)
|
[](https://facebook.github.io/yoga/docs/api/yogakit/)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
YogaKit is available to install via [Cocoapods](https://cocoapods.org/).
|
YogaKit is available to install via [CocoaPods](https://cocoapods.org/).
|
||||||
|
|
||||||
```
|
```
|
||||||
pod 'YogaKit', '~> 1.0.2'
|
pod 'YogaKit', '~> 1.0.2'
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
Pod::Spec.new do |spec|
|
podspec = Pod::Spec.new do |spec|
|
||||||
spec.name = 'YogaKit'
|
spec.name = 'YogaKit'
|
||||||
spec.version = '1.0.2'
|
spec.version = '1.0.2'
|
||||||
spec.license = { :type => 'BSD', :file => "LICENSE" }
|
spec.license = { :type => 'BSD', :file => "LICENSE" }
|
||||||
@@ -23,3 +23,7 @@ Pod::Spec.new do |spec|
|
|||||||
spec.public_header_files = 'YogaKit/Source/{YGLayout,UIView+Yoga}.h'
|
spec.public_header_files = 'YogaKit/Source/{YGLayout,UIView+Yoga}.h'
|
||||||
spec.private_header_files = 'YogaKit/Source/YGLayout+Private.h'
|
spec.private_header_files = 'YogaKit/Source/YGLayout+Private.h'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# See https://github.com/facebook/yoga/pull/366
|
||||||
|
podspec.attributes_hash["readme"] = "YogaKit/README.md"
|
||||||
|
podspec
|
||||||
|
Reference in New Issue
Block a user