|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <title>Vertigo-docs</title> |
| 6 | + <link rel="icon" href="_media/favicon.ico"> |
| 7 | + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| 8 | + <meta name="description" content="Vertigo documentation"> |
| 9 | + <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
| 10 | + <link rel="stylesheet" href="https://unpkg.com/docsify/lib/themes/vue.css" title="vue"> |
| 11 | + <link rel="stylesheet" href="../docs.css" title="vue"> |
| 12 | + |
| 13 | +</head> |
| 14 | +<body> |
| 15 | + <div id="app">Loading ...</div> |
| 16 | + <script> |
| 17 | + window.$docsify = { |
| 18 | + ga: 'UA-9582182-15', |
| 19 | + homepage: '/intro/why.md', |
| 20 | + basePath: 'https://raw.githubusercontent.com/vertigo-io/vertigo-docs/v3.3.0/', |
| 21 | + name: 'vertigo', |
| 22 | + logo: 'https://avatars.githubusercontent.com/vertigo-io?s=70', |
| 23 | + alias: { |
| 24 | + '/.*/_sidebar.md': 'https://raw.githubusercontent.com/vertigo-io/vertigo-docs/gh-pages/_sidebar.md', |
| 25 | + '/.*/_404.md': 'https://raw.githubusercontent.com/vertigo-io/vertigo-docs/gh-pages/_404.md', |
| 26 | + '/changes': 'https://raw.githubusercontent.com/vertigo-io/vertigo/master/CHANGES.md', |
| 27 | + '/changes-extensions': 'https://raw.githubusercontent.com/vertigo-io/vertigo-extensions/master/CHANGES.md', |
| 28 | + }, |
| 29 | + loadSidebar: true, |
| 30 | + subMaxLevel: 2, |
| 31 | + auto2top : true, |
| 32 | + notFoundPage: true, |
| 33 | + search: { |
| 34 | + noData: { |
| 35 | + '/': 'Aucun resultat!' |
| 36 | + }, |
| 37 | + paths: 'auto', |
| 38 | + placeholder: { |
| 39 | + '/': 'Recherche' |
| 40 | + } |
| 41 | + }, |
| 42 | + formatUpdated: '{DD}/{MM} {HH}:{mm}', |
| 43 | + plugins: [ |
| 44 | + function (hook, vm) { |
| 45 | + hook.beforeEach(function (html) { |
| 46 | + if (/githubusercontent\.com/.test(vm.route.file)) { |
| 47 | + url = vm.route.file |
| 48 | + .replace('raw.githubusercontent.com', 'github.com') |
| 49 | + .replace(/\/master/, '/blob/master') |
| 50 | + } else { |
| 51 | + url = 'https://github.com/vertigo-io/vertigo-docs/blob/master/' + vm.route.file |
| 52 | + } |
| 53 | + var editHtml = '> [:memo: Aidez à rendre cette documentation meilleure](' + url + ')\n' |
| 54 | + |
| 55 | + return editHtml + html; |
| 56 | + }); |
| 57 | + |
| 58 | + hook.doneEach(function() { |
| 59 | + var $select = $('#versions'); |
| 60 | + $.ajax({ |
| 61 | + url: 'https://api.github.com/repos/vertigo-io/vertigo-docs/tags', |
| 62 | + }).then(function(options) { |
| 63 | + var i = 0; |
| 64 | + options.map(function(option) { |
| 65 | + var $option = $('<option>'); |
| 66 | + |
| 67 | + $option |
| 68 | + .val('/vertigo-docs/'+((i>0)?option['name']+'/':'')) |
| 69 | + .text(option['name']+((i>0)?'':' (current)')); |
| 70 | + $select.append($option); |
| 71 | + i++; |
| 72 | + }); |
| 73 | + var extractFromLocation = window.location.href.substring(window.location.origin.length,window.location.href.indexOf('/#/')+1); |
| 74 | + if(extractFromLocation.includes('draft')) { |
| 75 | + $select.append('<option selected value="/vertigo-docs/draft/">draft</option>'); |
| 76 | + } |
| 77 | + $select.val(extractFromLocation); |
| 78 | + }); |
| 79 | + const $search = Docsify.dom.find('div.search'); |
| 80 | + const $input = Docsify.dom.find($search, 'input'); |
| 81 | + let gaTimeId; |
| 82 | + |
| 83 | + Docsify.dom.on($input, 'input', e => { |
| 84 | + clearTimeout(gaTimeId); |
| 85 | + gaTimeId = setTimeout(_ => { |
| 86 | + window.ga('set', 'page', '/?s='+e.target.value.trim()+location.hash); |
| 87 | + window.ga('send', 'pageview'); |
| 88 | + }, 500); |
| 89 | + }); |
| 90 | + }); |
| 91 | + } |
| 92 | + ] |
| 93 | + } |
| 94 | + </script> |
| 95 | + <script src="https://unpkg.com/jquery@3.3.1/dist/jquery.min.js"></script> |
| 96 | + <script src="https://unpkg.com/docsify/lib/docsify.min.js"></script> |
| 97 | + <script src="https://unpkg.com/docsify/lib/plugins/search.min.js"></script> |
| 98 | + <script src="https://unpkg.com/docsify/lib/plugins/ga.min.js"></script> |
| 99 | + <script src="https://unpkg.com/prismjs/components/prism-markdown.min.js"></script> |
| 100 | + <script src="https://unpkg.com/prismjs/components/prism-java.min.js"></script> |
| 101 | + <script src="https://unpkg.com/prismjs/components/prism-yaml.min.js"></script> |
| 102 | + <script src="https://unpkg.com/prismjs/components/prism-json.min.js"></script> |
| 103 | +</body> |
| 104 | +</html> |
0 commit comments