wayfarer 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rbenv-gemsets +1 -0
- data/.rspec +3 -0
- data/.rubocop.yml +21 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/.yardopts +3 -0
- data/Changelog.md +10 -0
- data/Gemfile +11 -0
- data/LICENSE +19 -0
- data/README.md +21 -0
- data/Rakefile +114 -0
- data/benchmark/frontiers.rb +143 -0
- data/bin/wayfarer +116 -0
- data/docs/.gitignore +2 -0
- data/docs/_config.yml +15 -0
- data/docs/_includes/base.html +7 -0
- data/docs/_includes/head.html +10 -0
- data/docs/_includes/navigation.html +187 -0
- data/docs/_layouts/default.html +42 -0
- data/docs/_sass/base.scss +439 -0
- data/docs/_sass/variables.scss +24 -0
- data/docs/_sass/vendor/bourbon/_bourbon-deprecate.scss +19 -0
- data/docs/_sass/vendor/bourbon/_bourbon-deprecated-upcoming.scss +425 -0
- data/docs/_sass/vendor/bourbon/_bourbon.scss +90 -0
- data/docs/_sass/vendor/bourbon/addons/_border-color.scss +29 -0
- data/docs/_sass/vendor/bourbon/addons/_border-radius.scss +48 -0
- data/docs/_sass/vendor/bourbon/addons/_border-style.scss +28 -0
- data/docs/_sass/vendor/bourbon/addons/_border-width.scss +28 -0
- data/docs/_sass/vendor/bourbon/addons/_buttons.scss +69 -0
- data/docs/_sass/vendor/bourbon/addons/_clearfix.scss +25 -0
- data/docs/_sass/vendor/bourbon/addons/_ellipsis.scss +30 -0
- data/docs/_sass/vendor/bourbon/addons/_font-stacks.scss +31 -0
- data/docs/_sass/vendor/bourbon/addons/_hide-text.scss +27 -0
- data/docs/_sass/vendor/bourbon/addons/_margin.scss +29 -0
- data/docs/_sass/vendor/bourbon/addons/_padding.scss +29 -0
- data/docs/_sass/vendor/bourbon/addons/_position.scss +51 -0
- data/docs/_sass/vendor/bourbon/addons/_prefixer.scss +66 -0
- data/docs/_sass/vendor/bourbon/addons/_retina-image.scss +27 -0
- data/docs/_sass/vendor/bourbon/addons/_size.scss +56 -0
- data/docs/_sass/vendor/bourbon/addons/_text-inputs.scss +118 -0
- data/docs/_sass/vendor/bourbon/addons/_timing-functions.scss +34 -0
- data/docs/_sass/vendor/bourbon/addons/_triangle.scss +63 -0
- data/docs/_sass/vendor/bourbon/addons/_word-wrap.scss +29 -0
- data/docs/_sass/vendor/bourbon/css3/_animation.scss +61 -0
- data/docs/_sass/vendor/bourbon/css3/_appearance.scss +5 -0
- data/docs/_sass/vendor/bourbon/css3/_backface-visibility.scss +5 -0
- data/docs/_sass/vendor/bourbon/css3/_background-image.scss +44 -0
- data/docs/_sass/vendor/bourbon/css3/_background.scss +57 -0
- data/docs/_sass/vendor/bourbon/css3/_border-image.scss +61 -0
- data/docs/_sass/vendor/bourbon/css3/_calc.scss +6 -0
- data/docs/_sass/vendor/bourbon/css3/_columns.scss +67 -0
- data/docs/_sass/vendor/bourbon/css3/_filter.scss +6 -0
- data/docs/_sass/vendor/bourbon/css3/_flex-box.scss +327 -0
- data/docs/_sass/vendor/bourbon/css3/_font-face.scss +29 -0
- data/docs/_sass/vendor/bourbon/css3/_font-feature-settings.scss +6 -0
- data/docs/_sass/vendor/bourbon/css3/_hidpi-media-query.scss +12 -0
- data/docs/_sass/vendor/bourbon/css3/_hyphens.scss +6 -0
- data/docs/_sass/vendor/bourbon/css3/_image-rendering.scss +15 -0
- data/docs/_sass/vendor/bourbon/css3/_keyframes.scss +38 -0
- data/docs/_sass/vendor/bourbon/css3/_linear-gradient.scss +40 -0
- data/docs/_sass/vendor/bourbon/css3/_perspective.scss +12 -0
- data/docs/_sass/vendor/bourbon/css3/_placeholder.scss +10 -0
- data/docs/_sass/vendor/bourbon/css3/_radial-gradient.scss +40 -0
- data/docs/_sass/vendor/bourbon/css3/_selection.scss +44 -0
- data/docs/_sass/vendor/bourbon/css3/_text-decoration.scss +27 -0
- data/docs/_sass/vendor/bourbon/css3/_transform.scss +21 -0
- data/docs/_sass/vendor/bourbon/css3/_transition.scss +81 -0
- data/docs/_sass/vendor/bourbon/css3/_user-select.scss +5 -0
- data/docs/_sass/vendor/bourbon/functions/_assign-inputs.scss +16 -0
- data/docs/_sass/vendor/bourbon/functions/_contains-falsy.scss +25 -0
- data/docs/_sass/vendor/bourbon/functions/_contains.scss +31 -0
- data/docs/_sass/vendor/bourbon/functions/_is-length.scss +16 -0
- data/docs/_sass/vendor/bourbon/functions/_is-light.scss +26 -0
- data/docs/_sass/vendor/bourbon/functions/_is-number.scss +16 -0
- data/docs/_sass/vendor/bourbon/functions/_is-size.scss +23 -0
- data/docs/_sass/vendor/bourbon/functions/_modular-scale.scss +74 -0
- data/docs/_sass/vendor/bourbon/functions/_px-to-em.scss +24 -0
- data/docs/_sass/vendor/bourbon/functions/_px-to-rem.scss +26 -0
- data/docs/_sass/vendor/bourbon/functions/_shade.scss +24 -0
- data/docs/_sass/vendor/bourbon/functions/_strip-units.scss +22 -0
- data/docs/_sass/vendor/bourbon/functions/_tint.scss +24 -0
- data/docs/_sass/vendor/bourbon/functions/_transition-property-name.scss +37 -0
- data/docs/_sass/vendor/bourbon/functions/_unpack.scss +32 -0
- data/docs/_sass/vendor/bourbon/helpers/_convert-units.scss +26 -0
- data/docs/_sass/vendor/bourbon/helpers/_directional-values.scss +108 -0
- data/docs/_sass/vendor/bourbon/helpers/_font-source-declaration.scss +53 -0
- data/docs/_sass/vendor/bourbon/helpers/_gradient-positions-parser.scss +24 -0
- data/docs/_sass/vendor/bourbon/helpers/_linear-angle-parser.scss +35 -0
- data/docs/_sass/vendor/bourbon/helpers/_linear-gradient-parser.scss +51 -0
- data/docs/_sass/vendor/bourbon/helpers/_linear-positions-parser.scss +77 -0
- data/docs/_sass/vendor/bourbon/helpers/_linear-side-corner-parser.scss +41 -0
- data/docs/_sass/vendor/bourbon/helpers/_radial-arg-parser.scss +74 -0
- data/docs/_sass/vendor/bourbon/helpers/_radial-gradient-parser.scss +55 -0
- data/docs/_sass/vendor/bourbon/helpers/_radial-positions-parser.scss +28 -0
- data/docs/_sass/vendor/bourbon/helpers/_render-gradients.scss +31 -0
- data/docs/_sass/vendor/bourbon/helpers/_shape-size-stripper.scss +15 -0
- data/docs/_sass/vendor/bourbon/helpers/_str-to-num.scss +55 -0
- data/docs/_sass/vendor/bourbon/settings/_asset-pipeline.scss +7 -0
- data/docs/_sass/vendor/bourbon/settings/_deprecation-warnings.scss +8 -0
- data/docs/_sass/vendor/bourbon/settings/_prefixer.scss +9 -0
- data/docs/_sass/vendor/bourbon/settings/_px-to-em.scss +1 -0
- data/docs/_sass/vendor/neat/_neat-helpers.scss +11 -0
- data/docs/_sass/vendor/neat/_neat.scss +23 -0
- data/docs/_sass/vendor/neat/functions/_new-breakpoint.scss +49 -0
- data/docs/_sass/vendor/neat/functions/_private.scss +114 -0
- data/docs/_sass/vendor/neat/grid/_box-sizing.scss +15 -0
- data/docs/_sass/vendor/neat/grid/_direction-context.scss +33 -0
- data/docs/_sass/vendor/neat/grid/_display-context.scss +28 -0
- data/docs/_sass/vendor/neat/grid/_fill-parent.scss +22 -0
- data/docs/_sass/vendor/neat/grid/_media.scss +92 -0
- data/docs/_sass/vendor/neat/grid/_omega.scss +87 -0
- data/docs/_sass/vendor/neat/grid/_outer-container.scss +34 -0
- data/docs/_sass/vendor/neat/grid/_pad.scss +25 -0
- data/docs/_sass/vendor/neat/grid/_private.scss +35 -0
- data/docs/_sass/vendor/neat/grid/_row.scss +52 -0
- data/docs/_sass/vendor/neat/grid/_shift.scss +50 -0
- data/docs/_sass/vendor/neat/grid/_span-columns.scss +94 -0
- data/docs/_sass/vendor/neat/grid/_to-deprecate.scss +97 -0
- data/docs/_sass/vendor/neat/grid/_visual-grid.scss +42 -0
- data/docs/_sass/vendor/neat/mixins/_clearfix.scss +25 -0
- data/docs/_sass/vendor/neat/settings/_disable-warnings.scss +13 -0
- data/docs/_sass/vendor/neat/settings/_grid.scss +51 -0
- data/docs/_sass/vendor/neat/settings/_visual-grid.scss +27 -0
- data/docs/_sass/vendor/normalize-3.0.2.scss +427 -0
- data/docs/_sass/vendor/pygments.scss +356 -0
- data/docs/automating_browsers/capybara.md +70 -0
- data/docs/css/screen.scss +7 -0
- data/docs/guides/callbacks.md +45 -0
- data/docs/guides/cli.md +52 -0
- data/docs/guides/configuration.md +184 -0
- data/docs/guides/error_handling.md +46 -0
- data/docs/guides/frontiers.md +93 -0
- data/docs/guides/halting.md +23 -0
- data/docs/guides/job_queues.md +26 -0
- data/docs/guides/locals.md +36 -0
- data/docs/guides/logging.md +22 -0
- data/docs/guides/page_objects.md +67 -0
- data/docs/guides/peeking.md +46 -0
- data/docs/guides/selenium_capybara.md +100 -0
- data/docs/guides/tutorial.md +452 -0
- data/docs/index.md +82 -0
- data/docs/js/navigation.js +11 -0
- data/docs/misc/contributing.md +20 -0
- data/docs/misc/testing.md +11 -0
- data/docs/recipes/authentication.md +23 -0
- data/docs/recipes/csv.md +29 -0
- data/docs/recipes/javascript.md +20 -0
- data/docs/recipes/multiple_uris.md +18 -0
- data/docs/recipes/screenshots.md +20 -0
- data/docs/routing/custom_rules.md +16 -0
- data/docs/routing/filetypes_rules.md +21 -0
- data/docs/routing/host_rules.md +24 -0
- data/docs/routing/path_rules.md +33 -0
- data/docs/routing/protocol_rules.md +17 -0
- data/docs/routing/query_rules.md +69 -0
- data/docs/routing/routes.md +96 -0
- data/docs/routing/uri_rules.md +18 -0
- data/examples/collect_github_issues.rb +65 -0
- data/examples/find_foobar_on_wikipedia.rb +23 -0
- data/lib/wayfarer/configuration.rb +86 -0
- data/lib/wayfarer/crawl.rb +79 -0
- data/lib/wayfarer/crawl_observer.rb +103 -0
- data/lib/wayfarer/dispatcher.rb +104 -0
- data/lib/wayfarer/finders.rb +61 -0
- data/lib/wayfarer/frontiers/frontier.rb +79 -0
- data/lib/wayfarer/frontiers/memory_bloomfilter.rb +32 -0
- data/lib/wayfarer/frontiers/memory_frontier.rb +76 -0
- data/lib/wayfarer/frontiers/memory_trie_frontier.rb +39 -0
- data/lib/wayfarer/frontiers/normalize_uris.rb +48 -0
- data/lib/wayfarer/frontiers/redis_bloomfilter.rb +34 -0
- data/lib/wayfarer/frontiers/redis_frontier.rb +83 -0
- data/lib/wayfarer/http_adapters/adapter_pool.rb +62 -0
- data/lib/wayfarer/http_adapters/net_http_adapter.rb +77 -0
- data/lib/wayfarer/http_adapters/selenium_adapter.rb +80 -0
- data/lib/wayfarer/job.rb +211 -0
- data/lib/wayfarer/locals.rb +40 -0
- data/lib/wayfarer/page.rb +94 -0
- data/lib/wayfarer/parsers/json_parser.rb +20 -0
- data/lib/wayfarer/parsers/xml_parser.rb +27 -0
- data/lib/wayfarer/processor.rb +103 -0
- data/lib/wayfarer/routing/custom_rule.rb +21 -0
- data/lib/wayfarer/routing/filetypes_rule.rb +20 -0
- data/lib/wayfarer/routing/host_rule.rb +19 -0
- data/lib/wayfarer/routing/path_rule.rb +54 -0
- data/lib/wayfarer/routing/protocol_rule.rb +21 -0
- data/lib/wayfarer/routing/query_rule.rb +59 -0
- data/lib/wayfarer/routing/router.rb +71 -0
- data/lib/wayfarer/routing/rule.rb +114 -0
- data/lib/wayfarer/routing/uri_rule.rb +21 -0
- data/lib/wayfarer.rb +68 -0
- data/spec/configuration_spec.rb +26 -0
- data/spec/crawl_spec.rb +48 -0
- data/spec/finders_spec.rb +49 -0
- data/spec/frontiers/memory_bloomfilter_spec.rb +6 -0
- data/spec/frontiers/memory_frontier_spec.rb +6 -0
- data/spec/frontiers/memory_trie_frontier_spec.rb +6 -0
- data/spec/frontiers/normalize_uris_spec.rb +59 -0
- data/spec/frontiers/redis_bloomfilter_spec.rb +6 -0
- data/spec/frontiers/redis_frontier_spec.rb +6 -0
- data/spec/http_adapters/adapter_pool_spec.rb +33 -0
- data/spec/http_adapters/net_http_adapter_spec.rb +83 -0
- data/spec/http_adapters/selenium_adapter_spec.rb +53 -0
- data/spec/integration/callbacks_spec.rb +42 -0
- data/spec/integration/locals_spec.rb +106 -0
- data/spec/integration/peeking_spec.rb +61 -0
- data/spec/job_spec.rb +122 -0
- data/spec/page_spec.rb +38 -0
- data/spec/parsers/json_parser_spec.rb +30 -0
- data/spec/parsers/xml_parser_spec.rb +24 -0
- data/spec/processor_spec.rb +31 -0
- data/spec/routing/custom_rule_spec.rb +26 -0
- data/spec/routing/filetypes_rule_spec.rb +40 -0
- data/spec/routing/host_rule_spec.rb +48 -0
- data/spec/routing/path_rule_spec.rb +66 -0
- data/spec/routing/protocol_rule_spec.rb +26 -0
- data/spec/routing/query_rule_spec.rb +124 -0
- data/spec/routing/router_spec.rb +67 -0
- data/spec/routing/rule_spec.rb +251 -0
- data/spec/routing/uri_rule_spec.rb +24 -0
- data/spec/shared/frontier.rb +96 -0
- data/spec/spec_helpers.rb +62 -0
- data/spec/wayfarer_spec.rb +24 -0
- data/support/static/finders.html +38 -0
- data/support/static/graph/details/a.html +10 -0
- data/support/static/graph/details/b.html +10 -0
- data/support/static/graph/index.html +20 -0
- data/support/static/json/dummy.json +13 -0
- data/support/static/links/links.html +28 -0
- data/support/static/xml/dummy.xml +120 -0
- data/support/test_app.rb +45 -0
- data/wayfarer-jruby.gemspec +49 -0
- data/wayfarer.gemspec +53 -0
- metadata +697 -0
@@ -0,0 +1,187 @@
|
|
1
|
+
<section class="navigation">
|
2
|
+
<input id="navigation__toggle-checkbox" class="navigation__toggle-checkbox" type="checkbox">
|
3
|
+
<label for="navigation__toggle-checkbox" class="navigation__toggle-label">
|
4
|
+
<span class="show">Show navigation</span>
|
5
|
+
<span class="hide">Hide navigation</span>
|
6
|
+
</label>
|
7
|
+
<nav class="navigation__main">
|
8
|
+
<ul class="navigation__list">
|
9
|
+
<li class="navigation__category">
|
10
|
+
<h1 class="navigation__category__title">Guides</h1>
|
11
|
+
<ul class="navigation__list">
|
12
|
+
<li class="navigation__page">
|
13
|
+
<a class="navigation__link" href="{{base}}/guides/tutorial.html">
|
14
|
+
Tutorial
|
15
|
+
</a>
|
16
|
+
</li>
|
17
|
+
<li class="navigation__page">
|
18
|
+
<a class="navigation__link" href="{{base}}/guides/configuration.html">
|
19
|
+
Configuration
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
<li class="navigation__page">
|
23
|
+
<a class="navigation__link" href="{{base}}/guides/halting.html">
|
24
|
+
Halting
|
25
|
+
</a>
|
26
|
+
</li>
|
27
|
+
<li class="navigation__page">
|
28
|
+
<a class="navigation__link" href="{{base}}/guides/locals.html">
|
29
|
+
Locals
|
30
|
+
</a>
|
31
|
+
</li>
|
32
|
+
<li class="navigation__page">
|
33
|
+
<a class="navigation__link" href="{{base}}/guides/page_objects.html">
|
34
|
+
<code>Page</code> objects
|
35
|
+
</a>
|
36
|
+
</li>
|
37
|
+
<li class="navigation__page">
|
38
|
+
<a class="navigation__link" href="{{base}}/guides/error_handling.html">
|
39
|
+
Error handling
|
40
|
+
</a>
|
41
|
+
</li>
|
42
|
+
<li class="navigation__page">
|
43
|
+
<a class="navigation__link" href="{{base}}/guides/frontiers.html">
|
44
|
+
(Redis) Frontiers
|
45
|
+
</a>
|
46
|
+
</li>
|
47
|
+
<li class="navigation__page">
|
48
|
+
<a class="navigation__link" href="{{base}}/guides/peeking.html">
|
49
|
+
Peeking
|
50
|
+
</a>
|
51
|
+
</li>
|
52
|
+
<li class="navigation__page">
|
53
|
+
<a class="navigation__link" href="{{base}}/guides/selenium_capybara.html">
|
54
|
+
Selenium & Capybara
|
55
|
+
</a>
|
56
|
+
</li>
|
57
|
+
<li class="navigation__page">
|
58
|
+
<a class="navigation__link" href="{{base}}/guides/callbacks.html">
|
59
|
+
Callbacks
|
60
|
+
</a>
|
61
|
+
</li>
|
62
|
+
<li class="navigation__page">
|
63
|
+
<a class="navigation__link" href="{{base}}/guides/cli.html">
|
64
|
+
CLI
|
65
|
+
</a>
|
66
|
+
</li>
|
67
|
+
<li class="navigation__page">
|
68
|
+
<a class="navigation__link" href="{{base}}/guides/job_queues.html">
|
69
|
+
Job queues
|
70
|
+
</a>
|
71
|
+
</li>
|
72
|
+
<li class="navigation__page">
|
73
|
+
<a class="navigation__link" href="{{base}}/guides/logging.html">
|
74
|
+
Logging
|
75
|
+
</a>
|
76
|
+
</li>
|
77
|
+
</ul>
|
78
|
+
</li>
|
79
|
+
|
80
|
+
<li class="navigation__category">
|
81
|
+
<h1 class="navigation__category__title">Routing</h1>
|
82
|
+
<ul class="navigation__list">
|
83
|
+
<li class="navigation__page">
|
84
|
+
<a class="navigation__link" href="{{base}}/routing/routes.html">
|
85
|
+
Routes
|
86
|
+
</a>
|
87
|
+
</li>
|
88
|
+
<li class="navigation__page">
|
89
|
+
<a class="navigation__link" href="{{base}}/routing/uri_rules.html">
|
90
|
+
URI rules
|
91
|
+
</a>
|
92
|
+
</li>
|
93
|
+
<li class="navigation__page">
|
94
|
+
<a class="navigation__link" href="{{base}}/routing/host_rules.html">
|
95
|
+
Host rules
|
96
|
+
</a>
|
97
|
+
</li>
|
98
|
+
<li class="navigation__page">
|
99
|
+
<a class="navigation__link" href="{{base}}/routing/path_rules.html">
|
100
|
+
Path rules
|
101
|
+
</a>
|
102
|
+
</li>
|
103
|
+
<li class="navigation__page">
|
104
|
+
<a class="navigation__link" href="{{base}}/routing/query_rules.html">
|
105
|
+
Query rules
|
106
|
+
</a>
|
107
|
+
</li>
|
108
|
+
<li class="navigation__page">
|
109
|
+
<a class="navigation__link" href="{{base}}/routing/protocol_rules.html">
|
110
|
+
Protocol rules
|
111
|
+
</a>
|
112
|
+
</li>
|
113
|
+
<li class="navigation__page">
|
114
|
+
<a class="navigation__link" href="{{base}}/routing/filetypes_rules.html">
|
115
|
+
Filetypes rules
|
116
|
+
</a>
|
117
|
+
</li>
|
118
|
+
<li class="navigation__page">
|
119
|
+
<a class="navigation__link" href="{{base}}/routing/custom_rules.html">
|
120
|
+
Custom rules
|
121
|
+
</a>
|
122
|
+
</li>
|
123
|
+
</ul>
|
124
|
+
</li>
|
125
|
+
|
126
|
+
<li class="navigation__category">
|
127
|
+
<h1 class="navigation__category__title">Recipes</h1>
|
128
|
+
<ul class="navigation__list">
|
129
|
+
<li class="navigation__page">
|
130
|
+
<a class="navigation__link" href="{{base}}/recipes/multiple_uris.html">
|
131
|
+
Starting from multiple URIs
|
132
|
+
</a>
|
133
|
+
</li>
|
134
|
+
<li class="navigation__page">
|
135
|
+
<a class="navigation__link" href="{{base}}/recipes/authentication.html">
|
136
|
+
Authentication
|
137
|
+
</a>
|
138
|
+
</li>
|
139
|
+
<li class="navigation__page">
|
140
|
+
<a class="navigation__link" href="{{base}}/recipes/screenshots.html">
|
141
|
+
Taking screenshots
|
142
|
+
</a>
|
143
|
+
</li>
|
144
|
+
<li class="navigation__page">
|
145
|
+
<a class="navigation__link" href="{{base}}/recipes/javascript.html">
|
146
|
+
Executing JavaScript
|
147
|
+
</a>
|
148
|
+
</li>
|
149
|
+
<li class="navigation__page">
|
150
|
+
<a class="navigation__link" href="{{base}}/recipes/csv.html">
|
151
|
+
CSV output
|
152
|
+
</a>
|
153
|
+
</li>
|
154
|
+
</ul>
|
155
|
+
</li>
|
156
|
+
|
157
|
+
<li class="navigation__category">
|
158
|
+
<h1 class="navigation__category__title">Miscellaneous</h1>
|
159
|
+
<ul class="navigation__list">
|
160
|
+
<li class="navigation__page">
|
161
|
+
<a class="navigation__link" href="//github.com/bauerd/wayfarer">
|
162
|
+
Code on GitHub
|
163
|
+
</a>
|
164
|
+
</li>
|
165
|
+
<li class="navigation__page">
|
166
|
+
<a class="navigation__link" href="http://www.rubydoc.info/github/bauerd/wayfarer">
|
167
|
+
API documentation
|
168
|
+
</a>
|
169
|
+
</li>
|
170
|
+
<li class="navigation__page">
|
171
|
+
<a class="navigation__link" href="{{base}}/misc/testing.html">
|
172
|
+
Testing
|
173
|
+
</a>
|
174
|
+
</li>
|
175
|
+
<li class="navigation__page">
|
176
|
+
<a class="navigation__link" href="{{base}}/misc/contributing.html">
|
177
|
+
Contributing
|
178
|
+
</a>
|
179
|
+
</li>
|
180
|
+
</ul>
|
181
|
+
</li>
|
182
|
+
|
183
|
+
<label for="navigation__toggle-checkbox" class="navigation__close-bottom">
|
184
|
+
Hide navigation
|
185
|
+
</label>
|
186
|
+
</nav>
|
187
|
+
</section>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
{% include base.html %}
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
<div class="wrapper">
|
8
|
+
<aside class="sidebar">
|
9
|
+
<header class="site-header">
|
10
|
+
<h1 class="site-header__title">
|
11
|
+
<a href="{{base}}" class="site-header__link">{{ site.title }}</a>
|
12
|
+
</h1>
|
13
|
+
<div class="site-header__version">
|
14
|
+
0.0.3
|
15
|
+
</div>
|
16
|
+
</header>
|
17
|
+
|
18
|
+
<section class="badges">
|
19
|
+
<iframe class="star-button" src="https://ghbtns.com/github-btn.html?user=bauerd&repo=wayfarer&type=star" frameborder="0" scrolling="0" width="50px" height="20px"></iframe>
|
20
|
+
<img class="build-status" src="https://travis-ci.org/bauerd/wayfarer.svg?branch=master">
|
21
|
+
</section>
|
22
|
+
|
23
|
+
{% include navigation.html %}
|
24
|
+
</aside>
|
25
|
+
|
26
|
+
<main class="page-content">
|
27
|
+
{{content}}
|
28
|
+
|
29
|
+
<aside class="page-meta">
|
30
|
+
Instructions unclear or not working? Please
|
31
|
+
<a href="{{site.github.repository_url}}/edit/master/docs/{{page.path}}">
|
32
|
+
edit this page
|
33
|
+
</a>
|
34
|
+
or
|
35
|
+
<a href="{{site.github.repository_url}}/issues/new">
|
36
|
+
file a bug
|
37
|
+
</a>
|
38
|
+
</aside>
|
39
|
+
</main>
|
40
|
+
</div>
|
41
|
+
</body>
|
42
|
+
</html>
|
@@ -0,0 +1,439 @@
|
|
1
|
+
@import "vendor/normalize-3.0.2";
|
2
|
+
@import "vendor/pygments";
|
3
|
+
@import "vendor/bourbon/bourbon";
|
4
|
+
@import "vendor/neat/neat";
|
5
|
+
|
6
|
+
*:focus,
|
7
|
+
*:focus:hover {
|
8
|
+
outline: rem(1) dotted $mikado;
|
9
|
+
background: rgba($mikado, 0.05);
|
10
|
+
}
|
11
|
+
|
12
|
+
html {
|
13
|
+
@include media($mobile) {
|
14
|
+
font-size: 87.5%;
|
15
|
+
}
|
16
|
+
|
17
|
+
@include media(min-width 560px) {
|
18
|
+
font-size: 112.5%;
|
19
|
+
}
|
20
|
+
|
21
|
+
@include media($desktop) {
|
22
|
+
font-size: 100%;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
body {
|
27
|
+
font: {
|
28
|
+
family: "Titillium", sans-serif;
|
29
|
+
size: rem($fs);
|
30
|
+
}
|
31
|
+
line-height: $rlh;
|
32
|
+
-webkit-font-smoothing: antialiased;
|
33
|
+
|
34
|
+
background: $mine-shaft;
|
35
|
+
color: $mine-shaft;
|
36
|
+
|
37
|
+
-webkit-tap-highlight-color: rgba($emerald, 0.8);
|
38
|
+
}
|
39
|
+
|
40
|
+
h1, h2, h3, h4, h5, h6 {
|
41
|
+
margin-bottom: rem($alh);
|
42
|
+
font-weight: normal;
|
43
|
+
color: tint($mine-shaft, 10%);
|
44
|
+
}
|
45
|
+
|
46
|
+
h3, h4, h5, h6 {
|
47
|
+
margin-bottom: rem($alh * 0.5);
|
48
|
+
}
|
49
|
+
|
50
|
+
h1 {
|
51
|
+
font-size: rem(32);
|
52
|
+
line-height: rem($alh * 1.5);
|
53
|
+
}
|
54
|
+
|
55
|
+
h2 {
|
56
|
+
font-size: rem(26);
|
57
|
+
line-height: rem($alh);
|
58
|
+
}
|
59
|
+
|
60
|
+
h3 {
|
61
|
+
font-size: rem(20);
|
62
|
+
line-height: rem($alh);
|
63
|
+
}
|
64
|
+
|
65
|
+
h4 {
|
66
|
+
font-size: rem(18);
|
67
|
+
line-height: rem($alh);
|
68
|
+
}
|
69
|
+
|
70
|
+
h5, h6 {
|
71
|
+
font: inherit;
|
72
|
+
}
|
73
|
+
|
74
|
+
ul, ol, p {
|
75
|
+
margin: rem($alh * 0.5) 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
ul, ol {
|
79
|
+
padding-left: rem($alh * 0.7);
|
80
|
+
}
|
81
|
+
|
82
|
+
hr {
|
83
|
+
border: 0;
|
84
|
+
height: rem(1);
|
85
|
+
margin: rem($alh) 0;
|
86
|
+
background: tint($mine-shaft, 95%);
|
87
|
+
}
|
88
|
+
|
89
|
+
a {
|
90
|
+
color: $blue;
|
91
|
+
text-decoration: none;
|
92
|
+
|
93
|
+
&:hover {
|
94
|
+
color: $amaranth;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
code {
|
99
|
+
font-family: "Roboto Mono", monospace;
|
100
|
+
font-size: 0.95em;
|
101
|
+
letter-spacing: rem(-0.5);
|
102
|
+
}
|
103
|
+
|
104
|
+
pre {
|
105
|
+
margin: 0;
|
106
|
+
}
|
107
|
+
|
108
|
+
table {
|
109
|
+
width: 100%;
|
110
|
+
margin-bottom: rem(24);
|
111
|
+
}
|
112
|
+
|
113
|
+
th {
|
114
|
+
font-weight: bold;
|
115
|
+
background-color: tint($mine-shaft, 95%);
|
116
|
+
}
|
117
|
+
|
118
|
+
th, td {
|
119
|
+
text-align: left;
|
120
|
+
padding: rem(4) rem(10);
|
121
|
+
border-bottom: rem(1) solid tint($mine-shaft, 85%);
|
122
|
+
}
|
123
|
+
|
124
|
+
@include selection {
|
125
|
+
background: rgba($mikado, 0.6);
|
126
|
+
}
|
127
|
+
|
128
|
+
.note {
|
129
|
+
margin: rem($alh * 0.5) 0;
|
130
|
+
padding: rem($alh * 0.35) rem($alh * 0.5);
|
131
|
+
|
132
|
+
background-color: tint($mikado, 90%);
|
133
|
+
color: shade($mikado, 75%);
|
134
|
+
|
135
|
+
font-size: rem(14);
|
136
|
+
|
137
|
+
&:before {
|
138
|
+
content: "Note";
|
139
|
+
display: inline-block;
|
140
|
+
margin-right: 0.25em;
|
141
|
+
padding: rem(4) rem(4) rem(2) rem(4);
|
142
|
+
border-radius: rem(2);
|
143
|
+
|
144
|
+
background: $mikado;
|
145
|
+
|
146
|
+
font: {
|
147
|
+
size: rem(12);
|
148
|
+
weight: bold;
|
149
|
+
}
|
150
|
+
text-transform: uppercase;
|
151
|
+
letter-spacing: rem(0.5);
|
152
|
+
line-height: 1;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
.highlight {
|
157
|
+
margin: rem($alh * 0.75) 0;
|
158
|
+
|
159
|
+
border-radius: rem(4);
|
160
|
+
border: rem(1) solid rgba($mine-shaft, 0.1);
|
161
|
+
border-top-color:rgba($mine-shaft, 0.05);
|
162
|
+
border-bottom-color:rgba($mine-shaft, 0.15);
|
163
|
+
|
164
|
+
// background-color: tint($mine-shaft, 98%);
|
165
|
+
font-size: rem(14);
|
166
|
+
line-height: 1.8;
|
167
|
+
|
168
|
+
pre,
|
169
|
+
code {
|
170
|
+
display: block;
|
171
|
+
padding: rem($alh * 0.25) rem($alh * 0.5);
|
172
|
+
}
|
173
|
+
|
174
|
+
pre code {
|
175
|
+
padding: 0;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
.illustration {
|
181
|
+
margin-bottom: rem($alh * 0.5);
|
182
|
+
font-size: rem(14);
|
183
|
+
line-height: 1.1;
|
184
|
+
}
|
185
|
+
|
186
|
+
.wrapper {
|
187
|
+
@include outer-container;
|
188
|
+
max-width: rem(1080);
|
189
|
+
margin: 0 auto;
|
190
|
+
}
|
191
|
+
|
192
|
+
.sidebar {
|
193
|
+
color: white;
|
194
|
+
|
195
|
+
@include media($desktop) {
|
196
|
+
@include span-columns(4);
|
197
|
+
padding-top: rem($alh);
|
198
|
+
}
|
199
|
+
|
200
|
+
@include media($mobile) {
|
201
|
+
@include span-columns(16);
|
202
|
+
padding-top: rem($alh * 0.5);
|
203
|
+
text-align: center;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
.site-header {
|
208
|
+
margin-bottom: rem($alh * 0.5);
|
209
|
+
}
|
210
|
+
|
211
|
+
.site-header__title {
|
212
|
+
display: inline-block;
|
213
|
+
font: {
|
214
|
+
size: rem(24);
|
215
|
+
weight: bold;
|
216
|
+
}
|
217
|
+
margin-bottom: 0;
|
218
|
+
margin-right: rem($alh * 0.5);
|
219
|
+
line-height: 1.2;
|
220
|
+
text-decoration: uppercase;
|
221
|
+
line-height: rem($alh);
|
222
|
+
}
|
223
|
+
|
224
|
+
.site-header__link {
|
225
|
+
color: white;
|
226
|
+
text-decoration: none;
|
227
|
+
|
228
|
+
&:hover {
|
229
|
+
color: rgba(white, 0.8);
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
.site-header__version {
|
234
|
+
color: tint($mine-shaft, 60%);
|
235
|
+
}
|
236
|
+
|
237
|
+
.badges {
|
238
|
+
@include clearfix;
|
239
|
+
|
240
|
+
height: rem(20);
|
241
|
+
margin-bottom: rem($alh);
|
242
|
+
|
243
|
+
@include media($mobile) {
|
244
|
+
display: inline-block;
|
245
|
+
margin: 0 auto;
|
246
|
+
margin-bottom: rem($alh * 0.5);
|
247
|
+
}
|
248
|
+
}
|
249
|
+
|
250
|
+
.star-button,
|
251
|
+
.build-status {
|
252
|
+
display: inline-block;
|
253
|
+
float: left;
|
254
|
+
}
|
255
|
+
|
256
|
+
.star-button {
|
257
|
+
margin-right: rem($alh * 0.25);
|
258
|
+
}
|
259
|
+
|
260
|
+
.page-content {
|
261
|
+
@include media($mobile) {
|
262
|
+
@include span-columns(16);
|
263
|
+
padding: rem($alh * 0.5) rem($alh);
|
264
|
+
}
|
265
|
+
|
266
|
+
@include media($desktop) {
|
267
|
+
@include span-columns(12);
|
268
|
+
min-height: 100vh;
|
269
|
+
padding: 1em 3em;
|
270
|
+
}
|
271
|
+
|
272
|
+
background: white;
|
273
|
+
|
274
|
+
h1, h2 {
|
275
|
+
padding-bottom: rem($alh * 0.25);
|
276
|
+
border-bottom: 1px solid tint($mine-shaft, 90%);
|
277
|
+
|
278
|
+
&:not(:first-child) {
|
279
|
+
margin-top: rem($alh * 2);
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
|
284
|
+
.navigation__list {
|
285
|
+
margin: 0 0 rem($alh) 0;
|
286
|
+
padding: 0;
|
287
|
+
list-style: none;
|
288
|
+
}
|
289
|
+
|
290
|
+
@include media($mobile) {
|
291
|
+
.navigation {
|
292
|
+
@include clearfix;
|
293
|
+
}
|
294
|
+
|
295
|
+
.navigation__toggle-checkbox,
|
296
|
+
.navigation__toggle-label,
|
297
|
+
.navigation__main {
|
298
|
+
display: block;
|
299
|
+
float: left;
|
300
|
+
width: 100%;
|
301
|
+
}
|
302
|
+
|
303
|
+
.navigation__toggle-checkbox {
|
304
|
+
@include appearance(none);
|
305
|
+
}
|
306
|
+
|
307
|
+
.navigation__toggle-label {
|
308
|
+
display: block;
|
309
|
+
padding: rem($alh * 0.5) rem($alh * 0.25);
|
310
|
+
|
311
|
+
background: rgba(white, 0.05);
|
312
|
+
|
313
|
+
cursor: pointer;
|
314
|
+
|
315
|
+
&:hover {
|
316
|
+
background: rgba(white, 0.1);
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
.navigation__toggle-checkbox ~ .navigation__toggle-label {
|
321
|
+
.show {
|
322
|
+
display: block;
|
323
|
+
}
|
324
|
+
|
325
|
+
.hide {
|
326
|
+
display: none;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
|
330
|
+
.navigation__toggle-checkbox:checked ~ .navigation__toggle-label {
|
331
|
+
background: $amaranth;
|
332
|
+
|
333
|
+
&:hover {
|
334
|
+
background: rgba($amaranth, 0.9);
|
335
|
+
}
|
336
|
+
|
337
|
+
.show {
|
338
|
+
display: none;
|
339
|
+
}
|
340
|
+
|
341
|
+
.hide {
|
342
|
+
display: block;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
.navigation__toggle-checkbox ~ .navigation__main {
|
347
|
+
display: none;
|
348
|
+
}
|
349
|
+
|
350
|
+
.navigation__toggle-checkbox:checked ~ .navigation__main {
|
351
|
+
display: block;
|
352
|
+
}
|
353
|
+
|
354
|
+
.navigation__main {
|
355
|
+
background: white;
|
356
|
+
}
|
357
|
+
|
358
|
+
.navigation__category__title {
|
359
|
+
margin-bottom: rem($alh * 0.25);
|
360
|
+
font-size: rem(14);
|
361
|
+
text-transform: uppercase;
|
362
|
+
letter-spacing: rem(2);
|
363
|
+
}
|
364
|
+
|
365
|
+
.navigation__link {
|
366
|
+
display: block;
|
367
|
+
margin-bottom: 1px;
|
368
|
+
padding: rem($alh * 0.25);
|
369
|
+
padding-top: rem($alh * 0.4);
|
370
|
+
|
371
|
+
background-color: tint($mine-shaft, 95%);
|
372
|
+
|
373
|
+
&:hover {
|
374
|
+
background-color: $mikado;
|
375
|
+
color: $mine-shaft;
|
376
|
+
}
|
377
|
+
}
|
378
|
+
|
379
|
+
.navigation__close-bottom {
|
380
|
+
font-size: rem(14);
|
381
|
+
display: inline-block;
|
382
|
+
color: $amaranth;
|
383
|
+
border: 1px solid $amaranth;
|
384
|
+
border-radius: 1em;
|
385
|
+
padding: rem(2) rem($alh * 0.5) 0 rem($alh * 0.5);
|
386
|
+
cursor: pointer;
|
387
|
+
|
388
|
+
&:hover {
|
389
|
+
background: $amaranth;
|
390
|
+
color: white;
|
391
|
+
}
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
@include media($desktop) {
|
396
|
+
.navigation__toggle-checkbox,
|
397
|
+
.navigation__toggle-label,
|
398
|
+
.navigation__close-bottom {
|
399
|
+
display: none;
|
400
|
+
}
|
401
|
+
|
402
|
+
.navigation__list {
|
403
|
+
margin: 0 0 rem($alh) 0;
|
404
|
+
padding: 0;
|
405
|
+
}
|
406
|
+
|
407
|
+
.navigation__category__title {
|
408
|
+
margin-bottom: rem($alh * 0.25);
|
409
|
+
font-size: rem(14);
|
410
|
+
line-height: inherit;
|
411
|
+
color: tint($mine-shaft, 45%);
|
412
|
+
}
|
413
|
+
|
414
|
+
.navigation__link {
|
415
|
+
display: block;
|
416
|
+
font-size: rem(16);
|
417
|
+
color: $emerald;
|
418
|
+
|
419
|
+
&:hover {
|
420
|
+
color: $mikado;
|
421
|
+
font-weight: bold;
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
.navigation__link.navigation__link--active {
|
426
|
+
font-weight: bold;
|
427
|
+
color: white;
|
428
|
+
cursor: default;
|
429
|
+
pointer-events: none;
|
430
|
+
}
|
431
|
+
}
|
432
|
+
|
433
|
+
.page-meta {
|
434
|
+
font-size: rem(16);
|
435
|
+
margin: rem(24) 0 rem(16) 0;
|
436
|
+
padding-top: rem(24);
|
437
|
+
border-top: 1px solid tint($mine-shaft, 90%);
|
438
|
+
color: tint($mine-shaft, 40%);
|
439
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Grid
|
2
|
+
$max-width: 1080px;
|
3
|
+
$grid-columns: 16;
|
4
|
+
|
5
|
+
// Breakpoints
|
6
|
+
$desktop: min-width 1180px;
|
7
|
+
$mobile: max-width 1179px;
|
8
|
+
|
9
|
+
// Typography
|
10
|
+
$fs: 18;
|
11
|
+
$rlh: 1.6;
|
12
|
+
$alh: $fs * $rlh;
|
13
|
+
|
14
|
+
// Colours
|
15
|
+
$mine-shaft: #333333;
|
16
|
+
$blue: #4F67FF;
|
17
|
+
$amaranth: #E93C4F;
|
18
|
+
$emerald: #18CDCA;
|
19
|
+
$mikado: #FFDE20;
|
20
|
+
|
21
|
+
// These are used in the Pygments theme
|
22
|
+
// #333333
|
23
|
+
// #2F3661 (literals)
|
24
|
+
// #727273 (Comments)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Throws Sass warnings to announce library deprecations. You can disable them
|
4
|
+
/// by setting the `$output-bourbon-deprecation-warnings` variable to `false`.
|
5
|
+
///
|
6
|
+
/// @access private
|
7
|
+
|
8
|
+
@mixin _bourbon-deprecate($feature, $message: null) {
|
9
|
+
@if $output-bourbon-deprecation-warnings == true {
|
10
|
+
@warn "[Bourbon] [Deprecation] `#{$feature}` is deprecated and will be " +
|
11
|
+
"removed in 5.0.0. #{$message}";
|
12
|
+
@content;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin _bourbon-deprecate-for-prefixing($feature) {
|
17
|
+
@include _bourbon-deprecate($feature, "We suggest using an automated " +
|
18
|
+
"prefixing tool, like Autoprefixer.");
|
19
|
+
}
|