From a8d88937fa602ee2d7e56e5d17b20dbed8d62e48 Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Fri, 21 Dec 2018 14:20:53 +0100 Subject: [PATCH] Add donation page --- README.md | 31 +++++++++++++++- cameraview/build.gradle | 2 +- docs/_config.yml | 3 ++ docs/_includes/footer.html | 2 +- docs/_posts/2018-12-20-contributing.md | 5 +-- docs/_posts/2018-12-20-v1-migration-guide.md | 2 -- docs/_posts/2018-12-21-donate.md | 37 ++++++++++++++++++++ docs/index.md | 5 +++ 8 files changed, 80 insertions(+), 7 deletions(-) create mode 100644 docs/_posts/2018-12-21-donate.md diff --git a/README.md b/README.md index ec2b818d..ee6cd33d 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,33 @@ Read the [official website](https://natario1/github.io/CameraView) for setup ins -

\ No newline at end of file +

+ +If you like the project, use it with profit, or simply want to thank back, you can consider [donating +to the project](https://opencollective.com/cameraview/donate). You can either make a one time +donation or become a sponsor, in which case your company logo will show up here. + +We are grateful for any contribution in this sense, as it gives us motivation to push the library forward and is +a nice reward for what has been done until now. + +## Backers + +Thanks to all backers! [Become a backer.](https://opencollective.com/cameraview#backer) + + + +## Sponsors + +Thanks to sponsors! [Become a sponsor](https://opencollective.com/cameraview#sponsor) and have your logo here. + + + + + + + + + + + + diff --git a/cameraview/build.gradle b/cameraview/build.gradle index a9f9ae19..de424d8c 100644 --- a/cameraview/build.gradle +++ b/cameraview/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' // Required by bintray -version = '1.6.1' +version = '2.0.0-beta01' group = 'com.otaliastudios' //region android dependencies diff --git a/docs/_config.yml b/docs/_config.yml index 8dbe6a6f..ca979b2f 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -37,6 +37,9 @@ navigation: 2 # URL to source code, used in _includes/footer.html codeurl: 'https://github.com/natario1/CameraView' +# relative URL for donations, used in footer.html +donateurl: '/extra/donate.html' + # Default categories (in order) to appear in the navigation # (Missing: DOCS and DONATE info) sections: [ diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index 121f1aba..d710437f 100644 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -1 +1 @@ -View on GitHub: {{ site.title }} +View on GitHub: {{ site.title }} or donate diff --git a/docs/_posts/2018-12-20-contributing.md b/docs/_posts/2018-12-20-contributing.md index c0526d8a..78b08806 100644 --- a/docs/_posts/2018-12-20-contributing.md +++ b/docs/_posts/2018-12-20-contributing.md @@ -3,13 +3,14 @@ layout: page title: "Contributing & License" category: extra date: 2018-12-20 19:28:45 -order: 3 +order: 2 --- Everyone is welcome to contribute with suggestions or pull requests, as the library is under active development, although it has reached a high level of stability. -We are grateful to anyone who has contributed with fixes, features or feature requests. +We are grateful to anyone who has contributed with fixes, features or feature requests. If you don't +want to get involved but still want to support the project, please [consider donating](donate.html). ## Bug reports diff --git a/docs/_posts/2018-12-20-v1-migration-guide.md b/docs/_posts/2018-12-20-v1-migration-guide.md index a69792d8..0d6ae21d 100644 --- a/docs/_posts/2018-12-20-v1-migration-guide.md +++ b/docs/_posts/2018-12-20-v1-migration-guide.md @@ -170,6 +170,4 @@ Might be used in the future to speed up development. If device has no `BACK` cameras, defaults to `FRONT`. - Removed `ExtraProperties` as it was useless. - -TODO: opencollective? TODO: improve the focus marker drawing, move out of XML (accept a drawable?) diff --git a/docs/_posts/2018-12-21-donate.md b/docs/_posts/2018-12-21-donate.md new file mode 100644 index 00000000..a31abb76 --- /dev/null +++ b/docs/_posts/2018-12-21-donate.md @@ -0,0 +1,37 @@ +--- +layout: page +title: "Donate" +category: extra +date: 2018-12-21 13:51:39 +order: 3 +--- + +If you like the project, use it with profit, or simply want to thank back, you can consider donating +to the project through [Open Collective](https://opencollective.com/cameraview/donate). You can either +make a one time donation or become a sponsor, in which case your company logo will show up here +and in the project main page. + +We are grateful for any contribution in this sense, as it gives us motivation to push the library forward and is +a nice reward for what has been done until now. + +## Backers + +Thanks to all backers! [Become a backer.](https://opencollective.com/cameraview#backer) + + + +## Sponsors + +Thanks to sponsors! [Become a sponsor](https://opencollective.com/cameraview#sponsor) and have your logo here. + + + + + + + + + + + + diff --git a/docs/index.md b/docs/index.md index a8f893b1..2ddd704a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -35,3 +35,8 @@ This website contains documentation and informations about version 2.X.X of the For older versions, please take a look at the v1 branch in the [project page](https://github.com/natario1/CameraView). For migration guide, take a look at the [migration page](extra/v1-migration-guide.html). +### Support + +If you like the project, use it with profit, and want to thank back, please consider [donating or +becoming a supporter](extra/donate.html). +