iugu-docs-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +50 -0
  4. data/_config.yml +35 -0
  5. data/_data/contentful/spaces/iugu.yaml +26 -0
  6. data/_data/method-colors.yml +5 -0
  7. data/_includes/alert.liquid +7 -0
  8. data/_includes/auth_data.liquid +37 -0
  9. data/_includes/dark_mode_button.liquid +31 -0
  10. data/_includes/footer.html +11 -0
  11. data/_includes/header.html +79 -0
  12. data/_includes/icons/auth.liquid +3 -0
  13. data/_includes/icons/danger.liquid +3 -0
  14. data/_includes/icons/description.liquid +3 -0
  15. data/_includes/icons/info.liquid +3 -0
  16. data/_includes/icons/money.liquid +3 -0
  17. data/_includes/icons/success.liquid +3 -0
  18. data/_includes/icons/warning.liquid +3 -0
  19. data/_includes/icons/wip.liquid +3 -0
  20. data/_includes/lixo.html +10 -0
  21. data/_includes/navigation_widget.liquid +14 -0
  22. data/_includes/openapi_ref.liquid +36 -0
  23. data/_includes/params/card.liquid +18 -0
  24. data/_includes/request/body_example.liquid +27 -0
  25. data/_includes/request/list.liquid +48 -0
  26. data/_includes/response/table.liquid +40 -0
  27. data/_includes/schema/nested_table.liquid +44 -0
  28. data/_includes/schema/table.liquid +36 -0
  29. data/_includes/search_modal.liquid +34 -0
  30. data/_includes/sidebar_menu.liquid +28 -0
  31. data/_includes/toc.html +174 -0
  32. data/_includes/toc_content.liquid +21 -0
  33. data/_includes/widget.liquid +17 -0
  34. data/_includes/widgets_base.liquid +5 -0
  35. data/_layouts/default.html +100 -0
  36. data/_layouts/page.html +5 -0
  37. data/_layouts/post.html +5 -0
  38. data/_plugins/authorization_parser.rb +51 -0
  39. data/_plugins/button_processor.rb +24 -0
  40. data/_plugins/check_required_filter.rb +48 -0
  41. data/_plugins/collapse_link_tag.rb +81 -0
  42. data/_plugins/converters/alert.rb +34 -0
  43. data/_plugins/converters/base_converter.rb +8 -0
  44. data/_plugins/converters/custom.rb +28 -0
  45. data/_plugins/converters/openapi_ref.rb +134 -0
  46. data/_plugins/converters/widget.rb +12 -0
  47. data/_plugins/doc_toc_filter.rb +27 -0
  48. data/_plugins/navigation_widget.rb +49 -0
  49. data/_plugins/response_filter.rb +28 -0
  50. data/_plugins/type_style_filter.rb +23 -0
  51. data/assets/css/application.css +5484 -0
  52. data/assets/css/highlight.css +217 -0
  53. data/assets/js/highlight_menu.js +19 -0
  54. data/assets/js/main.js +110 -0
  55. data/src/css/application.css +100 -0
  56. metadata +209 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 65633e8686ad2ba2177eaea924b6a578a837e5dffa80e4af43f4fdde7b627321
