asciidocsy-jekyll-theme 0.3.0.pre.dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/_config.yml +66 -0
- data/_data/theme/alerts.yml +21 -0
- data/_data/theme/blocks.yml +33 -0
- data/_data/theme/forms.yml +72 -0
- data/_data/theme/navigation.yml +53 -0
- data/_data/theme/page-actions.yml +83 -0
- data/_data/theme/policies.yml +68 -0
- data/_data/theme/release-hx.yml +163 -0
- data/_data/theme/scripts.yml +43 -0
- data/_data/theme/semantics.yml +14 -0
- data/_data/theme/strings.yml +13 -0
- data/_data/theme/styles.yml +8 -0
- data/_docs/snippets/example_tabset-source.adoc +60 -0
- data/_docs/snippets/example_tabset-source_data.json +16 -0
- data/_docs/snippets/example_tabset-source_data.xml +17 -0
- data/_docs/snippets/example_tabset-source_data.yml +10 -0
- data/_docs/snippets/example_toggles.adoc +25 -0
- data/_docs/snippets/handlers-table.adoc +40 -0
- data/_docs/snippets/reference-cluster.adoc +1 -0
- data/_docs/topics/advanced-applications_c.adoc +50 -0
- data/_docs/topics/config-api_r.adoc +21 -0
- data/_docs/topics/config-release-hx.adoc +4 -0
- data/_docs/topics/config-search-algolia.adoc +77 -0
- data/_docs/topics/config-search.adoc +47 -0
- data/_docs/topics/config-semantics.adoc +45 -0
- data/_docs/topics/config-switcher_r.adoc +33 -0
- data/_docs/topics/config-tabber_r.adoc +49 -0
- data/_docs/topics/config-toggle_r.adoc +20 -0
- data/_docs/topics/config-versioning-amenders_r.adoc +76 -0
- data/_docs/topics/config-versioning-swaps_r.adoc +193 -0
- data/_docs/topics/config-versioning-tabsets_r.adoc +51 -0
- data/_docs/topics/config-versioning-toggles_r.adoc +42 -0
- data/_docs/topics/config-versioning.adoc +134 -0
- data/_docs/topics/config_r.adoc +131 -0
- data/_docs/topics/extend.adoc +70 -0
- data/_docs/topics/frontend-overview.adoc +62 -0
- data/_docs/topics/history-converse.adoc +18 -0
- data/_docs/topics/history-patches-merged.adoc +18 -0
- data/_docs/topics/history.adoc +23 -0
- data/_docs/topics/intro.adoc +6 -0
- data/_docs/topics/setup-bootstrap_t.adoc +71 -0
- data/_docs/topics/setup-environment_rg.adoc +65 -0
- data/_docs/topics/setup-quickstart_t.adoc +10 -0
- data/_docs/topics/setup.adoc +9 -0
- data/_docs/topics/syntax-highlighter-examples_r.adoc +172 -0
- data/_docs/topics/toolchain.adoc +79 -0
- data/_includes/_settings.liquid +2 -0
- data/_includes/_variables.sass +12 -0
- data/_includes/breadcrumbs.html +20 -0
- data/_includes/breadcrumbs_alt.html +6 -0
- data/_includes/config-api-objects.asciidoc +23 -0
- data/_includes/config-api-properties.asciidoc +29 -0
- data/_includes/config-api.asciidoc +29 -0
- data/_includes/feedback.html +59 -0
- data/_includes/footer-links_sup.html +5 -0
- data/_includes/footer.html +59 -0
- data/_includes/gdpr-message.html +41 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +74 -0
- data/_includes/header.html +22 -0
- data/_includes/hook.liquid +26 -0
- data/_includes/nav-site.html +30 -0
- data/_includes/nav-subject-menu.html +49 -0
- data/_includes/page-links.html +45 -0
- data/_includes/path-active.liquid +18 -0
- data/_includes/release-hx-change.asciidoc +7 -0
- data/_includes/release-hx-changes-listing.asciidoc +14 -0
- data/_includes/release-hx-note.asciidoc +54 -0
- data/_includes/release-hx-notes-listing.asciidoc +16 -0
- data/_includes/release-hx-revision.asciidoc +86 -0
- data/_includes/release-hx.asciidoc +57 -0
- data/_includes/scripts.html +8 -0
- data/_includes/search-form.html +113 -0
- data/_includes/see-also.html +17 -0
- data/_includes/social-links.html +10 -0
- data/_includes/string-eval.liquid +38 -0
- data/_includes/tail.html +7 -0
- data/_includes/theme-api-object-sub.asciidoc +4 -0
- data/_includes/theme-api-object.asciidoc +35 -0
- data/_includes/version-handler.html +245 -0
- data/_includes/versioning-controls.html +88 -0
- data/_layouts/default.html +94 -0
- data/_layouts/landing.html +28 -0
- data/_layouts/page.html +9 -0
- data/_layouts/post.html +8 -0
- data/_layouts/reference.html +6 -0
- data/_layouts/search.html +110 -0
- data/_layouts/topic.html +19 -0
- data/_sass/_asciidocsy.scss +698 -0
- data/_sass/_custom.scss +3 -0
- data/_sass/bootstrap/_alert.scss +51 -0
- data/_sass/bootstrap/_badge.scss +54 -0
- data/_sass/bootstrap/_breadcrumb.scss +41 -0
- data/_sass/bootstrap/_button-group.scss +163 -0
- data/_sass/bootstrap/_buttons.scss +137 -0
- data/_sass/bootstrap/_card.scss +289 -0
- data/_sass/bootstrap/_carousel.scss +197 -0
- data/_sass/bootstrap/_close.scss +41 -0
- data/_sass/bootstrap/_code.scss +48 -0
- data/_sass/bootstrap/_custom-forms.scss +507 -0
- data/_sass/bootstrap/_dropdown.scss +191 -0
- data/_sass/bootstrap/_forms.scss +330 -0
- data/_sass/bootstrap/_functions.scss +86 -0
- data/_sass/bootstrap/_grid.scss +52 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_input-group.scss +193 -0
- data/_sass/bootstrap/_jumbotron.scss +17 -0
- data/_sass/bootstrap/_list-group.scss +149 -0
- data/_sass/bootstrap/_media.scss +8 -0
- data/_sass/bootstrap/_mixins.scss +47 -0
- data/_sass/bootstrap/_modal.scss +229 -0
- data/_sass/bootstrap/_nav.scss +120 -0
- data/_sass/bootstrap/_navbar.scss +294 -0
- data/_sass/bootstrap/_pagination.scss +73 -0
- data/_sass/bootstrap/_popover.scss +171 -0
- data/_sass/bootstrap/_print.scss +141 -0
- data/_sass/bootstrap/_progress.scss +43 -0
- data/_sass/bootstrap/_reboot.scss +483 -0
- data/_sass/bootstrap/_root.scss +19 -0
- data/_sass/bootstrap/_spinners.scss +55 -0
- data/_sass/bootstrap/_tables.scss +185 -0
- data/_sass/bootstrap/_toasts.scss +44 -0
- data/_sass/bootstrap/_tooltip.scss +115 -0
- data/_sass/bootstrap/_transitions.scss +20 -0
- data/_sass/bootstrap/_type.scss +125 -0
- data/_sass/bootstrap/_utilities.scss +17 -0
- data/_sass/bootstrap/_variables.scss +1123 -0
- data/_sass/bootstrap/bootstrap-grid.scss +29 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap/bootstrap.scss +44 -0
- data/_sass/bootstrap/mixins/_alert.scss +13 -0
- data/_sass/bootstrap/mixins/_background-variant.scss +21 -0
- data/_sass/bootstrap/mixins/_badge.scss +17 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +63 -0
- data/_sass/bootstrap/mixins/_box-shadow.scss +20 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
- data/_sass/bootstrap/mixins/_buttons.scss +107 -0
- data/_sass/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_float.scss +14 -0
- data/_sass/bootstrap/mixins/_forms.scss +192 -0
- data/_sass/bootstrap/mixins/_gradients.scss +45 -0
- data/_sass/bootstrap/mixins/_grid-framework.scss +66 -0
- data/_sass/bootstrap/mixins/_grid.scss +51 -0
- data/_sass/bootstrap/mixins/_hover.scss +37 -0
- data/_sass/bootstrap/mixins/_image.scss +36 -0
- data/_sass/bootstrap/mixins/_list-group.scss +21 -0
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_nav-divider.scss +10 -0
- data/_sass/bootstrap/mixins/_pagination.scss +22 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
- data/_sass/bootstrap/mixins/_size.scss +7 -0
- data/_sass/bootstrap/mixins/_table-row.scss +39 -0
- data/_sass/bootstrap/mixins/_text-emphasis.scss +16 -0
- data/_sass/bootstrap/mixins/_text-hide.scss +11 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +16 -0
- data/_sass/bootstrap/mixins/_visibility.scss +8 -0
- data/_sass/bootstrap/utilities/_align.scss +8 -0
- data/_sass/bootstrap/utilities/_background.scss +19 -0
- data/_sass/bootstrap/utilities/_borders.scss +75 -0
- data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
- data/_sass/bootstrap/utilities/_display.scss +26 -0
- data/_sass/bootstrap/utilities/_embed.scss +39 -0
- data/_sass/bootstrap/utilities/_flex.scss +51 -0
- data/_sass/bootstrap/utilities/_float.scss +11 -0
- data/_sass/bootstrap/utilities/_overflow.scss +5 -0
- data/_sass/bootstrap/utilities/_position.scss +32 -0
- data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
- data/_sass/bootstrap/utilities/_shadows.scss +6 -0
- data/_sass/bootstrap/utilities/_sizing.scss +20 -0
- data/_sass/bootstrap/utilities/_spacing.scss +73 -0
- data/_sass/bootstrap/utilities/_stretched-link.scss +19 -0
- data/_sass/bootstrap/utilities/_text.scss +72 -0
- data/_sass/bootstrap/utilities/_visibility.scss +13 -0
- data/assets/css/asciidocsy.bak.css +722 -0
- data/assets/css/asciidocsy.scss +9 -0
- data/assets/css/asciidoctor.css +776 -0
- data/assets/css/bootstrap-4.3.bak.css +13780 -0
- data/assets/css/bootstrap-toc.css +60 -0
- data/assets/css/bootstrap.scss +4 -0
- data/assets/css/custom.css +2 -0
- data/assets/css/font-awesome.css +2337 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/jquery.navgoco.css +69 -0
- data/assets/css/palette.css +217 -0
- data/assets/css/skins/colony.css +734 -0
- data/assets/css/skins/foundation-lime.css +727 -0
- data/assets/css/skins/foundation-potion.css +727 -0
- data/assets/css/skins/foundation.css +720 -0
- data/assets/css/skins/github.css +741 -0
- data/assets/css/skins/golo.css +738 -0
- data/assets/css/skins/iconic.css +762 -0
- data/assets/css/skins/maker.css +738 -0
- data/assets/css/skins/readthedocs.css +739 -0
- data/assets/css/skins/riak.css +759 -0
- data/assets/css/skins/rocket-panda.css +734 -0
- data/assets/css/skins/rubygems.css +722 -0
- data/assets/css/syntax/hljs/a11y-dark.css +99 -0
- data/assets/css/syntax/hljs/a11y-light.css +99 -0
- data/assets/css/syntax/hljs/agate.css +108 -0
- data/assets/css/syntax/hljs/an-old-hope.css +89 -0
- data/assets/css/syntax/hljs/androidstudio.css +66 -0
- data/assets/css/syntax/hljs/arduino-light.css +87 -0
- data/assets/css/syntax/hljs/arta.css +73 -0
- data/assets/css/syntax/hljs/ascetic.css +45 -0
- data/assets/css/syntax/hljs/atelier-cave-dark.css +83 -0
- data/assets/css/syntax/hljs/atelier-cave-light.css +85 -0
- data/assets/css/syntax/hljs/atelier-dune-dark.css +69 -0
- data/assets/css/syntax/hljs/atelier-dune-light.css +69 -0
- data/assets/css/syntax/hljs/atelier-estuary-dark.css +84 -0
- data/assets/css/syntax/hljs/atelier-estuary-light.css +84 -0
- data/assets/css/syntax/hljs/atelier-forest-dark.css +69 -0
- data/assets/css/syntax/hljs/atelier-forest-light.css +69 -0
- data/assets/css/syntax/hljs/atelier-heath-dark.css +69 -0
- data/assets/css/syntax/hljs/atelier-heath-light.css +69 -0
- data/assets/css/syntax/hljs/atelier-lakeside-dark.css +69 -0
- data/assets/css/syntax/hljs/atelier-lakeside-light.css +69 -0
- data/assets/css/syntax/hljs/atelier-plateau-dark.css +84 -0
- data/assets/css/syntax/hljs/atelier-plateau-light.css +84 -0
- data/assets/css/syntax/hljs/atelier-savanna-dark.css +84 -0
- data/assets/css/syntax/hljs/atelier-savanna-light.css +84 -0
- data/assets/css/syntax/hljs/atelier-seaside-dark.css +69 -0
- data/assets/css/syntax/hljs/atelier-seaside-light.css +69 -0
- data/assets/css/syntax/hljs/atelier-sulphurpool-dark.css +69 -0
- data/assets/css/syntax/hljs/atelier-sulphurpool-light.css +69 -0
- data/assets/css/syntax/hljs/atom-one-dark-reasonable.css +75 -0
- data/assets/css/syntax/hljs/atom-one-dark.css +96 -0
- data/assets/css/syntax/hljs/atom-one-light.css +96 -0
- data/assets/css/syntax/hljs/brown-paper.css +64 -0
- data/assets/css/syntax/hljs/brown-papersq.png +0 -0
- data/assets/css/syntax/hljs/codepen-embed.css +60 -0
- data/assets/css/syntax/hljs/color-brewer.css +71 -0
- data/assets/css/syntax/hljs/darcula.css +74 -0
- data/assets/css/syntax/hljs/dark.css +63 -0
- data/assets/css/syntax/hljs/default.css +99 -0
- data/assets/css/syntax/hljs/docco.css +97 -0
- data/assets/css/syntax/hljs/dracula.css +76 -0
- data/assets/css/syntax/hljs/far.css +71 -0
- data/assets/css/syntax/hljs/foundation.css +89 -0
- data/assets/css/syntax/hljs/github-gist.css +79 -0
- data/assets/css/syntax/hljs/github.css +99 -0
- data/assets/css/syntax/hljs/gml.css +78 -0
- data/assets/css/syntax/hljs/googlecode.css +89 -0
- data/assets/css/syntax/hljs/gradient-dark.css +122 -0
- data/assets/css/syntax/hljs/gradient-light.css +130 -0
- data/assets/css/syntax/hljs/grayscale.css +101 -0
- data/assets/css/syntax/hljs/gruvbox-dark.css +108 -0
- data/assets/css/syntax/hljs/gruvbox-light.css +108 -0
- data/assets/css/syntax/hljs/hopscotch.css +84 -0
- data/assets/css/syntax/hljs/hybrid.css +102 -0
- data/assets/css/syntax/hljs/idea.css +97 -0
- data/assets/css/syntax/hljs/ir-black.css +73 -0
- data/assets/css/syntax/hljs/isbl-editor-dark.css +112 -0
- data/assets/css/syntax/hljs/isbl-editor-light.css +111 -0
- data/assets/css/syntax/hljs/kimbie.dark.css +74 -0
- data/assets/css/syntax/hljs/kimbie.light.css +74 -0
- data/assets/css/syntax/hljs/lightfair.css +88 -0
- data/assets/css/syntax/hljs/lioshi.css +88 -0
- data/assets/css/syntax/hljs/magula.css +70 -0
- data/assets/css/syntax/hljs/mono-blue.css +56 -0
- data/assets/css/syntax/hljs/monokai-sublime.css +83 -0
- data/assets/css/syntax/hljs/monokai.css +71 -0
- data/assets/css/syntax/hljs/night-owl.css +182 -0
- data/assets/css/syntax/hljs/nnfx-dark.css +106 -0
- data/assets/css/syntax/hljs/nnfx.css +106 -0
- data/assets/css/syntax/hljs/nord.css +309 -0
- data/assets/css/syntax/hljs/obsidian.css +88 -0
- data/assets/css/syntax/hljs/ocean.css +74 -0
- data/assets/css/syntax/hljs/paraiso-dark.css +72 -0
- data/assets/css/syntax/hljs/paraiso-light.css +72 -0
- data/assets/css/syntax/hljs/pojoaque.css +83 -0
- data/assets/css/syntax/hljs/pojoaque.jpg +0 -0
- data/assets/css/syntax/hljs/purebasic.css +96 -0
- data/assets/css/syntax/hljs/qtcreator_dark.css +83 -0
- data/assets/css/syntax/hljs/qtcreator_light.css +83 -0
- data/assets/css/syntax/hljs/railscasts.css +106 -0
- data/assets/css/syntax/hljs/rainbow.css +85 -0
- data/assets/css/syntax/hljs/routeros.css +108 -0
- data/assets/css/syntax/hljs/school-book.css +69 -0
- data/assets/css/syntax/hljs/school-book.png +0 -0
- data/assets/css/syntax/hljs/shades-of-purple.css +96 -0
- data/assets/css/syntax/hljs/solarized-dark.css +84 -0
- data/assets/css/syntax/hljs/solarized-light.css +84 -0
- data/assets/css/syntax/hljs/srcery.css +78 -0
- data/assets/css/syntax/hljs/stackoverflow-dark.css +78 -0
- data/assets/css/syntax/hljs/stackoverflow-light.css +78 -0
- data/assets/css/syntax/hljs/sunburst.css +102 -0
- data/assets/css/syntax/hljs/tomorrow-night-blue.css +75 -0
- data/assets/css/syntax/hljs/tomorrow-night-bright.css +74 -0
- data/assets/css/syntax/hljs/tomorrow-night-eighties.css +74 -0
- data/assets/css/syntax/hljs/tomorrow-night.css +75 -0
- data/assets/css/syntax/hljs/tomorrow.css +72 -0
- data/assets/css/syntax/hljs/vs.css +68 -0
- data/assets/css/syntax/hljs/vs2015.css +115 -0
- data/assets/css/syntax/hljs/xcode.css +104 -0
- data/assets/css/syntax/hljs/xt256.css +92 -0
- data/assets/css/syntax/hljs/zenburn.css +80 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/images/asciidocsy-nav-model.png +0 -0
- data/assets/images/asciidocsy-screenshot.png +0 -0
- data/assets/images/docops-labs-logo.png +0 -0
- data/assets/images/favicons/favicon-16x16.png +0 -0
- data/assets/images/favicons/favicon-32x32.png +0 -0
- data/assets/images/favicons/favicon.ico +0 -0
- data/assets/images/github-repo-download_screenshot.png +0 -0
- data/assets/images/logo-full.png +0 -0
- data/assets/images/logo.png +0 -0
- data/assets/images/logo.svg +87 -0
- data/assets/images/search-by-algolia-light-background.svg +1 -0
- data/assets/images/thumb-topic-data-source-edit.png +0 -0
- data/assets/js/anchor.min.js +9 -0
- data/assets/js/asciidoctor.min.js +1472 -0
- data/assets/js/bootstrap-toc.js +180 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/highlight.pack.js +870 -0
- data/assets/js/jquery-3.3.1.js +10364 -0
- data/assets/js/jquery-3.3.1.min.js +2 -0
- data/assets/js/jquery.cookie.js +114 -0
- data/assets/js/jquery.navgoco.js +314 -0
- data/assets/js/semantics.js +58 -0
- data/assets/js/tabber.js +111 -0
- data/assets/js/tail.js +37 -0
- data/assets/js/toggler.js +50 -0
- data/lib/asciidocsy/data/dependencies.yml +142 -0
- data/lib/asciidocsy/data/releases.yml +197 -0
- data/lib/asciidocsy/templates/notice-file.txt +16 -0
- data/lib/asciidocsy/version.rb +13 -0
- data/lib/asciidocsy.rb +1 -0
- metadata +423 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
Generates the HTML form and the jQuery scripts for:
|
|
3
|
+
- token [swap]s
|
|
4
|
+
- class [toggle]s
|
|
5
|
+
- DOM [amend]ers
|
|
6
|
+
Expects:
|
|
7
|
+
include.verb: String (swap|toggle|amend)
|
|
8
|
+
include.form: String (select|buttons)
|
|
9
|
+
include.opts: Array of Scalars or {slug:<slug>,text:<text>}
|
|
10
|
+
include.func: String (amenders only); name of predefined function OR .js file
|
|
11
|
+
Optional:
|
|
12
|
+
include.id: String (becomes form_id)
|
|
13
|
+
include.pick: String; the slug of the default option
|
|
14
|
+
include.slug: Token name for dictionary-free swaps
|
|
15
|
+
include.targ: String; the ID of the target element to amend
|
|
16
|
+
include.href: Liquid; For URL-based changers, non-variable portion of URL
|
|
17
|
+
include.args: Object; a way to pass an object to your function template
|
|
18
|
+
include.icon: String; FontAwesome reference
|
|
19
|
+
include.text: String; label for form field
|
|
20
|
+
{% endcomment %}
|
|
21
|
+
{% assign handler = handler | default: 0 | plus: 1 %}
|
|
22
|
+
{% assign verb = include.verb %}
|
|
23
|
+
{% assign form = include.form | default: "select" %}
|
|
24
|
+
{% assign pick = include.pick | default: "" %}
|
|
25
|
+
{% capture id_def %}handler-{{handler}}-{{form}}{% endcapture %}
|
|
26
|
+
{% assign form_id = include.id | default: id_def %}
|
|
27
|
+
{% assign func = include.func %}
|
|
28
|
+
{% assign href = include.href %}
|
|
29
|
+
{% assign targ = include.targ %}
|
|
30
|
+
<!-- handler: {{ handler }} ({{ form_id }}) -->
|
|
31
|
+
{% case form %}
|
|
32
|
+
|
|
33
|
+
{% when "select" %}
|
|
34
|
+
{% assign selected = "" %}
|
|
35
|
+
<div class="form-group">
|
|
36
|
+
{% if include.text %}
|
|
37
|
+
<label for="{{form_id}}">
|
|
38
|
+
{% if include.icon %}
|
|
39
|
+
<i class="icon {{ include.icon }}"></i>
|
|
40
|
+
{% endif %}
|
|
41
|
+
{{ include.text }}
|
|
42
|
+
</label>
|
|
43
|
+
{% endif %}
|
|
44
|
+
<select class="form-control" id="{{form_id}}">
|
|
45
|
+
{% for item in include.opts %}
|
|
46
|
+
{% assign selected = "" %}
|
|
47
|
+
{% if item['text'] %}
|
|
48
|
+
{% assign text = item['text'] %}
|
|
49
|
+
{% assign value = item['slug'] %}
|
|
50
|
+
{% else %}
|
|
51
|
+
{% assign text = item %}
|
|
52
|
+
{% assign value = item %}
|
|
53
|
+
{% endif %}
|
|
54
|
+
{% if include.opt_tpl %}
|
|
55
|
+
{% assign value = include.opt_tpl | liquify %}
|
|
56
|
+
{% endif %}
|
|
57
|
+
<option value="{{ value }}">{{ text }}</option>
|
|
58
|
+
{% endfor %}
|
|
59
|
+
</select>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
{% when "buttons" %}
|
|
63
|
+
{% if include.text or include.icon %}
|
|
64
|
+
<label for="{{ form_id }}">
|
|
65
|
+
{% if include.icon %}
|
|
66
|
+
<i class="{{ include.icon }}"></i>
|
|
67
|
+
{% endif %}
|
|
68
|
+
{% if include.text %}
|
|
69
|
+
{{ include.text | asciidocify:'inline' }}
|
|
70
|
+
{% endif %}
|
|
71
|
+
</label>
|
|
72
|
+
{% endif %}
|
|
73
|
+
<div class="btn-group btn-group-toggle {{verb}}-handler" id="{{form_id}}" data-toggle="buttons">
|
|
74
|
+
{% for item in include.opts %}
|
|
75
|
+
{% if item['text'] %}
|
|
76
|
+
{% assign text = item['text'] %}
|
|
77
|
+
{% assign value = item['slug'] %}
|
|
78
|
+
{% else %}
|
|
79
|
+
{% assign text = item %}
|
|
80
|
+
{% assign value = item %}
|
|
81
|
+
{% endif %}
|
|
82
|
+
<label class="btn btn-secondary btn-sm" for="{{value}}">
|
|
83
|
+
<input type="radio" name="{{form_id}}" id="{{value}}" value="{{ value }}">
|
|
84
|
+
{{ text }}
|
|
85
|
+
</label>
|
|
86
|
+
{% endfor %}
|
|
87
|
+
</div>
|
|
88
|
+
{% endcase %}
|
|
89
|
+
|
|
90
|
+
<script type="text/javascript">
|
|
91
|
+
{% unless handlers_init %}
|
|
92
|
+
{% assign handlers_init = true %}
|
|
93
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
94
|
+
{% endunless %}
|
|
95
|
+
{% if verb == "amend" %}
|
|
96
|
+
/**
|
|
97
|
+
DOM AMENDER
|
|
98
|
+
**/
|
|
99
|
+
$(function(){
|
|
100
|
+
$('select#{{ form_id }}').on('change', function () {
|
|
101
|
+
{% if include.file %}
|
|
102
|
+
{% assign args = include.args %}
|
|
103
|
+
{% include {{include.file}} args=args %}
|
|
104
|
+
{% else %}
|
|
105
|
+
{% case include.func %}
|
|
106
|
+
|
|
107
|
+
{% when "change-url" %}
|
|
108
|
+
/**
|
|
109
|
+
URL-CHANGER
|
|
110
|
+
**/
|
|
111
|
+
var target = $(this).val();
|
|
112
|
+
window.location = target;
|
|
113
|
+
$.cookie('{{ form_id }}', target);
|
|
114
|
+
return false;
|
|
115
|
+
|
|
116
|
+
{% when "change-href" %}
|
|
117
|
+
/**
|
|
118
|
+
STYLE CHANGER
|
|
119
|
+
**/
|
|
120
|
+
var newStyleSheet = {% if href -%}
|
|
121
|
+
{{ href | liquify }}
|
|
122
|
+
{%- else -%}
|
|
123
|
+
$(this).val()
|
|
124
|
+
{% endif %}
|
|
125
|
+
$('{{ targ }}').attr("href", newStyleSheet)
|
|
126
|
+
$.cookie('{{ form_id }}', $(this).val());
|
|
127
|
+
|
|
128
|
+
{% else %}
|
|
129
|
+
{% include {{include.file}} %}
|
|
130
|
+
|
|
131
|
+
{% endcase %}
|
|
132
|
+
{% endif %}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
{% elsif verb == "toggle" %}
|
|
136
|
+
/**
|
|
137
|
+
CLASS TOGGLER
|
|
138
|
+
**/
|
|
139
|
+
{% elsif verb == "swap" %}
|
|
140
|
+
/**
|
|
141
|
+
TOKEN SWAPPER
|
|
142
|
+
**/
|
|
143
|
+
{% assign slates = false %}
|
|
144
|
+
{% unless slate_dict_init %}
|
|
145
|
+
{% assign slate_dict_init = true %}
|
|
146
|
+
let slateDict = {}
|
|
147
|
+
{% endunless %}
|
|
148
|
+
{% if include.opts[0]['slug'] %}
|
|
149
|
+
{% assign slates = true %}
|
|
150
|
+
{% endif %}
|
|
151
|
+
{% for opt in include.opts %}
|
|
152
|
+
{% if slates %}
|
|
153
|
+
slateDict['{{ opt['slug'] }}'] = {
|
|
154
|
+
{% assign tokens = "" | split:"," %}
|
|
155
|
+
{%- for def in include.dict %}
|
|
156
|
+
{%- assign tok = def[0] %}
|
|
157
|
+
{%- if opt['dict'][tok] %}
|
|
158
|
+
{%- assign val = opt['dict'][tok] %}
|
|
159
|
+
{%- else %}
|
|
160
|
+
{%- assign val = def[1] %}
|
|
161
|
+
{%- endif %}
|
|
162
|
+
"{{ tok }}":"{{ val }}",
|
|
163
|
+
{%- endfor %}
|
|
164
|
+
{%- for def in opt['dict'] %}
|
|
165
|
+
{%- assign tok = def[0] %}
|
|
166
|
+
{%- unless include.dict[tok] %}
|
|
167
|
+
"{{ tok }}":"{{ def[1] }}",
|
|
168
|
+
{%- endunless %}
|
|
169
|
+
{%- endfor %}
|
|
170
|
+
}
|
|
171
|
+
{% endif %}
|
|
172
|
+
{% endfor %}
|
|
173
|
+
{% if form == "select" %}
|
|
174
|
+
$('#{{ form_id }}').on('change', function() {
|
|
175
|
+
{% elsif form == "buttons" %}
|
|
176
|
+
$('#{{ form_id }} input').focus(function () {
|
|
177
|
+
{%- else %}// attach the swap to a toggle
|
|
178
|
+
$('{{ form }} input').focus(function () {
|
|
179
|
+
{% endif %}
|
|
180
|
+
var val = $(this).val();
|
|
181
|
+
if (typeof slateDict[val] !== 'undefined') {
|
|
182
|
+
for ( let tok in slateDict[val] ) {
|
|
183
|
+
let token = "<$tok." + tok + ">"
|
|
184
|
+
let swap = '<span class="tok ' + tok + '">' + slateDict[val][tok] + '</span>'
|
|
185
|
+
let text = $(this).text();
|
|
186
|
+
$('main :not(script,.nosub,.nosub code)').contents().filter(function() {
|
|
187
|
+
return this.nodeType === 3;
|
|
188
|
+
}).replaceWith(function() {
|
|
189
|
+
return this.nodeValue.replace(token,swap);
|
|
190
|
+
});
|
|
191
|
+
$('.tok.' + tok).html(slateDict[val][tok]);
|
|
192
|
+
};
|
|
193
|
+
} else { // found no slateDict for this option
|
|
194
|
+
let token = "<$tok.{{ include.slug }}>";
|
|
195
|
+
let swap = '<span class="tok {{ include.slug }}">' + val + '</span>';
|
|
196
|
+
$('main :not(script,.nosub,.nosub code)').contents().filter(function() {
|
|
197
|
+
return this.nodeType === 3;
|
|
198
|
+
}).replaceWith(function() {
|
|
199
|
+
return this.nodeValue.replace(token,swap);
|
|
200
|
+
});
|
|
201
|
+
$('.tok.{{ include.slug }}').html(val);
|
|
202
|
+
};
|
|
203
|
+
$.cookie('{{ form_id }}', val);
|
|
204
|
+
});
|
|
205
|
+
{% endif %}
|
|
206
|
+
{% unless verb == "toggle"
|
|
207
|
+
or verb == "tab"
|
|
208
|
+
or (verb == "swap"\
|
|
209
|
+
and form != "buttons"
|
|
210
|
+
and form != "select")
|
|
211
|
+
%}
|
|
212
|
+
/**
|
|
213
|
+
Set value on page load
|
|
214
|
+
Priority order:
|
|
215
|
+
1. URL query string parameter
|
|
216
|
+
2. cookie parameter
|
|
217
|
+
3. default value from `pick:` property
|
|
218
|
+
4. first option listed
|
|
219
|
+
**/
|
|
220
|
+
$( document ).ready(function() {
|
|
221
|
+
var nochoice = false;
|
|
222
|
+
if ( urlParams.has('{{ form_id }}') ) {
|
|
223
|
+
var val = urlParams.get('{{ form_id}}')
|
|
224
|
+
} else if ( $.cookie('{{ form_id }}') ) {
|
|
225
|
+
var val = ($.cookie('{{ form_id }}'))
|
|
226
|
+
} else if ( '{{ pick }}' != '' ) {
|
|
227
|
+
var val = "{{ pick }}"
|
|
228
|
+
} else {
|
|
229
|
+
nochoice = true;
|
|
230
|
+
}
|
|
231
|
+
{% if form == "select" %}
|
|
232
|
+
if (nochoice) { var val = $('#{{ form_id }} option:first-child').val() }
|
|
233
|
+
$('#{{ form_id }}').val(val).change();
|
|
234
|
+
{% elsif form == "buttons" %}
|
|
235
|
+
if (nochoice) {
|
|
236
|
+
var val = $('#{{ form_id }} label:first-child input').val()
|
|
237
|
+
}
|
|
238
|
+
$('input[name="{{ form_id }}"][value="' + val + '"]').click()
|
|
239
|
+
{% elsif form == "none" %}
|
|
240
|
+
// force action without controls
|
|
241
|
+
{% endif %}
|
|
242
|
+
$.cookie('{{ form_id }}', val);
|
|
243
|
+
});
|
|
244
|
+
{% endunless %}
|
|
245
|
+
</script>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
Assembles version-handler features in various spot-specific clusters
|
|
3
|
+
{% endcomment %}
|
|
4
|
+
{% assign all_handlers = site.data.theme.versioning.handlers %}
|
|
5
|
+
{% unless show_handlers %}
|
|
6
|
+
{% assign default_handlers = site.data.theme.versioning.defaults[layout.kind]['list'] %}
|
|
7
|
+
{% assign page_handlers = page.version-handlers | split:"," %}
|
|
8
|
+
{% for hdlr in page_handlers %}
|
|
9
|
+
{% assign hdlr_split = hdlr | split:"" %}
|
|
10
|
+
{% if hdlr_split[0] != "-" and hdlr_split[0] != "+" %}
|
|
11
|
+
{% assign explicit = true %}
|
|
12
|
+
{% assign show_handlers = page_handlers %}
|
|
13
|
+
{% break %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% endfor %}
|
|
16
|
+
{% unless explicit %}
|
|
17
|
+
{% assign show_handlers = "" | split:"," %}
|
|
18
|
+
{% for hdlr in default_handlers %}
|
|
19
|
+
{% capture minusHdlr %}-{{ hdlr }}{% endcapture %}
|
|
20
|
+
{% unless page_handlers contains minusHdlr %}
|
|
21
|
+
{% assign show_handlers = show_handlers | push: hdlr %}
|
|
22
|
+
{% endunless %}
|
|
23
|
+
{% endfor %}
|
|
24
|
+
{% for hdlr in page_handlers %}
|
|
25
|
+
{% assign hdlr_split = hdlr | split:"" %}
|
|
26
|
+
{% if hdlr_split[0] == "+" %}
|
|
27
|
+
{% assign _hdlr = hdlr | replace: "+","" %}
|
|
28
|
+
{% assign show_handlers = show_handlers | push: _hdlr %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
{% endfor %}
|
|
31
|
+
{% endunless %}
|
|
32
|
+
{% endunless %}
|
|
33
|
+
{% for hdl in show_handlers %}
|
|
34
|
+
{% assign ctrl = all_handlers[hdl] %}
|
|
35
|
+
{% if ctrl['spot'] == include.spot %}
|
|
36
|
+
{% assign ctrl_name = hdl %}
|
|
37
|
+
{% assign verb = ctrl['verb'] %}
|
|
38
|
+
{% assign pick = ctrl['swap']['pick'] %}
|
|
39
|
+
{% assign dict = ctrl['swap']['dict'] %}
|
|
40
|
+
{% assign form = ctrl['form'] %}
|
|
41
|
+
{% if ctrl['swap']['data'] %}
|
|
42
|
+
{% assign opts = "" | split: "," %}
|
|
43
|
+
{% assign data_str = ctrl['swap']['data'] %}
|
|
44
|
+
{% include string-eval.liquid string=data_str %}
|
|
45
|
+
{% assign opts = data_obj %}
|
|
46
|
+
{% assign opt_tpl = ctrl['swap']['opts'] %}
|
|
47
|
+
{% else %}
|
|
48
|
+
{% assign opts = ctrl['swap']['opts'] %}
|
|
49
|
+
{% endif %}
|
|
50
|
+
{% assign slug = ctrl['swap']['slug'] %}
|
|
51
|
+
{% if ctrl['func'] %}
|
|
52
|
+
{% assign func = ctrl['func'] %}
|
|
53
|
+
{% if ctrl['func']['name'] or ctrl['func']['file'] %}
|
|
54
|
+
{% assign func = ctrl['func']['name'] %}
|
|
55
|
+
{% assign file = ctrl['func']['file'] %}
|
|
56
|
+
{% assign href = ctrl['func']['href'] %}
|
|
57
|
+
{% assign targ = ctrl['func']['targ'] %}
|
|
58
|
+
{% assign args = ctrl['func']['args'] %}
|
|
59
|
+
{% endif %}
|
|
60
|
+
{% endif %}
|
|
61
|
+
{% assign func = ctrl['func']['name'] %}
|
|
62
|
+
{% assign path = ctrl['func']['href'] %}
|
|
63
|
+
{% assign targ = ctrl['func']['targ'] %}
|
|
64
|
+
{% if verb == "toggle" %}
|
|
65
|
+
{% assign form = "buttons" %}
|
|
66
|
+
{% endif %}
|
|
67
|
+
{% assign form_id = ctrl_name %}
|
|
68
|
+
{% assign text = ctrl['show']['text'] %}
|
|
69
|
+
{% assign icon = ctrl['show']['icon'] %}
|
|
70
|
+
{% include version-handler.html
|
|
71
|
+
id=form_id
|
|
72
|
+
verb=verb
|
|
73
|
+
form=form
|
|
74
|
+
opts=opts
|
|
75
|
+
slug=slug
|
|
76
|
+
dict=dict
|
|
77
|
+
pick=pick
|
|
78
|
+
text=text
|
|
79
|
+
icon=icon
|
|
80
|
+
func=func
|
|
81
|
+
file=file
|
|
82
|
+
targ=targ
|
|
83
|
+
href=href
|
|
84
|
+
args=args
|
|
85
|
+
opt_tpl=opt_tpl
|
|
86
|
+
%}
|
|
87
|
+
{% endif %}
|
|
88
|
+
{% endfor %}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
footer: true
|
|
3
|
+
scripts:
|
|
4
|
+
- jquery
|
|
5
|
+
- jquery-cookie
|
|
6
|
+
- bootstrap
|
|
7
|
+
- popper
|
|
8
|
+
- anchors
|
|
9
|
+
- navgoco
|
|
10
|
+
- bootstrap-toc
|
|
11
|
+
- highlight-js
|
|
12
|
+
- algolia-instantsearch
|
|
13
|
+
- autocomplete
|
|
14
|
+
- algoliasearch-3
|
|
15
|
+
- asciidoctor
|
|
16
|
+
- asciidocsy-tabber
|
|
17
|
+
- asciidocsy-toggler
|
|
18
|
+
- asciidocsy-semantics
|
|
19
|
+
- asciidocsy-tail
|
|
20
|
+
---
|
|
21
|
+
<!DOCTYPE html>
|
|
22
|
+
<html lang="en" class="no-js">
|
|
23
|
+
<!-- Copyright 2019-2021 Vanessa Sochat-->
|
|
24
|
+
{% include hook.liquid template="default_html" spot="pre_head" %}
|
|
25
|
+
{% include head.html %}
|
|
26
|
+
{% include hook.liquid template="default_html" spot="post_head" %}
|
|
27
|
+
{% if site.services.analytics.google %}
|
|
28
|
+
{% include google-analytics.html %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
<body data-spy="scroll" data-target="#toc-side">
|
|
31
|
+
{% include hook.liquid template="default_html" spot="pre_header" %}
|
|
32
|
+
{% include header.html %}
|
|
33
|
+
{% include hook.liquid template="default_html" spot="post_header" %}
|
|
34
|
+
<div class="container-fluid td-outer {{ page.layout }}">
|
|
35
|
+
<div class="td-main">
|
|
36
|
+
<div class="row flex-xl-nowrap">
|
|
37
|
+
{% if layout.sidebar-left %}
|
|
38
|
+
<div id="sidebar-left" class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none"><!-- SUBJECT/PRODUCT REF/NAV -->
|
|
39
|
+
<div class="sticky-top sticky-offset">
|
|
40
|
+
<div class="sidebar-top">
|
|
41
|
+
{% include versioning-controls.html
|
|
42
|
+
spot="#sidebar-left .sidebar-top" %}
|
|
43
|
+
{% if site.data.theme.search.subject.show.spot == "#sidebar-left" %}
|
|
44
|
+
{% include search-form.html search="subject" %}
|
|
45
|
+
{% endif %}
|
|
46
|
+
</div>
|
|
47
|
+
<div class="sidebar-mid">
|
|
48
|
+
{% include versioning-controls.html
|
|
49
|
+
spot="#sidebar-left .sidebar-mid" %}
|
|
50
|
+
{% include nav-subject-menu.html manifest=site.data.manifest %}
|
|
51
|
+
</div>
|
|
52
|
+
<div class="sidebar-end">
|
|
53
|
+
{% include versioning-controls.html
|
|
54
|
+
spot="#sidebar-left .sidebar-end" %}
|
|
55
|
+
</div>
|
|
56
|
+
</div><!-- /.sticky-top -->
|
|
57
|
+
</div><!-- /#sidebar-left -->
|
|
58
|
+
{% endif %}
|
|
59
|
+
<main id="main" class="{{ layout.main-class | default: 'col-12 col-md-9 col-xl-8 pl-md-5' }}" role="main">
|
|
60
|
+
<div class="td-content">
|
|
61
|
+
{{ content }}
|
|
62
|
+
</div>
|
|
63
|
+
</main>
|
|
64
|
+
{% if layout.sidebar-right %}
|
|
65
|
+
<div id="sidebar-right" class="d-none d-xl-block col-xl-2 td-toc d-print-none"><!-- TOPIC/PAGE REF/NAV -->
|
|
66
|
+
<div class="sidebar-top">
|
|
67
|
+
{% include versioning-controls.html spot="#sidebar-right .sidebar-top" %}
|
|
68
|
+
<div class="td-page-meta ml-2 pb-1 pt-2 mb-0">
|
|
69
|
+
{% include page-links.html %}
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="sidebar-mid">
|
|
73
|
+
{% include versioning-controls.html spot="#sidebar-right .sidebar-mid" %}
|
|
74
|
+
{% if layout.toc == "sidebar" and site.data.theme.navigation.toc.show.spot == "#sidebar-right" %}
|
|
75
|
+
<nav id="toc-side" data-spy="affix" data-toggle="toc"></nav>
|
|
76
|
+
{% endif %}
|
|
77
|
+
</div>
|
|
78
|
+
<div class="sidebar-end">
|
|
79
|
+
{% include versioning-controls.html spot="#sidebar-right .sidebar-end" %}
|
|
80
|
+
{% if site.data.theme.semantics.role.term.show.spot == "#sidebar-right" %}
|
|
81
|
+
<nav id="terms-listing"></nav>
|
|
82
|
+
{% endif %}
|
|
83
|
+
</div>
|
|
84
|
+
</div><!-- /#sidebar-right -->
|
|
85
|
+
{% endif %}
|
|
86
|
+
</div><!-- /.row.flex-xl-nowrap -->
|
|
87
|
+
</div><!-- /.td-main -->
|
|
88
|
+
{% if layout.footer %}
|
|
89
|
+
{% include footer.html %}
|
|
90
|
+
{% endif %}
|
|
91
|
+
</div><!-- /.container-fluid.td-outer -->
|
|
92
|
+
{% include tail.html %}
|
|
93
|
+
</body>
|
|
94
|
+
</html>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
footer: false
|
|
3
|
+
kind: page-landing
|
|
4
|
+
sidebar-left: false
|
|
5
|
+
sidebar-right: false
|
|
6
|
+
main-class: landing
|
|
7
|
+
scripts:
|
|
8
|
+
- jquery
|
|
9
|
+
- jquery-cookie
|
|
10
|
+
- bootstrap
|
|
11
|
+
- popper
|
|
12
|
+
---
|
|
13
|
+
<!DOCTYPE html>
|
|
14
|
+
<html lang="en" class="no-js">
|
|
15
|
+
<!-- Copyright 2019-2021 Vanessa Sochat-->
|
|
16
|
+
{% include head.html %}
|
|
17
|
+
{% if site.services.analytics.google %}
|
|
18
|
+
{% include google-analytics.html %}
|
|
19
|
+
{% endif %}
|
|
20
|
+
<body>
|
|
21
|
+
{% include header.html %}
|
|
22
|
+
<div class="container-fluid td-outer landing">
|
|
23
|
+
{{ content }}
|
|
24
|
+
{% include footer.html %}
|
|
25
|
+
</div>
|
|
26
|
+
{% include tail.html %}
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
---
|
|
4
|
+
<!-- Copyright 2019-2021 Vanessa Sochat-->
|
|
5
|
+
<h1 style="margin-bottom:0px">{{ page.title }}</h1>
|
|
6
|
+
{% if page.badges %}{% for badge in page.badges %}<span class="badge badge-{{ badge.type }}">{{ badge.tag }}</span>{% endfor %}{% endif %}
|
|
7
|
+
<span class="post-date" style="font-style: italic;">{{ page.date | date: "%B %d, %Y" }}</span>
|
|
8
|
+
{{ content }}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
$(document).ready(function() {
|
|
7
|
+
$(".search-wrap").remove();
|
|
8
|
+
});
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<header>
|
|
12
|
+
<div class="aa-input-container" id="aa-input-container">
|
|
13
|
+
<input id="search-input" class="aa-input-search" placeholder="Search the {{ site.product-name }} v{{ site.product-version }} documentation">
|
|
14
|
+
<svg class="aa-input-icon" viewBox="654 -372 1664 1664">
|
|
15
|
+
<path d="M1806,332c0-123.3-43.8-228.8-131.5-316.5C1586.8-72.2,1481.3-116,1358-116s-228.8,43.8-316.5,131.5 C953.8,103.2,910,208.7,910,332s43.8,228.8,131.5,316.5C1129.2,736.2,1234.7,780,1358,780s228.8-43.8,316.5-131.5 C1762.2,560.8,1806,455.3,1806,332z M2318,1164c0,34.7-12.7,64.7-38,90s-55.3,38-90,38c-36,0-66-12.7-90-38l-343-342 c-119.3,82.7-252.3,124-399,124c-95.3,0-186.5-18.5-273.5-55.5s-162-87-225-150s-113-138-150-225S654,427.3,654,332 s18.5-186.5,55.5-273.5s87-162,150-225s138-113,225-150S1262.7-372,1358-372s186.5,18.5,273.5,55.5s162,87,225,150s113,138,150,225 S2062,236.7,2062,332c0,146.7-41.3,279.7-124,399l343,343C2305.7,1098.7,2318,1128.7,2318,1164z" />
|
|
16
|
+
</svg>
|
|
17
|
+
</div>
|
|
18
|
+
</header>
|
|
19
|
+
<main>
|
|
20
|
+
<div id="aa-hits"></div>
|
|
21
|
+
<div id="aa-pagination"></div>
|
|
22
|
+
</main>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
const search = instantsearch({
|
|
26
|
+
appId: '{{ site.services.search.algolia.application_id }}',
|
|
27
|
+
apiKey: '{{ site.services.search.algolia.search_only_api_key }}',
|
|
28
|
+
indexName: '{{ site.data.theme.search.subject.meta.index }}',
|
|
29
|
+
searchParameters: {
|
|
30
|
+
hitsPerPage: 10,
|
|
31
|
+
typoTolerance: false,
|
|
32
|
+
advancedSyntax: true
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const hitTemplate = function(hit) {
|
|
37
|
+
// Define target link.
|
|
38
|
+
var linkValue = window.location.href.substring(0, window.location.href.indexOf('{{site.base_url}}') - 1) + hit.url;
|
|
39
|
+
|
|
40
|
+
// Only preview the first 450 characters of the page.
|
|
41
|
+
if (hit._highlightResult.content && hit._highlightResult.content.value.length > 450) {
|
|
42
|
+
hit._highlightResult.content.value = hit._highlightResult.content.value.slice(0, 450) + '...'
|
|
43
|
+
}
|
|
44
|
+
var title = $('<div/>', {class: 'search-title'});
|
|
45
|
+
var titleValue;
|
|
46
|
+
if (hit.title) {
|
|
47
|
+
titleValue = hit.title;
|
|
48
|
+
} else {
|
|
49
|
+
var idx = hit.slug.lastIndexOf("_");
|
|
50
|
+
titleValue = hit.slug.substring(idx + 1).replace(/-/g, " ");
|
|
51
|
+
titleValue = titleValue.charAt(0).toUpperCase() + titleValue.slice(1);
|
|
52
|
+
}
|
|
53
|
+
title.append($('<a/>', {href: linkValue}).html(titleValue));
|
|
54
|
+
|
|
55
|
+
var content = $('<div/>', {class: 'search-item'});
|
|
56
|
+
content.append(title);
|
|
57
|
+
content.append($('<div/>', {class: 'search-link'}).html(linkValue));
|
|
58
|
+
if (hit._highlightResult.content) {
|
|
59
|
+
content.append($('<div/>', {class: 'search-snippet'}).html(hit._highlightResult.content.value));
|
|
60
|
+
}
|
|
61
|
+
return content[0].outerHTML;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
search.addWidget(
|
|
65
|
+
instantsearch.widgets.searchBox({
|
|
66
|
+
container: '#search-input',
|
|
67
|
+
reset: false,
|
|
68
|
+
magnifier: false
|
|
69
|
+
})
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
search.addWidget(
|
|
73
|
+
instantsearch.widgets.hits({
|
|
74
|
+
container: '#aa-hits',
|
|
75
|
+
templates: {
|
|
76
|
+
item: hitTemplate,
|
|
77
|
+
empty: "No results found for your search."
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
search.addWidget(
|
|
83
|
+
instantsearch.widgets.pagination({
|
|
84
|
+
container: '#aa-pagination'
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
$( document ).ready(function() {
|
|
89
|
+
var qParam = getUrlParameter('q');
|
|
90
|
+
if (qParam) {
|
|
91
|
+
$("#search-input").val(qParam.replace(/\+/g, ' '));
|
|
92
|
+
}
|
|
93
|
+
search.start();
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
function getUrlParameter(sParam) {
|
|
97
|
+
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
|
|
98
|
+
sURLVariables = sPageURL.split('&'),
|
|
99
|
+
sParameterName,
|
|
100
|
+
i;
|
|
101
|
+
|
|
102
|
+
for (i = 0; i < sURLVariables.length; i++) {
|
|
103
|
+
sParameterName = sURLVariables[i].split('=');
|
|
104
|
+
|
|
105
|
+
if (sParameterName[0] === sParam) {
|
|
106
|
+
return sParameterName[1] === undefined ? true : sParameterName[1];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
</script>
|
data/_layouts/topic.html
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
kind: topic
|
|
4
|
+
sidebar-left: true
|
|
5
|
+
sidebar-right: true
|
|
6
|
+
anchors: true
|
|
7
|
+
toc: sidebar
|
|
8
|
+
---
|
|
9
|
+
{% include breadcrumbs.html %}
|
|
10
|
+
{% include versioning-controls.html spot="#main .topic-top" %}
|
|
11
|
+
<h1>{{ page.title }}</h1>
|
|
12
|
+
{{ content }}
|
|
13
|
+
<div class="row flex topic-footer">
|
|
14
|
+
{% include versioning-controls.html spot="#main .topic-end" %}
|
|
15
|
+
{% include see-also.html %}
|
|
16
|
+
{% if site.data.theme.forms.feedback-form.show %}
|
|
17
|
+
{% include feedback.html %}
|
|
18
|
+
{% endif %}
|
|
19
|
+
</div>
|