3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 | #import "QuickConfiguration.h"
14 | #import "QCKDSL.h"
15 | #import "Quick.h"
16 | #import "QuickSpec.h"
17 |
18 | FOUNDATION_EXPORT double QuickVersionNumber;
19 | FOUNDATION_EXPORT const unsigned char QuickVersionString[];
20 |
21 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Quick/Quick.modulemap:
--------------------------------------------------------------------------------
1 | framework module Quick {
2 | umbrella header "Quick-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Quick/Quick.xcconfig:
--------------------------------------------------------------------------------
1 | APPLICATION_EXTENSION_API_ONLY = YES
2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Quick
3 | ENABLE_BITCODE = NO
4 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks"
5 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
6 | OTHER_LDFLAGS = $(inherited) -Xlinker -no_application_extension -framework "XCTest"
7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_ROOT = ${SRCROOT}
11 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/Quick
12 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
13 | SKIP_INSTALL = YES
14 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | gem 'jazzy', "~> 0.9"
4 | gem 'cocoapods', "~> 1.0"
5 | gem 'xcpretty', "~> 0.2"
6 | gem 'yarn', "~> 0.1"
7 | gem 'rack', "~> 2.0.6"
8 | gem 'ffi', "~> 1.9.24"
9 |
--------------------------------------------------------------------------------
/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (3.0.0)
5 | activesupport (4.2.11.1)
6 | i18n (~> 0.7)
7 | minitest (~> 5.1)
8 | thread_safe (~> 0.3, >= 0.3.4)
9 | tzinfo (~> 1.1)
10 | atomos (0.1.3)
11 | claide (1.0.2)
12 | cocoapods (1.7.1)
13 | activesupport (>= 4.0.2, < 5)
14 | claide (>= 1.0.2, < 2.0)
15 | cocoapods-core (= 1.7.1)
16 | cocoapods-deintegrate (>= 1.0.3, < 2.0)
17 | cocoapods-downloader (>= 1.2.2, < 2.0)
18 | cocoapods-plugins (>= 1.0.0, < 2.0)
19 | cocoapods-search (>= 1.0.0, < 2.0)
20 | cocoapods-stats (>= 1.0.0, < 2.0)
21 | cocoapods-trunk (>= 1.3.1, < 2.0)
22 | cocoapods-try (>= 1.1.0, < 2.0)
23 | colored2 (~> 3.1)
24 | escape (~> 0.0.4)
25 | fourflusher (>= 2.2.0, < 3.0)
26 | gh_inspector (~> 1.0)
27 | molinillo (~> 0.6.6)
28 | nap (~> 1.0)
29 | ruby-macho (~> 1.4)
30 | xcodeproj (>= 1.8.2, < 2.0)
31 | cocoapods-core (1.7.1)
32 | activesupport (>= 4.0.2, < 6)
33 | fuzzy_match (~> 2.0.4)
34 | nap (~> 1.0)
35 | cocoapods-deintegrate (1.0.4)
36 | cocoapods-downloader (1.2.2)
37 | cocoapods-plugins (1.0.0)
38 | nap
39 | cocoapods-search (1.0.0)
40 | cocoapods-stats (1.1.0)
41 | cocoapods-trunk (1.3.1)
42 | nap (>= 0.8, < 2.0)
43 | netrc (~> 0.11)
44 | cocoapods-try (1.1.0)
45 | colored2 (3.1.2)
46 | concurrent-ruby (1.1.5)
47 | escape (0.0.4)
48 | ffi (1.9.25)
49 | fourflusher (2.2.0)
50 | fuzzy_match (2.0.4)
51 | gh_inspector (1.1.3)
52 | i18n (0.9.5)
53 | concurrent-ruby (~> 1.0)
54 | jazzy (0.9.4)
55 | cocoapods (~> 1.0)
56 | mustache (~> 0.99)
57 | open4
58 | redcarpet (~> 3.2)
59 | rouge (>= 2.0.6, < 4.0)
60 | sass (~> 3.4)
61 | sqlite3 (~> 1.3)
62 | xcinvoke (~> 0.3.0)
63 | liferaft (0.0.6)
64 | minitest (5.11.3)
65 | molinillo (0.6.6)
66 | mustache (0.99.8)
67 | nanaimo (0.2.6)
68 | nap (1.1.0)
69 | netrc (0.11.0)
70 | open4 (1.3.4)
71 | parslet (1.8.2)
72 | rack (2.0.7)
73 | rb-fsevent (0.10.3)
74 | rb-inotify (0.10.0)
75 | ffi (~> 1.0)
76 | redcarpet (3.5.1)
77 | rouge (2.0.7)
78 | ruby-macho (1.4.0)
79 | sass (3.7.4)
80 | sass-listen (~> 4.0.0)
81 | sass-listen (4.0.0)
82 | rb-fsevent (~> 0.9, >= 0.9.4)
83 | rb-inotify (~> 0.9, >= 0.9.7)
84 | sqlite3 (1.4.1)
85 | thread_safe (0.3.6)
86 | trollop (2.9.9)
87 | tzinfo (1.2.5)
88 | thread_safe (~> 0.1)
89 | xcinvoke (0.3.0)
90 | liferaft (~> 0.0.6)
91 | xcodeproj (1.9.0)
92 | CFPropertyList (>= 2.3.3, < 4.0)
93 | atomos (~> 0.1.3)
94 | claide (>= 1.0.2, < 2.0)
95 | colored2 (~> 3.1)
96 | nanaimo (~> 0.2.6)
97 | xcpretty (0.3.0)
98 | rouge (~> 2.0.7)
99 | yarn (0.1.1)
100 | parslet (>= 1.2)
101 | rack (>= 1.3)
102 | trollop (>= 1.16)
103 |
104 | PLATFORMS
105 | ruby
106 |
107 | DEPENDENCIES
108 | cocoapods (~> 1.0)
109 | ffi (~> 1.9.24)
110 | jazzy (~> 0.9)
111 | rack (~> 2.0.6)
112 | xcpretty (~> 0.2)
113 | yarn (~> 0.1)
114 |
115 | BUNDLED WITH
116 | 1.17.1
117 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | # Copyright 2015-2018 Lionheart Software LLC
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | # Usage: make VERSION=0.1.2
16 |
17 | PODFILE := $(shell find . -name "*.podspec" -depth 1)
18 | DIRECTORY := $(shell basename $(PODFILE) .podspec)
19 | AWS_S3_BUCKET_NAME := lionheart-opensource
20 | AWS_S3_REGION := us-east-2
21 | AWS_CF_DISTRIBUTION_ID := E33XE7TKGUV1ZD
22 |
23 | all: publish
24 |
25 | version_provided:
26 | test -n "$(VERSION)"
27 |
28 | podspec_found:
29 | test -n "$(PODFILE)"
30 |
31 | quicklint:
32 | bundle exec pod spec lint --quick
33 |
34 | replace_text: podspec_found version_provided
35 | sed -i "" "s/\(s.version[ ]*=[ ]\).*/\1 \"$(VERSION)\"/g" $(PODFILE)
36 | sed -i "" "s/tree\/[\.0-9]*/tree\/$(VERSION)/g" .jazzy.yaml
37 |
38 | generate_docs: replace_text
39 | bundle exec jazzy
40 | git add docs/
41 | git add .jazzy.yaml
42 | -git commit -m "documentation update"
43 | sync_directory_to_s3 "$(AWS_S3_REGION)" "$(AWS_S3_BUCKET_NAME)" "$(AWS_CF_DISTRIBUTION_ID)" "docs" "$(DIRECTORY)/"
44 |
45 | tag: quicklint generate_docs
46 | git add .
47 | # - ignores errors in this command
48 | -git commit -m "bump version to $(VERSION)"
49 | # Delete tag if already exists
50 | -git tag -d $(VERSION)
51 | -git push origin master :$(VERSION)
52 | git tag $(VERSION)
53 | git push origin master
54 | git push --tags
55 |
56 | publish: tag
57 | bundle exec pod trunk push --allow-warnings
58 |
59 |
--------------------------------------------------------------------------------
/NOTICE:
--------------------------------------------------------------------------------
1 | $PROJECT_NAME
2 | Copyright 2016-2018 Lionheart Software LLC.
3 |
4 | This product includes software developed by Lionheart Software (https://lionheartsw.com/).
5 |
6 |
--------------------------------------------------------------------------------
/_Pods.xcodeproj:
--------------------------------------------------------------------------------
1 | Example/Pods/Pods.xcodeproj
--------------------------------------------------------------------------------
/animation.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/animation.gif
--------------------------------------------------------------------------------
/docs/badge.svg:
--------------------------------------------------------------------------------
1 |
29 |
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleIdentifier
6 | com.jazzy.concentricprogressringview
7 | CFBundleName
8 | ConcentricProgressRingView
9 | DocSetPlatformFamily
10 | concentricprogressringview
11 | isDashDocset
12 |
13 | dashIndexFilePath
14 | index.html
15 | isJavaScriptEnabled
16 |
17 | DashDocSetFamily
18 | dashtoc
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/carat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/carat.png
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/dash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/dash.png
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/gh.png
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/img/spinner.gif
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/js/jazzy.js:
--------------------------------------------------------------------------------
1 | window.jazzy = {'docset': false}
2 | if (typeof window.dash != 'undefined') {
3 | document.documentElement.className += ' dash'
4 | window.jazzy.docset = true
5 | }
6 | if (navigator.userAgent.match(/xcode/i)) {
7 | document.documentElement.className += ' xcode'
8 | window.jazzy.docset = true
9 | }
10 |
11 | // On doc load, toggle the URL hash discussion if present
12 | $(document).ready(function() {
13 | if (!window.jazzy.docset) {
14 | var linkToHash = $('a[href="' + window.location.hash +'"]');
15 | linkToHash.trigger("click");
16 | }
17 | });
18 |
19 | // On token click, toggle its discussion and animate token.marginLeft
20 | $(".token").click(function(event) {
21 | if (window.jazzy.docset) {
22 | return;
23 | }
24 | var link = $(this);
25 | var animationDuration = 300;
26 | $content = link.parent().parent().next();
27 | $content.slideToggle(animationDuration);
28 |
29 | // Keeps the document from jumping to the hash.
30 | var href = $(this).attr('href');
31 | if (history.pushState) {
32 | history.pushState({}, '', href);
33 | } else {
34 | location.hash = href;
35 | }
36 | event.preventDefault();
37 | });
38 |
39 | // Dumb down quotes within code blocks that delimit strings instead of quotations
40 | // https://github.com/realm/jazzy/issues/714
41 | $("code q").replaceWith(function () {
42 | return ["\"", $(this).contents(), "\""];
43 | });
44 |
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/Documents/js/jazzy.search.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 | var searchIndex = lunr(function() {
3 | this.ref('url');
4 | this.field('name');
5 | });
6 |
7 | var $typeahead = $('[data-typeahead]');
8 | var $form = $typeahead.parents('form');
9 | var searchURL = $form.attr('action');
10 |
11 | function displayTemplate(result) {
12 | return result.name;
13 | }
14 |
15 | function suggestionTemplate(result) {
16 | var t = '';
17 | t += '' + result.name + '';
18 | if (result.parent_name) {
19 | t += '' + result.parent_name + '';
20 | }
21 | t += '
';
22 | return t;
23 | }
24 |
25 | $typeahead.one('focus', function() {
26 | $form.addClass('loading');
27 |
28 | $.getJSON(searchURL).then(function(searchData) {
29 | $.each(searchData, function (url, doc) {
30 | searchIndex.add({url: url, name: doc.name});
31 | });
32 |
33 | $typeahead.typeahead(
34 | {
35 | highlight: true,
36 | minLength: 3
37 | },
38 | {
39 | limit: 10,
40 | display: displayTemplate,
41 | templates: { suggestion: suggestionTemplate },
42 | source: function(query, sync) {
43 | var results = searchIndex.search(query).map(function(result) {
44 | var doc = searchData[result.ref];
45 | doc.url = result.ref;
46 | return doc;
47 | });
48 | sync(results);
49 | }
50 | }
51 | );
52 | $form.removeClass('loading');
53 | $typeahead.trigger('focus');
54 | });
55 | });
56 |
57 | var baseURL = searchURL.slice(0, -"search.json".length);
58 |
59 | $typeahead.on('typeahead:select', function(e, result) {
60 | window.location = baseURL + result.url;
61 | });
62 | });
63 |
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/docSet.dsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/docsets/ConcentricProgressRingView.docset/Contents/Resources/docSet.dsidx
--------------------------------------------------------------------------------
/docs/docsets/ConcentricProgressRingView.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/docsets/ConcentricProgressRingView.tgz
--------------------------------------------------------------------------------
/docs/filelist:
--------------------------------------------------------------------------------
1 | Classes.html
2 | Classes/CircleLayer.html
3 | Classes/ConcentricProgressRingView.html
4 | Classes/ProgressRingLayer.html
5 | Structs.html
6 | Structs/ProgressRing.html
7 | badge.svg
8 | css/highlight.css
9 | css/jazzy.css
10 | docsets/ConcentricProgressRingView.tgz
11 | filelist-local
12 | img/carat.png
13 | img/dash.png
14 | img/gh.png
15 | img/spinner.gif
16 | index.html
17 | js/jazzy.js
18 | js/jazzy.search.js
19 | js/jquery.min.js
20 | js/lunr.min.js
21 | js/typeahead.jquery.js
22 | search.json
23 | undocumented.json
24 |
--------------------------------------------------------------------------------
/docs/filelist-local:
--------------------------------------------------------------------------------
1 | Classes.html
2 | Classes/CircleLayer.html
3 | Classes/ConcentricProgressRingView.html
4 | Classes/ProgressRingLayer.html
5 | Structs.html
6 | Structs/ProgressRing.html
7 | badge.svg
8 | css/highlight.css
9 | css/jazzy.css
10 | docsets/ConcentricProgressRingView.tgz
11 | filelist-local
12 | img/carat.png
13 | img/dash.png
14 | img/gh.png
15 | img/spinner.gif
16 | index.html
17 | js/jazzy.js
18 | js/jazzy.search.js
19 | js/jquery.min.js
20 | js/lunr.min.js
21 | js/typeahead.jquery.js
22 | search.json
23 | undocumented.json
24 |
--------------------------------------------------------------------------------
/docs/filelist-local-md5:
--------------------------------------------------------------------------------
1 | 07a5d5877a8574a15543c0bc5c1c6de5 js/lunr.min.js
2 | 0aec5e490ceebbd819e89e49bdc2fa44 css/highlight.css
3 | 11539699fcb90b4a463eae41af83331c Classes.html
4 | 1a5ba44eaeb44b2bda2311272cb3a0cb docsets/ConcentricProgressRingView.tgz
5 | 39472cb4b9f49ad69beab1ca71801c90 js/typeahead.jquery.js
6 | 45a1597ad4ff10d393c591c9f1513649 img/carat.png
7 | 4bc7d81ff2fed9fe7687591d7e9039d0 undocumented.json
8 | 8101d596b2b8fa35fe3a634ea342d7c3 js/jquery.min.js
9 | 8497867e268adb2867f52c7e41c073de search.json
10 | 943f7b1410e97bc2cd6b82abc5b8562f Structs/ProgressRing.html
11 | 9662a035b84b6702e35323230351c144 badge.svg
12 | a0eda45184942cd630d34ca5a3f103e8 Classes/ConcentricProgressRingView.html
13 | a3f192921f1cb55aba4a7543c8d3dfa8 js/jazzy.js
14 | b222d816a98ec0d409e34051600eb4c0 img/dash.png
15 | bedb3f401827ac1209f591f915e248b3 js/jazzy.search.js
16 | c079081f3710f6351686cddb58e47323 Classes/CircleLayer.html
17 | d4e7ca0cc9b8fa301da5de52ed76602c Classes/ProgressRingLayer.html
18 | d56df49a807a9fd06eb1667a84d3810e img/gh.png
19 | d66c0aa98c3e5685735e614567b509d5 index.html
20 | dfd13cb70c00fe8621631392283d0d1b css/jazzy.css
21 | e19070e7678337ba9d70f4ffa2a252e4 filelist-local
22 | f2ab932b59382ee46b393328ae86eb0f Structs.html
23 | f6862e05ad5c2ed2f83d8d6fc48a4975 img/spinner.gif
24 |
--------------------------------------------------------------------------------
/docs/filelist-md5:
--------------------------------------------------------------------------------
1 | 07a5d5877a8574a15543c0bc5c1c6de5 js/lunr.min.js
2 | 0aec5e490ceebbd819e89e49bdc2fa44 css/highlight.css
3 | 11539699fcb90b4a463eae41af83331c Classes.html
4 | 1a5ba44eaeb44b2bda2311272cb3a0cb docsets/ConcentricProgressRingView.tgz
5 | 39472cb4b9f49ad69beab1ca71801c90 js/typeahead.jquery.js
6 | 45a1597ad4ff10d393c591c9f1513649 img/carat.png
7 | 4bc7d81ff2fed9fe7687591d7e9039d0 undocumented.json
8 | 8101d596b2b8fa35fe3a634ea342d7c3 js/jquery.min.js
9 | 8497867e268adb2867f52c7e41c073de search.json
10 | 943f7b1410e97bc2cd6b82abc5b8562f Structs/ProgressRing.html
11 | 9662a035b84b6702e35323230351c144 badge.svg
12 | a0eda45184942cd630d34ca5a3f103e8 Classes/ConcentricProgressRingView.html
13 | a3f192921f1cb55aba4a7543c8d3dfa8 js/jazzy.js
14 | b222d816a98ec0d409e34051600eb4c0 img/dash.png
15 | bedb3f401827ac1209f591f915e248b3 js/jazzy.search.js
16 | c079081f3710f6351686cddb58e47323 Classes/CircleLayer.html
17 | d4e7ca0cc9b8fa301da5de52ed76602c Classes/ProgressRingLayer.html
18 | d56df49a807a9fd06eb1667a84d3810e img/gh.png
19 | d66c0aa98c3e5685735e614567b509d5 index.html
20 | dfd13cb70c00fe8621631392283d0d1b css/jazzy.css
21 | e19070e7678337ba9d70f4ffa2a252e4 filelist-local
22 | f2ab932b59382ee46b393328ae86eb0f Structs.html
23 | f6862e05ad5c2ed2f83d8d6fc48a4975 img/spinner.gif
24 |
--------------------------------------------------------------------------------
/docs/img/carat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/img/carat.png
--------------------------------------------------------------------------------
/docs/img/dash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/img/dash.png
--------------------------------------------------------------------------------
/docs/img/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/img/gh.png
--------------------------------------------------------------------------------
/docs/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/docs/img/spinner.gif
--------------------------------------------------------------------------------
/docs/js/jazzy.js:
--------------------------------------------------------------------------------
1 | window.jazzy = {'docset': false}
2 | if (typeof window.dash != 'undefined') {
3 | document.documentElement.className += ' dash'
4 | window.jazzy.docset = true
5 | }
6 | if (navigator.userAgent.match(/xcode/i)) {
7 | document.documentElement.className += ' xcode'
8 | window.jazzy.docset = true
9 | }
10 |
11 | // On doc load, toggle the URL hash discussion if present
12 | $(document).ready(function() {
13 | if (!window.jazzy.docset) {
14 | var linkToHash = $('a[href="' + window.location.hash +'"]');
15 | linkToHash.trigger("click");
16 | }
17 | });
18 |
19 | // On token click, toggle its discussion and animate token.marginLeft
20 | $(".token").click(function(event) {
21 | if (window.jazzy.docset) {
22 | return;
23 | }
24 | var link = $(this);
25 | var animationDuration = 300;
26 | $content = link.parent().parent().next();
27 | $content.slideToggle(animationDuration);
28 |
29 | // Keeps the document from jumping to the hash.
30 | var href = $(this).attr('href');
31 | if (history.pushState) {
32 | history.pushState({}, '', href);
33 | } else {
34 | location.hash = href;
35 | }
36 | event.preventDefault();
37 | });
38 |
39 | // Dumb down quotes within code blocks that delimit strings instead of quotations
40 | // https://github.com/realm/jazzy/issues/714
41 | $("code q").replaceWith(function () {
42 | return ["\"", $(this).contents(), "\""];
43 | });
44 |
--------------------------------------------------------------------------------
/docs/js/jazzy.search.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 | var searchIndex = lunr(function() {
3 | this.ref('url');
4 | this.field('name');
5 | });
6 |
7 | var $typeahead = $('[data-typeahead]');
8 | var $form = $typeahead.parents('form');
9 | var searchURL = $form.attr('action');
10 |
11 | function displayTemplate(result) {
12 | return result.name;
13 | }
14 |
15 | function suggestionTemplate(result) {
16 | var t = '';
17 | t += '' + result.name + '';
18 | if (result.parent_name) {
19 | t += '' + result.parent_name + '';
20 | }
21 | t += '
';
22 | return t;
23 | }
24 |
25 | $typeahead.one('focus', function() {
26 | $form.addClass('loading');
27 |
28 | $.getJSON(searchURL).then(function(searchData) {
29 | $.each(searchData, function (url, doc) {
30 | searchIndex.add({url: url, name: doc.name});
31 | });
32 |
33 | $typeahead.typeahead(
34 | {
35 | highlight: true,
36 | minLength: 3
37 | },
38 | {
39 | limit: 10,
40 | display: displayTemplate,
41 | templates: { suggestion: suggestionTemplate },
42 | source: function(query, sync) {
43 | var results = searchIndex.search(query).map(function(result) {
44 | var doc = searchData[result.ref];
45 | doc.url = result.ref;
46 | return doc;
47 | });
48 | sync(results);
49 | }
50 | }
51 | );
52 | $form.removeClass('loading');
53 | $typeahead.trigger('focus');
54 | });
55 | });
56 |
57 | var baseURL = searchURL.slice(0, -"search.json".length);
58 |
59 | $typeahead.on('typeahead:select', function(e, result) {
60 | window.location = baseURL + result.url;
61 | });
62 | });
63 |
--------------------------------------------------------------------------------
/example1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/example1.png
--------------------------------------------------------------------------------
/example2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/example2.png
--------------------------------------------------------------------------------
/example3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/example3.png
--------------------------------------------------------------------------------
/meta/header.sketch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/meta/header.sketch
--------------------------------------------------------------------------------
/meta/repo-banner-bottom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/meta/repo-banner-bottom.png
--------------------------------------------------------------------------------
/meta/repo-banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lionheart/ConcentricProgressRingView/8d997c122e6c9d862813b36b8e12b047aba5bdaf/meta/repo-banner.png
--------------------------------------------------------------------------------