4
+ data.tar.gz: 762788e88d6bfdc49d1b8826fb27642bf256990b898a373f38a51cbc4dcc0c98
5
+ SHA512:
6
+ metadata.gz: 5ec6af5ec4c4c8b4bd4b9975692b17619ab813e5b4858c9dd3bff80f2a9e4f0a1911de08edcd16f12d4d4994b5efc2c5b778df25f6a47a3cda2016c8e66f3b94
7
+ data.tar.gz: 5ca609ac1291ccc075a9ddada36b80a5305ebc6662e6cdadaf4c0895c631cb8b3fb7a510dc1203134f291493ed9bd1dd64ca1b51d107444e04477d12debee5a4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # testtheme
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your Jekyll site's `Gemfile`:
12
+
13
+ ```ruby
14
+ gem "testtheme"
15
+ ```
16
+
17
+ And add this line to your Jekyll site's `_config.yml`:
18
+
19
+ ```yaml
20
+ theme: testtheme
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install testtheme
30
+
31
+ ## Usage
32
+
33
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/testtheme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
38
+
39
+ ## Development
40
+
41
+ To set up your environment to develop this theme, run `bundle install`.
42
+
43
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
44
+
45
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
46
+ To add a custom directory to your theme-gem, please edit the regexp in `testtheme.gemspec` accordingly.
47
+
48
+ ## License
49
+
50
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_config.yml ADDED
@@ -0,0 +1,35 @@
1
+ plugins:
2
+ - jekyll-toc
3
+ - jekyll-multiple-languages-plugin
4
+ - navigation_widget
5
+ - button_processor
6
+ - check_required_filter
7
+ - collapse_link_tag
8
+ - doc_toc_filter
9
+ - type_style_filter
10
+
11
+ permalink: /:slug/
12
+
13
+ exclude:
14
+ - bin
15
+ - Makefile
16
+ - Procfile.dev
17
+ - package.json
18
+ - tailwind.config.js
19
+ - postcss.config.js
20
+ - yarn.lock
21
+ - package-lock.json
22
+
23
+ markdown: kramdown
24
+ highlighter: rouge
25
+ kramdown:
26
+ input: GitlabKramdown
27
+ enable_another: true
28
+ highlighter: rouge
29
+
30
+ toc:
31
+ enabled: true
32
+ min_level: 1
33
+ max_level: 3
34
+
35
+ languages: ["pt-BR", "en"]
@@ -0,0 +1,26 @@
1
+ ---
2
+ linksList:
3
+ - sys:
4
+ id: 4VLofmHaeVoTz4Qlaty2Gl
5
+ created_at: !ruby/object:DateTime 2023-05-03 22:48:09.347000000 Z
6
+ updated_at: !ruby/object:DateTime 2023-05-08 22:54:19.285000000 Z
7
+ content_type_id: linksList
8
+ revision: 2
9
+ list_name: Links do Rodapé
10
+ links:
11
+ - sys:
12
+ id: 5lCe9pbMfmLtmIFty6vC5W
13
+ created_at: !ruby/object:DateTime 2023-05-03 22:43:56.507000000 Z
14
+ updated_at: !ruby/object:DateTime 2023-05-03 22:43:56.507000000 Z
15
+ content_type_id: link
16
+ revision: 1
17
+ name: Política de Privacidade
18
+ url: https://www.iugu.com/juridico/politica-de-privacidade/
19
+ - sys:
20
+ id: 2pBwyXHjixxSBCRC9uFSFc
21
+ created_at: !ruby/object:DateTime 2023-05-03 22:45:26.484000000 Z
22
+ updated_at: !ruby/object:DateTime 2023-05-03 22:45:26.484000000 Z
23
+ content_type_id: link
24
+ revision: 1
25
+ name: Termos de Serviço
26
+ url: https://www.iugu.com/juridico/contrato/
@@ -0,0 +1,5 @@
1
+ get: bg-green-500
2
+ post: bg-blue-600
3
+ delete: bg-red-500
4
+ put: bg-purple-500
5
+ patch: bg-orange-400
@@ -0,0 +1,7 @@
1
+ {% capture file_name %}icons/{{type}}.liquid{% endcapture %}
2
+ <div class="dark:border-y-neutral-800 dark:border-r-neutral-800 border border-l-2 lg:border-l-4 shadow {{border_color}} my-3 py-3 px-4 rounded-md">
3
+ <p class="my-0 items-center flex gap-1.5 text-lg font-bold {{text_color}}">
4
+ {% include {{file_name}} %}{% t alerts.{{type}} %}
5
+ </p>
6
+ <span class="font-semibold">{{content}}</span>
7
+ </div>
@@ -0,0 +1,37 @@
1
+ {% if auth_data %}
2
+ {% collapse_link "span" %}
3
+ <span class="my-4 text-lg font-bold leading-6 text-gray-900 dark:text-gray-100 align-middle">
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="11" height="11" class="inline-block">
5
+ <path fill="currentColor" d="M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z"></path>
6
+ </svg>
7
+ {% t auth_data.authorizations %}
8
+ </span>
9
+ {% collapse_hidden_content %}
10
+ {% for data in auth_data %}
11
+ <div class="border-b py-2 border-gray-200 dark:border-neutral-800 not-prose">
12
+ <div class="pb-2">
13
+ <span class="font-semibold">{{ data.Title }}</span>
14
+ <span class="mt-1 text-sm text-gray-500 dark:text-gray-200">{{ data.Description }}</span>
15
+ </div>
16
+ <table>
17
+ {% for item in data.items %}
18
+ <tr>
19
+ <td class="font-semibold">{{ item[0] }}: </td>
20
+ <td><code class="text-sm">{{ item[1] }}</code></td>
21
+ </tr>
22
+ {% endfor %}
23
+ {% if content['security'] %}
24
+ {% for security in content['security'] %}
25
+ {% if security[data.Title].size >= 1 %}
26
+ <tr>
27
+ <td class="font-semibold pr-2">Required Scopes: </td>
28
+ <td><code class="text-sm">{{ security[data.Title] | join: ' - ' }}</code></td>
29
+ </tr>
30
+ {% endif %}
31
+ {% endfor %}
32
+ {% endif %}
33
+ </table>
34
+ </div>
35
+ {% endfor %}
36
+ {% endcollapse_link %}
37
+ {% endif %}
@@ -0,0 +1,31 @@
1
+ <button id="dark-mode-toggle"
2
+ type="button"
3
+ class="bg-neutral-200 dark:bg-neutral-800 relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-neutral-300 dark:focus:ring-neutral-700"
4
+ role="switch"
5
+ aria-checked="false"
6
+ onclick="toggleDarkMode()">
7
+ <span class="sr-only">Use setting</span>
8
+ <span class="translate-x-0 dark:translate-x-5 pointer-events-none relative inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out">
9
+ <span class="opacity-100 dark:opacity-0 duration-200 ease-in absolute inset-0 flex h-full w-full items-center justify-center transition-opacity" aria-hidden="true">
10
+ <div class="flex h-6 w-6 flex-none items-center justify-center rounded-full bg-white shadow ring-1 ring-slate-900/10">
11
+ <svg class="h-4 w-4 fill-neutral-400">
12
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7 1C7 0.447715 7.44772 0 8 0C8.55228 0 9 0.447715 9 1V2C9 2.55228 8.55228 3 8 3C7.44772 3 7 2.55228 7 2V1ZM11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8ZM13.6563 2.34285C13.2658 1.95232 12.6326 1.95232 12.2421 2.34285L11.535 3.04996C11.1445 3.44048 11.1445 4.07365 11.535 4.46417C11.9255 4.85469 12.5587 4.85469 12.9492 4.46417L13.6563 3.75706C14.0469 3.36654 14.0469 2.73337 13.6563 2.34285ZM12.242 13.6563L11.5349 12.9492C11.1443 12.5587 11.1443 11.9255 11.5349 11.535C11.9254 11.1445 12.5585 11.1445 12.9491 11.535L13.6562 12.2421C14.0467 12.6326 14.0467 13.2658 13.6562 13.6563C13.2656 14.0468 12.6325 14.0468 12.242 13.6563ZM16 7.99902C16 7.44674 15.5523 6.99902 15 6.99902H14C13.4477 6.99902 13 7.44674 13 7.99902C13 8.55131 13.4477 8.99902 14 8.99902H15C15.5523 8.99902 16 8.55131 16 7.99902ZM7 14C7 13.4477 7.44772 13 8 13C8.55228 13 9 13.4477 9 14V15C9 15.5523 8.55228 16 8 16C7.44772 16 7 15.5523 7 15V14ZM4.46492 11.5352C4.0744 11.1447 3.44123 11.1447 3.05071 11.5352L2.3436 12.2423C1.95307 12.6329 1.95307 13.266 2.3436 13.6566C2.73412 14.0471 3.36729 14.0471 3.75781 13.6566L4.46492 12.9494C4.85544 12.5589 4.85544 11.9258 4.46492 11.5352ZM4.46477 3.04973C4.85529 3.44025 4.85529 4.07342 4.46477 4.46394C4.07424 4.85447 3.44108 4.85447 3.05055 4.46394L2.34345 3.75684C1.95292 3.36631 1.95292 2.73315 2.34345 2.34262C2.73397 1.9521 3.36714 1.9521 3.75766 2.34262L4.46477 3.04973ZM3 8C3 7.44772 2.55228 7 2 7H1C0.447715 7 0 7.44772 0 8C0 8.55228 0.447715 9 1 9H2C2.55228 9 3 8.55228 3 8Z">
13
+ </path>
14
+ </svg>
15
+ </div>
16
+ </span>
17
+ <span class="opacity-0 dark:opacity-100 duration-100 ease-out absolute inset-0 flex h-full w-full items-center justify-center transition-opacity" aria-hidden="true">
18
+ <div class="flex h-6 w-6 flex-none items-center justify-center rounded-full bg-neutral-950 shadow ring-1 ring-slate-900/10">
19
+ <svg class="h-4 w-4 fill-white">
20
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.23 3.333C7.757 2.905 7.68 2 7 2a6 6 0 1 0 0 12c.68 0 .758-.905.23-1.332A5.989 5.989 0 0 1 5 8c0-1.885.87-3.568 2.23-4.668ZM12 5a1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 0 2 1 1 0 0 0-1 1 1 1 0 1 1-2 0 1 1 0 0 0-1-1 1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 0 1 1-1Z"></path>
21
+ </svg>
22
+ </div>
23
+ </span>
24
+ </span>
25
+ </button>
26
+ <script>
27
+ function toggleDarkMode() {
28
+ document.documentElement.classList.toggle('dark');
29
+ toggleHighlightDarkmode()
30
+ }
31
+ </script>
@@ -0,0 +1,11 @@
1
+ <footer class="text-xs border-t dark:border-t-neutral-800 text-gray-500 dark:text-gray-300 text-center"><br />
2
+ <section class="mb-5 text-sm font-normal grid max-w-xl ml-auto mr-auto grid-cols-1 auto-cols-auto sm:grid-cols-2">
3
+ {% for obj in site.data.contentful.spaces.iugu.linksList[0]["links"] %}
4
+ <a class="p-1 m-1 hover:text-gray-400" href="{{ obj.url | url }}">{{ obj.name }}</a>
5
+ {% endfor %}
6
+ </section>
7
+
8
+ <section class="[&>*]:block pb-5">
9
+ <span>© {{ site.time | date: '%Y' }}, Iugu Instituição de Pagamento S/A</span>
10
+ </section>
11
+ </footer>
@@ -0,0 +1,79 @@
1
+ {% if page.toc %}
2
+ {% assign top_height = "h-32" %}
3
+ {% else %}
4
+ {% assign top_height = "h-16" %}
5
+ {% endif %}
6
+ {% assign has_toc = site.pages | find: "path", "toc.yaml" %}
7
+ <div class="z-10 fixed {{top_height}} bg-white/20 dark:bg-neutral-950/20 w-full backdrop-blur-sm md:h-16"></div>
8
+ <div x-data="{ open: false }">
9
+ <section class="z-40 h-16 fixed border-t-[rgba(0,0,0,0.05)] border-b-[rgba(0,0,0,0.05)] border-t border-b dark:border-b-neutral-800 w-full px-3 left-0 top-0 grid grid-cols-3 gap-4 lg:gap-16 items-center">
10
+ <div class="flex justify-start">
11
+ <a href="/" class="flex items-center">
12
+ <svg class="fill-gray-800 hidden md:block dark:fill-white w-auto h-8" xmlns="http://www.w3.org/2000/svg" width="81.707" height="32.137" viewBox="0 0 81.707 32.137"><g transform="translate(-21.225 -0.243)"><g transform="translate(21.225 0.243)"><path fill-rule="evenodd" d="M217.837,26.563h-1.171a2.393,2.393,0,0,0-2.343,2.428V35.4a6.258,6.258,0,1,0,12.508,0V26.563H225.66a2.393,2.393,0,0,0-2.343,2.428V35.4a2.879,2.879,0,0,1-1.3,2.653,2.667,2.667,0,0,1-2.873,0,2.879,2.879,0,0,1-1.3-2.653Zm-12.475,3.084c2.015,0,2.81,1.588,2.81,3.588a3.294,3.294,0,0,1-3.248,3.577c-1.862,0-2.817-1.379-2.817-3.538A3.355,3.355,0,0,1,205.362,29.648Zm2.81,9.93c0,3.337-2.558,3.645-4.409,3.5a8.9,8.9,0,0,1-4.009-1.209v1.214c0,2.282,2.437,3.236,5.134,3.236,4.006,0,6.8-2.511,6.8-6.776V33.618h-.009c0-.125.009-.251.009-.377,0-3.958-2.257-7.23-6.324-7.23-3.908,0-6.769,3.273-6.769,7.269,0,3.957,2.315,7.182,6.331,7.182a4.278,4.278,0,0,0,3.248-1.235v.356ZM187.5,26.563h-1.171a2.393,2.393,0,0,0-2.345,2.428V35.4a6.258,6.258,0,1,0,12.508,0V26.563h-1.171a2.393,2.393,0,0,0-2.343,2.428V35.4a2.863,2.863,0,0,1-1.349,2.518,2.657,2.657,0,0,1-2.779,0A2.863,2.863,0,0,1,187.5,35.4Zm-6.151,0h-1.171a2.393,2.393,0,0,0-2.345,2.428V38.9a2.393,2.393,0,0,0,2.345,2.428h1.171Zm-2.642-5h1.767a.892.892,0,0,1,.874.906V24.3a.892.892,0,0,1-.874.9H178.7a.892.892,0,0,1-.874-.906V22.466A.892.892,0,0,1,178.7,21.56Z" transform="translate(-145.124 -17.899)"></path><path fill-rule="evenodd" d="M22.557,19.153c.821-.1,1.166-.376,1.146-1.349a19.9,19.9,0,0,0-.24-2.648A12.261,12.261,0,0,0,19.829,8.11a12.366,12.366,0,0,0-8.76-3.094,7.287,7.287,0,0,1-3.124-.671A7.6,7.6,0,0,1,5.369,2.357L4.207,1A2.251,2.251,0,0,0,1.01.826,2.4,2.4,0,0,0,.753,4.107L1.914,5.468A12.23,12.23,0,0,0,6.05,8.656a11.672,11.672,0,0,0,5.031,1.077,8,8,0,0,1,5.668,1.876,7.864,7.864,0,0,1,2.26,4.925c.263,2.146,1.6,2.867,3.542,2.621ZM2.878,13.425h0c1.946-.245,3.281.475,3.544,2.621a7.864,7.864,0,0,0,2.26,4.925,8.02,8.02,0,0,0,5.668,1.876,11.672,11.672,0,0,1,5.031,1.075,12.2,12.2,0,0,1,4.136,3.188l1.159,1.361A2.4,2.4,0,0,1,24.46,31.8a2.251,2.251,0,0,1-3.236-.222L20.07,30.208a7.588,7.588,0,0,0-2.576-1.988,7.248,7.248,0,0,0-3.119-.66,12.351,12.351,0,0,1-8.76-3.094A12.234,12.234,0,0,1,1.981,17.42a19.952,19.952,0,0,1-.24-2.648c-.021-.973.323-1.246,1.144-1.349Zm8.607.353h2.468a1.238,1.238,0,0,1,1.218,1.25v2.529a1.238,1.238,0,0,1-1.218,1.252H11.485a1.238,1.238,0,0,1-1.218-1.252V15.028a1.239,1.239,0,0,1,1.218-1.259Z" transform="translate(-0.225 -0.243)"></path></g></g></svg>
13
+ <svg class="fill-black md:hidden dark:fill-white h-6 w-10 -ml-1" xmlns="http://www.w3.org/2000/svg" width="27.137" height="32.137" viewBox="0 0 23.137 32.137"><g transform="translate(-21.225 -0.243)"><g transform="translate(21.225 0.243)"><path fill-rule="evenodd" d="M22.557,19.153c.821-.1,1.166-.376,1.146-1.349a19.9,19.9,0,0,0-.24-2.648A12.261,12.261,0,0,0,19.829,8.11a12.366,12.366,0,0,0-8.76-3.094,7.287,7.287,0,0,1-3.124-.671A7.6,7.6,0,0,1,5.369,2.357L4.207,1A2.251,2.251,0,0,0,1.01.826,2.4,2.4,0,0,0,.753,4.107L1.914,5.468A12.23,12.23,0,0,0,6.05,8.656a11.672,11.672,0,0,0,5.031,1.077,8,8,0,0,1,5.668,1.876,7.864,7.864,0,0,1,2.26,4.925c.263,2.146,1.6,2.867,3.542,2.621ZM2.878,13.425h0c1.946-.245,3.281.475,3.544,2.621a7.864,7.864,0,0,0,2.26,4.925,8.02,8.02,0,0,0,5.668,1.876,11.672,11.672,0,0,1,5.031,1.075,12.2,12.2,0,0,1,4.136,3.188l1.159,1.361A2.4,2.4,0,0,1,24.46,31.8a2.251,2.251,0,0,1-3.236-.222L20.07,30.208a7.588,7.588,0,0,0-2.576-1.988,7.248,7.248,0,0,0-3.119-.66,12.351,12.351,0,0,1-8.76-3.094A12.234,12.234,0,0,1,1.981,17.42a19.952,19.952,0,0,1-.24-2.648c-.021-.973.323-1.246,1.144-1.349Zm8.607.353h2.468a1.238,1.238,0,0,1,1.218,1.25v2.529a1.238,1.238,0,0,1-1.218,1.252H11.485a1.238,1.238,0,0,1-1.218-1.252V15.028a1.239,1.239,0,0,1,1.218-1.259Z" transform="translate(-0.225 -0.243)"></path></g></g></svg>
14
+ <span class="ml-1.5 font-extrabold antialiased uppercase bg-black dark:bg-white text-gray-200 dark:text-gray-800 p-1.5 rounded-md text-[0.8em]">Docs</span>
15
+ </a>
16
+ <span class="md:ml-6 text-left truncate dark:text-gray-200 antialiased font-semibold text-3xl">{{ page.title }}</span>
17
+ </div>
18
+ <div class="w-full flex justify-start bg-white dark:bg-neutral-800">
19
+ <button id="search-modal" type="button" class="flex w-full rounded-md text-left border-0 px-2 py-1.5 text-neutral-500 shadow-sm ring-1 ring-gray-300 dark:ring-gray-700 outline-gray-400 sm:text-sm sm:leading-6">
20
+ <svg width="24" height="24" fill="none" aria-hidden="true" class="mr-1 flex-none">
21
+ <path d="m19 19-3.5-3.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
22
+ <circle cx="11" cy="11" r="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>
23
+ </svg>
24
+ <span>{% t header.search %}</span>
25
+ </button>
26
+ </div>
27
+ <div class="hidden md:flex justify-center lg:justify-end">
28
+ {% include dark_mode_button.liquid %}
29
+ </div>
30
+ {% if has_toc %}
31
+ <div class="lg:hidden w-full flex justify-end">
32
+ <div @click="open = !open" :class="{ 'tham-active': open }" class="lg:hidden tham tham-e-squeeze tham-w-6">
33
+ <div class="tham-box">
34
+ <div class="tham-inner dark:bg-white">
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ {% else %}
40
+ <div class="lg:hidden flex justify-end">
41
+ {% include dark_mode_button.liquid %}
42
+ </div>
43
+ {% endif %}
44
+ </section>
45
+ {% include sidebar_menu.liquid %}
46
+ </div>
47
+ {% if page.toc %}
48
+ <div x-data="{ open_toc: false }">
49
+ <section class="mobile-toc-ref toc-ref z-40 border-b-[rgba(0,0,0,0.05)] fixed left-0 top-16 h-16 text-center w-full items-center px-3 flex text-sm border-b dark:text-gray-200 font-light md:hidden">
50
+ <div class="w-full flex justify-end">
51
+ <span class="title w-full text-left">...</span>
52
+ <svg @click="open_toc = !open_toc" xmlns="http://www.w3.org/2000/svg" width="24" class="cursor-pointer pr-1 fill-black dark:fill-white" height="18" viewBox="0 0 244.21 183.76">
53
+ <g id="Group_27737" data-name="Group 27737" transform="translate(0)">
54
+ <path id="Path_37" data-name="Path 37" d="M774.848,678.948a38.377,38.377,0,1,0,38.376,38.375A38.421,38.421,0,0,0,774.848,678.948Zm0,62.351a23.974,23.974,0,1,1,23.973-23.976A24,24,0,0,1,774.848,741.3Z" transform="translate(-736.474 -678.948)"/>
55
+ <path id="Path_38" data-name="Path 38" d="M764.84,695.174h128.2a7.2,7.2,0,0,0,0-14.4H764.84a7.2,7.2,0,0,0,0,14.4Z" transform="translate(-656.029 -672.019)"/>
56
+ <path id="Path_39" data-name="Path 39" d="M764.84,704.515h92.853a7.2,7.2,0,0,0,0-14.4H764.84a7.2,7.2,0,0,0,0,14.4Z" transform="translate(-656.029 -636.517)"/>
57
+ <path id="Path_40" data-name="Path 40" d="M774.848,701.236a38.377,38.377,0,1,0,38.376,38.375A38.42,38.42,0,0,0,774.848,701.236Zm0,62.351a23.974,23.974,0,1,1,23.973-23.976A24,24,0,0,1,774.848,763.587Z" transform="translate(-736.474 -594.23)"/>
58
+ <path id="Path_41" data-name="Path 41" d="M893.038,703.061H764.84a7.2,7.2,0,1,0,0,14.4h128.2a7.2,7.2,0,0,0,0-14.4Z" transform="translate(-656.029 -587.298)"/>
59
+ <path id="Path_42" data-name="Path 42" d="M857.693,712.4H764.84a7.2,7.2,0,1,0,0,14.4h92.853a7.2,7.2,0,0,0,0-14.4Z" transform="translate(-656.029 -551.8)"/>
60
+ </g>
61
+ </svg>
62
+ </div>
63
+ </section>
64
+ <section :class="{ 'hidden': !open_toc }"
65
+ id="toc-contents"
66
+ x-cloak
67
+ x-transition:enter="transition-opacity duration-250 ease-in"
68
+ x-transition:enter-start="opacity-0"
69
+ x-transition:enter-end="opacity-100"
70
+ x-transition:leave="transition-opacity duration-250 ease-out"
71
+ x-transition:leave-start="opacity-100"
72
+ x-transition:leave-end="opacity-0"
73
+ class="sidebar-toc z-40 p-4 w-full h-full overflow-y-auto fixed top-32 bg-white dark:bg-neutral-950 md:right-0 md:border-l md:border-l-gray-10 md:dark:border-l-neutral-800 md:w-full md:max-w-[22ch] md:top-16 md:block md:opacity-100">
74
+ <h1 class="mb-1 uppercase font-normal dark:text-gray-200 text-gray-400 text-sm">{% t header.this_page %}</h1>
75
+ {{ content | toc_only }}
76
+ </section>
77
+ </div>
78
+ {% endif %}
79
+ <div class="{{top_height}} mb-5 md:h-16"></div>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="dark:stroke-white stroke-black w-6 h-6">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="stroke-red-500 w-6 h-6">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-6 h-6">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" class="stroke-blue-500 w-6 h-6">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="stroke-purple-500 w-6 h-6">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="stroke-green-500 w-6 h-6">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="stroke-amber-500 w-6 h-6">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" class="stroke-orange-500 w-6 h-6">
2
+ <path fill="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10 12.078c2.39 0 4.392-.812 4.513-1.873l-1.125-3.152c-.264.761-1.725 1.301-3.388 1.301s-3.124-.54-3.388-1.301l-1.124 3.152c.121 1.061 2.122 1.873 4.512 1.873zm0-6.705c1.124 0 2.167-.348 2.473-.889-.421-1.182-.782-2.197-1.011-2.836C11.31 1.221 10.621 1 10 1s-1.31.221-1.462.648L7.527 4.484c.306.541 1.35.889 2.473.889zm8.78 7.693l-3.755-1.514.433 1.207c-.022 1.279-2.504 2.299-5.458 2.299-2.953 0-5.437-1.019-5.458-2.299l.433-1.207-3.755 1.514c-1.053.424-1.098 1.209-.098 1.744l7.062 3.787c.998.535 2.633.535 3.632 0l7.063-3.787c.999-.535.954-1.32-.099-1.744z" />
3
+ </svg>
@@ -0,0 +1,10 @@
1
+ <div style="height:161px;margin-bottom:40px;overflow:hidden;background:#F0F">
2
+ <div style="width:100%;height:72px" class="flex items-center p-5">
3
+ <svg class="fill-gray-800 dark:fill-white w-auto h-10" xmlns="http://www.w3.org/2000/svg" width="81.707" height="32.137" viewBox="0 0 81.707 32.137"><g transform="translate(-21.225 -0.243)"><g transform="translate(21.225 0.243)"><path fill-rule="evenodd" d="M217.837,26.563h-1.171a2.393,2.393,0,0,0-2.343,2.428V35.4a6.258,6.258,0,1,0,12.508,0V26.563H225.66a2.393,2.393,0,0,0-2.343,2.428V35.4a2.879,2.879,0,0,1-1.3,2.653,2.667,2.667,0,0,1-2.873,0,2.879,2.879,0,0,1-1.3-2.653Zm-12.475,3.084c2.015,0,2.81,1.588,2.81,3.588a3.294,3.294,0,0,1-3.248,3.577c-1.862,0-2.817-1.379-2.817-3.538A3.355,3.355,0,0,1,205.362,29.648Zm2.81,9.93c0,3.337-2.558,3.645-4.409,3.5a8.9,8.9,0,0,1-4.009-1.209v1.214c0,2.282,2.437,3.236,5.134,3.236,4.006,0,6.8-2.511,6.8-6.776V33.618h-.009c0-.125.009-.251.009-.377,0-3.958-2.257-7.23-6.324-7.23-3.908,0-6.769,3.273-6.769,7.269,0,3.957,2.315,7.182,6.331,7.182a4.278,4.278,0,0,0,3.248-1.235v.356ZM187.5,26.563h-1.171a2.393,2.393,0,0,0-2.345,2.428V35.4a6.258,6.258,0,1,0,12.508,0V26.563h-1.171a2.393,2.393,0,0,0-2.343,2.428V35.4a2.863,2.863,0,0,1-1.349,2.518,2.657,2.657,0,0,1-2.779,0A2.863,2.863,0,0,1,187.5,35.4Zm-6.151,0h-1.171a2.393,2.393,0,0,0-2.345,2.428V38.9a2.393,2.393,0,0,0,2.345,2.428h1.171Zm-2.642-5h1.767a.892.892,0,0,1,.874.906V24.3a.892.892,0,0,1-.874.9H178.7a.892.892,0,0,1-.874-.906V22.466A.892.892,0,0,1,178.7,21.56Z" transform="translate(-145.124 -17.899)"></path><path fill-rule="evenodd" d="M22.557,19.153c.821-.1,1.166-.376,1.146-1.349a19.9,19.9,0,0,0-.24-2.648A12.261,12.261,0,0,0,19.829,8.11a12.366,12.366,0,0,0-8.76-3.094,7.287,7.287,0,0,1-3.124-.671A7.6,7.6,0,0,1,5.369,2.357L4.207,1A2.251,2.251,0,0,0,1.01.826,2.4,2.4,0,0,0,.753,4.107L1.914,5.468A12.23,12.23,0,0,0,6.05,8.656a11.672,11.672,0,0,0,5.031,1.077,8,8,0,0,1,5.668,1.876,7.864,7.864,0,0,1,2.26,4.925c.263,2.146,1.6,2.867,3.542,2.621ZM2.878,13.425h0c1.946-.245,3.281.475,3.544,2.621a7.864,7.864,0,0,0,2.26,4.925,8.02,8.02,0,0,0,5.668,1.876,11.672,11.672,0,0,1,5.031,1.075,12.2,12.2,0,0,1,4.136,3.188l1.159,1.361A2.4,2.4,0,0,1,24.46,31.8a2.251,2.251,0,0,1-3.236-.222L20.07,30.208a7.588,7.588,0,0,0-2.576-1.988,7.248,7.248,0,0,0-3.119-.66,12.351,12.351,0,0,1-8.76-3.094A12.234,12.234,0,0,1,1.981,17.42a19.952,19.952,0,0,1-.24-2.648c-.021-.973.323-1.246,1.144-1.349Zm8.607.353h2.468a1.238,1.238,0,0,1,1.218,1.25v2.529a1.238,1.238,0,0,1-1.218,1.252H11.485a1.238,1.238,0,0,1-1.218-1.252V15.028a1.239,1.239,0,0,1,1.218-1.259Z" transform="translate(-0.225 -0.243)"></path></g></g></svg>
4
+ <div class="w-full flex justify-end"><span>MENU</span></div>
5
+ </div>
6
+ <div class="p-10">
7
+ <svg class="fill-gray-300 w-full h-10" xmlns="http://www.w3.org/2000/svg" width="81.707" height="32.137" viewBox="0 0 81.707 32.137"><g transform="translate(-21.225 -0.243)"><g transform="translate(21.225 0.243)"><path fill-rule="evenodd" d="M217.837,26.563h-1.171a2.393,2.393,0,0,0-2.343,2.428V35.4a6.258,6.258,0,1,0,12.508,0V26.563H225.66a2.393,2.393,0,0,0-2.343,2.428V35.4a2.879,2.879,0,0,1-1.3,2.653,2.667,2.667,0,0,1-2.873,0,2.879,2.879,0,0,1-1.3-2.653Zm-12.475,3.084c2.015,0,2.81,1.588,2.81,3.588a3.294,3.294,0,0,1-3.248,3.577c-1.862,0-2.817-1.379-2.817-3.538A3.355,3.355,0,0,1,205.362,29.648Zm2.81,9.93c0,3.337-2.558,3.645-4.409,3.5a8.9,8.9,0,0,1-4.009-1.209v1.214c0,2.282,2.437,3.236,5.134,3.236,4.006,0,6.8-2.511,6.8-6.776V33.618h-.009c0-.125.009-.251.009-.377,0-3.958-2.257-7.23-6.324-7.23-3.908,0-6.769,3.273-6.769,7.269,0,3.957,2.315,7.182,6.331,7.182a4.278,4.278,0,0,0,3.248-1.235v.356ZM187.5,26.563h-1.171a2.393,2.393,0,0,0-2.345,2.428V35.4a6.258,6.258,0,1,0,12.508,0V26.563h-1.171a2.393,2.393,0,0,0-2.343,2.428V35.4a2.863,2.863,0,0,1-1.349,2.518,2.657,2.657,0,0,1-2.779,0A2.863,2.863,0,0,1,187.5,35.4Zm-6.151,0h-1.171a2.393,2.393,0,0,0-2.345,2.428V38.9a2.393,2.393,0,0,0,2.345,2.428h1.171Zm-2.642-5h1.767a.892.892,0,0,1,.874.906V24.3a.892.892,0,0,1-.874.9H178.7a.892.892,0,0,1-.874-.906V22.466A.892.892,0,0,1,178.7,21.56Z" transform="translate(-145.124 -17.899)"></path><path fill-rule="evenodd" d="M22.557,19.153c.821-.1,1.166-.376,1.146-1.349a19.9,19.9,0,0,0-.24-2.648A12.261,12.261,0,0,0,19.829,8.11a12.366,12.366,0,0,0-8.76-3.094,7.287,7.287,0,0,1-3.124-.671A7.6,7.6,0,0,1,5.369,2.357L4.207,1A2.251,2.251,0,0,0,1.01.826,2.4,2.4,0,0,0,.753,4.107L1.914,5.468A12.23,12.23,0,0,0,6.05,8.656a11.672,11.672,0,0,0,5.031,1.077,8,8,0,0,1,5.668,1.876,7.864,7.864,0,0,1,2.26,4.925c.263,2.146,1.6,2.867,3.542,2.621ZM2.878,13.425h0c1.946-.245,3.281.475,3.544,2.621a7.864,7.864,0,0,0,2.26,4.925,8.02,8.02,0,0,0,5.668,1.876,11.672,11.672,0,0,1,5.031,1.075,12.2,12.2,0,0,1,4.136,3.188l1.159,1.361A2.4,2.4,0,0,1,24.46,31.8a2.251,2.251,0,0,1-3.236-.222L20.07,30.208a7.588,7.588,0,0,0-2.576-1.988,7.248,7.248,0,0,0-3.119-.66,12.351,12.351,0,0,1-8.76-3.094A12.234,12.234,0,0,1,1.981,17.42a19.952,19.952,0,0,1-.24-2.648c-.021-.973.323-1.246,1.144-1.349Zm8.607.353h2.468a1.238,1.238,0,0,1,1.218,1.25v2.529a1.238,1.238,0,0,1-1.218,1.252H11.485a1.238,1.238,0,0,1-1.218-1.252V15.028a1.239,1.239,0,0,1,1.218-1.259Z" transform="translate(-0.225 -0.243)"></path></g></g></svg>
8
+ </div>
9
+ <svg class="fill-gray-300" xmlns="http://www.w3.org/2000/svg" width="27.137" height="32.137" viewBox="0 0 23.137 32.137"><g transform="translate(-21.225 -0.243)"><g transform="translate(21.225 0.243)"><path fill-rule="evenodd" d="M22.557,19.153c.821-.1,1.166-.376,1.146-1.349a19.9,19.9,0,0,0-.24-2.648A12.261,12.261,0,0,0,19.829,8.11a12.366,12.366,0,0,0-8.76-3.094,7.287,7.287,0,0,1-3.124-.671A7.6,7.6,0,0,1,5.369,2.357L4.207,1A2.251,2.251,0,0,0,1.01.826,2.4,2.4,0,0,0,.753,4.107L1.914,5.468A12.23,12.23,0,0,0,6.05,8.656a11.672,11.672,0,0,0,5.031,1.077,8,8,0,0,1,5.668,1.876,7.864,7.864,0,0,1,2.26,4.925c.263,2.146,1.6,2.867,3.542,2.621ZM2.878,13.425h0c1.946-.245,3.281.475,3.544,2.621a7.864,7.864,0,0,0,2.26,4.925,8.02,8.02,0,0,0,5.668,1.876,11.672,11.672,0,0,1,5.031,1.075,12.2,12.2,0,0,1,4.136,3.188l1.159,1.361A2.4,2.4,0,0,1,24.46,31.8a2.251,2.251,0,0,1-3.236-.222L20.07,30.208a7.588,7.588,0,0,0-2.576-1.988,7.248,7.248,0,0,0-3.119-.66,12.351,12.351,0,0,1-8.76-3.094A12.234,12.234,0,0,1,1.981,17.42a19.952,19.952,0,0,1-.24-2.648c-.021-.973.323-1.246,1.144-1.349Zm8.607.353h2.468a1.238,1.238,0,0,1,1.218,1.25v2.529a1.238,1.238,0,0,1-1.218,1.252H11.485a1.238,1.238,0,0,1-1.218-1.252V15.028a1.239,1.239,0,0,1,1.218-1.259Z" transform="translate(-0.225 -0.243)"></path></g></g></svg>
10
+ </div>
@@ -0,0 +1,14 @@
1
+ <div class="mx-4 my-8 grid h-16 grid-cols-2 gap-8">
2
+ {% if previous_doc %}
3
+ <a href="{{ site.baseurl }}{{previous_doc.url}}" class="col-start-1 ring-1 no-underline ring-gray-200 hover:ring-gray-500 hover:ring-2 dark:ring-gray-500 dark:hover:ring-gray-200 rounded-lg p-2">
4
+ <p class="m-0 text-gray-400">{% t navigation_wizard.back %}</p>
5
+ <span>{{ previous_doc.title }}</span>
6
+ </a>
7
+ {% endif %}
8
+ {% if next_doc %}
9
+ <a href="{{ site.baseurl }}{{next_doc.url}}" class="col-start-2 ring-1 no-underline ring-gray-200 hover:ring-gray-500 hover:ring-2 dark:ring-gray-500 dark:hover:ring-gray-200 rounded-lg p-2 text-right">
10
+ <p class="m-0 text-gray-400">{% t navigation_wizard.forward %}</p>
11
+ <span>{{ next_doc.title }}</span>
12
+ </a>
13
+ {% endif %}
14
+ </div>
@@ -0,0 +1,36 @@
1
+ <div class="border-b py-12 border-gray-200 dark:border-neutral-800 not-prose">
2
+ <div class="sm:px-6">
3
+ <div class="flex flex-wrap items-center justify-between sm:flex-nowrap">
4
+ <div>
5
+ <span class="font-bold {{content['color']}} uppercase text-white p-1.5 rounded-md text-sm mr-2">{{ method }}</span>
6
+ <code class="text-sm">{{ content['formatted'] }}</code>
7
+ <p class="my-4 text-lg font-bold leading-6 text-gray-900 dark:text-gray-100">{{ content['summary'] }}</p>
8
+ <p class="mt-1 text-sm text-gray-500 dark:text-gray-200">{{ content['description'] }}</p>
9
+ {% include auth_data.liquid %}
10
+ </div>
11
+ </div>
12
+ <div class="grid gap-y-4 mt-4">
13
+ {% if content.requestBody %}
14
+ {% assign request_properties = content.requestBody.content.first[1].schema.properties %}
15
+ {% assign request_type = content.requestBody.content.first[0] %}
16
+ {{ content.requestBody | check_required: 'request_body' }}
17
+ {% include schema/table.liquid type=request_type properties=request_properties request_required=content.requestBody.required %}
18
+ {% endif %}
19
+ {% if content.body_example %}
20
+ {% include request/body_example.liquid example = content.body_example %}
21
+ {% endif %}
22
+ <div class="grid lg:grid-cols-2 items-start gap-x-8">
23
+ <div>
24
+ {% if content.parameters and content.parameters.size > 0 %}
25
+ {% include request/list.liquid %}
26
+ {% endif %}
27
+ </div>
28
+ <div>
29
+ {% if content.responses %}
30
+ {% include response/table.liquid %}
31
+ {% endif %}
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
@@ -0,0 +1,18 @@
1
+ <div class="flex gap-x-2">
2
+ <div class="p-2 pl-4 text-left w-1/3 overflow-x-auto align-top">
3
+ <span class='font-semibold'>{{ include.name }}</span>
4
+ {% if include.nesting %}
5
+ <i class="ml-2 arrow right" :class="{ down: Alpine.store('{{include.name}}Open'), right: !Alpine.store('{{include.name}}Open')}"></i>
6
+ {% endif %}
7
+ {% if include.item_required or include.param_required %}
8
+ <p class='pt-2 text-xs text-red-500'>{% t params.card.required %}</p>
9
+ {% endif %}
10
+ </div>
11
+ <div class="py-2 border-b mix-blend-multiply dark:mix-blend-screen dark:border-neutral-700 w-2/3">
12
+ <span class='{{ include.type | type_style }} text-xs py-0.5 px-1 dark:border-neutral-800 rounded-md'>{{ include.type | capitalize }}</span>
13
+ <p class="text-sm pt-2 text-gray-800 dark:text-gray-200">{{ include.description }}</p>
14
+ {% if include.example %}
15
+ <p class="text-sm text-gray-500">Ex: {{ include.example }}</p>
16
+ {% endif %}
17
+ </div>
18
+ </div>
@@ -0,0 +1,27 @@
1
+ <div class="text-neutral-200 rounded-lg truncate bg-neutral-700 shadow">
2
+ <div class="flex justify-between px-6 py-3 font-semibold text-xl items-center">
3
+ <span>{% t request.body_example.example %}</span>
4
+ <button type="button" onclick="copyToClipboard()" class="overflow-hidden font-medium">
5
+ <span aria-hidden="false" class="text-sm flex items-center hover:bg-neutral-800/25 active:bg-neutral-800 pr-1 py-0.5 rounded-md">
6
+ <svg viewBox="0 0 20 20" aria-hidden="true" class="h-5 w-5 fill-neutral-700 stroke-white">
7
+ <path stroke-width="0" d="M5.5 13.5v-5a2 2 0 0 1 2-2l.447-.894A2 2 0 0 1 9.737 4.5h.527a2 2 0 0 1 1.789 1.106l.447.894a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2Z"></path>
8
+ <path fill="none" stroke-linejoin="round" d="M12.5 6.5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2m5 0-.447-.894a2 2 0 0 0-1.79-1.106h-.527a2 2 0 0 0-1.789 1.106L7.5 6.5m5 0-1 1h-3l-1-1"></path>
9
+ </svg>
10
+ {% t request.body_example.copy %}
11
+ </span>
12
+ </button>
13
+ </div>
14
+ <div class="px-4 pb-3">
15
+ <div class="p-4 text-sm bg-neutral-800 rounded-lg overflow-x-scroll">
16
+ {% highlight json linenos %}{{content['body_example']}}{% endhighlight %}
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <script type="text/javascript">
21
+ function copyToClipboard(id) {
22
+ var bodyExample = event.target.closest("div").nextElementSibling
23
+
24
+ var code = bodyExample.querySelector('code').innerText.trim();
25
+ navigator.clipboard.writeText(code)
26
+ }
27
+ </script>
@@ -0,0 +1,48 @@
1
+ {% assign path = content.parameters | where: 'in', 'path' %}
2
+ {% assign query = content.parameters | where: 'in', 'query' %}
3
+ {% assign header = content.parameters | where: 'in', 'header' %}
4
+ {% assign cookie = content.parameters | where: 'in', 'cookie' %}
5
+
6
+ {% if path != empty %}
7
+ <p class="text-xl py-3 font-semibold">{% t request.list.path_params %}</p>
8
+ <ul class="mb-5 px-2">
9
+ {% for param in path %}
10
+ <li class="dark:border-neutral-800">
11
+ {% include params/card.liquid name=param.name param_required=param.required type=param.schema.type description=param.description example=param.example %}
12
+ </li>
13
+ {% endfor %}
14
+ </ul>
15
+ {% endif %}
16
+
17
+ {% if query != empty %}
18
+ <p class="text-xl py-3 font-semibold">{% t request.list.query_params %}</p>
19
+ <ul class="mb-5 px-2">
20
+ {% for param in query %}
21
+ <li class="dark:border-neutral-800">
22
+ {% include params/card.liquid name=param.name param_required=param.required type=param.schema.type description=param.description example=param.example %}
23
+ </li>
24
+ {% endfor %}
25
+ </ul>
26
+ {% endif %}
27
+
28
+ {% if header != empty %}
29
+ <p class="text-xl py-3 font-semibold">{% t request.list.header_params %}</p>
30
+ <ul class="mb-5 px-2">
31
+ {% for param in header %}
32
+ <li class="dark:border-neutral-800">
33
+ {% include params/card.liquid name=param.name param_required=param.required type=param.schema.type description=param.description example=param.example %}
34
+ </li>
35
+ {% endfor %}
36
+ </ul>
37
+ {% endif %}
38
+
39
+ {% if cookie != empty %}
40
+ <p class="text-xl py-3 font-semibold">{% t request.list.cookie_params %}</p>
41
+ <ul class="mb-5 px-2">
42
+ {% for param in cookie %}
43
+ <li class="dark:border-neutral-800">
44
+ {% include params/card.liquid name=param.name param_required=param.required type=param.schema.type description=param.description %}
45
+ </li>
46
+ {% endfor %}
47
+ </ul>
48
+ {% endif %}
@@ -0,0 +1,40 @@
1
+ <div class='not-prose'>
2
+ <div class='relative border dark:border-neutral-800 dark:bg-neutral-900 rounded-xl overflow-auto'>
3
+ <div class='shadow-sm overflow-hidden'>
4
+ <table class='border-collapse table-auto w-full text-sm'>
5
+ <thead>
6
+ <tr>
7
+ <th colspan='2' class='border-b dark:border-neutral-800 bg-neutral-100 dark:bg-neutral-800 font-medium py-3 dark:text-slate-200 text-left'>
8
+ <p class="text-xl pl-6 font-semibold">{% t response.table.responses %}</p>
9
+ </th>
10
+ </tr>
11
+ </thead>
12
+ <tbody x-data class='bg-white dark:bg-neutral-900'>
13
+ {% for response in content['responses'] %}
14
+ {{ response | check_required: 'response'}}
15
+ {% assign response_properties = response[1].content.first[1].schema.properties %}
16
+ <tr class="last:border-b-0 border-b border-slate-100 dark:border-neutral-800 text-slate-500 dark:text-slate-400">
17
+ <td class="w-1/4 py-4 pl-4">
18
+ {{ response[0] | response_status }}
19
+ </td>
20
+ <td class="w-3/4 py-4">
21
+ <div>
22
+ <span class='dark:text-gray-200 text-gray-800'>{{ response[1]['description'] }}</span>
23
+ </div>
24
+ </td>
25
+ </tr>
26
+ {% if response_properties %}
27
+ <tr>
28
+ <td colspan='2'>
29
+ {% for property in response_properties %}
30
+ {% include schema/nested_table.liquid property=property %}
31
+ {% endfor %}
32
+ </td>
33
+ </tr>
34
+ {% endif %}
35
+ {% endfor %}
36
+ </tbody>
37
+ </table>
38
+ </div>
39
+ </div>
40
+ </div>