|
| 1 | +<!DOCTYPE HTML> |
| 2 | +<html lang="en-US"> |
| 3 | + |
| 4 | +<head> |
| 5 | + <title>React-admin - {{ page.title }}</title> |
| 6 | + <meta charset="UTF-8"> |
| 7 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 8 | + <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
| 9 | + <meta name="description" content="{{ page.description }}"> |
| 10 | + <meta name="HandheldFriendly" content="true" /> |
| 11 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 12 | + <meta name="apple-mobile-web-app-capable" content="yes"> |
| 13 | + <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| 14 | + <link rel="stylesheet" href="{{ '/css/materialize.min.css' | relative_url }}"> |
| 15 | + <link rel="stylesheet" href="{{ '/css/style-v3.css' | relative_url }}"> |
| 16 | + <link rel="stylesheet" href="{{ '/css/syntax.css' | relative_url }}"> |
| 17 | + <link rel="stylesheet" href="{{ '/css/prism.css' | relative_url }}"> |
| 18 | + <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
| 19 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" /> |
| 20 | + <!-- You won't find analytics tags in this page. React-admin protects your privacy! --> |
| 21 | +</head> |
| 22 | + |
| 23 | +<body> |
| 24 | + |
| 25 | + <header> |
| 26 | + <nav> |
| 27 | + <a href="#" data-target="slide-out" class="sidenav-trigger"><i class="material-icons">menu</i></a> |
| 28 | + <div class="nav-wrapper" style="background: linear-gradient(145deg,#027be3 11%,#1a237e 75%)"> |
| 29 | + <div class="left"> |
| 30 | + <form action="#" onsubmit="return false;"> |
| 31 | + <div class="input-field" style="position:absolute"> |
| 32 | + <input type="search" name="q" id="query" size="31" maxlength="255" value="" |
| 33 | + style="vertical-align:inherit!important" /> |
| 34 | + <label class="label-icon" for="test"><i class="material-icons">search</i></label> |
| 35 | + <i class="material-icons">close</i> |
| 36 | + </div> |
| 37 | + <span id="search"></span> |
| 38 | + </form> |
| 39 | + </div> |
| 40 | + <ul id="nav-mobile" class="right hide-on-med-and-down"> |
| 41 | + <li class="active"><a href="https://marmelab.com/react-admin/Readme.html">Documentation</a></li> |
| 42 | + <li><a href="https://marmelab.com/react-admin-demo">Demo</a></li> |
| 43 | + <li><a href="https://marmelab.com/en/blog/#react-admin">Blog</a></li> |
| 44 | + <li><a href="https://github.com/marmelab/react-admin">GitHub</a></li> |
| 45 | + </ul> |
| 46 | + </div> |
| 47 | + </nav> |
| 48 | + <ul id="slide-out" class="sidenav sidenav-fixed"> |
| 49 | + <li class="logo"> |
| 50 | + <a href="{{ site.url }}"><img src="{{ site.url }}/assets/logo_white.png" /></a> |
| 51 | + </li> |
| 52 | + {% include_relative navigation.html %} |
| 53 | + </ul> |
| 54 | + |
| 55 | + </header> |
| 56 | + |
| 57 | + <main> |
| 58 | + <div class="container"> |
| 59 | + <div class="row"> |
| 60 | + <div class="col s12 m8 offset-m1 xl7 offset-xl1 markdown-section DocSearch-content"> |
| 61 | + {{ content }} |
| 62 | + </div> |
| 63 | + <div class="col hide-on-small-only m3 xl3 offset-xl1"> |
| 64 | + <div class="toc-wrapper"> |
| 65 | + <div style="height: 1px;"> |
| 66 | + <ul class="section table-of-contents pushpin"> |
| 67 | + </ul> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + </main> |
| 74 | + |
| 75 | + <script src="{{ '/js/materialize.min.js' | relative_url }}"></script> |
| 76 | + <script src="{{ 'js/prism.js' | relative_url }}"></script> |
| 77 | + <script> |
| 78 | + function slugify(text) { |
| 79 | + return text.toString().toLowerCase() |
| 80 | + .replace(/\s+/g, '-') // Replace spaces with - |
| 81 | + .replace(/[^\w\-]+/g, '') // Remove all non-word chars |
| 82 | + .replace(/\-\-+/g, '-') // Replace multiple - with single - |
| 83 | + .replace(/^-+/, '') // Trim - from start of text |
| 84 | + .replace(/-+$/, ''); // Trim - from end of text |
| 85 | + } |
| 86 | + document.addEventListener('DOMContentLoaded', function () { |
| 87 | + /* Generate table of contents */ |
| 88 | + document.querySelectorAll('.markdown-section h2').forEach(element => { |
| 89 | + element.classList.add('scrollspy'); |
| 90 | + var a = document.createElement('a'); |
| 91 | + a.href = "#" + slugify(element.innerText); |
| 92 | + a.innerText = element.innerText; |
| 93 | + var li = document.createElement('li'); |
| 94 | + li.appendChild(a); |
| 95 | + document.querySelector('.table-of-contents').appendChild(li) |
| 96 | + }) |
| 97 | + M.Sidenav.init(document.querySelectorAll('.sidenav')); |
| 98 | + M.Pushpin.init(document.querySelector('.pushpin'), { offset: 75, top: 75 }); |
| 99 | + M.ScrollSpy.init(document.querySelectorAll('.scrollspy')); |
| 100 | + M.Dropdown.init(document.querySelectorAll('.dropdown-trigger')); |
| 101 | + }); |
| 102 | + </script> |
| 103 | + <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> |
| 104 | + <script type="text/javascript"> |
| 105 | + docsearch({ |
| 106 | + apiKey: '32f254b1de6a25a96665d1229b6eb8f7', |
| 107 | + indexName: 'marmelab-react-admin', |
| 108 | + inputSelector: '#query', |
| 109 | + debug: false, // Set debug to true if you want to inspect the dropdown |
| 110 | + autocompleteOptions: { |
| 111 | + appendTo: '#search', |
| 112 | + hint: false, |
| 113 | + } |
| 114 | + }); |
| 115 | + </script> |
| 116 | +</body> |
| 117 | + |
| 118 | +</html> |
0 commit comments