Home | History | Annotate | Download | only in docs
      1 <!DOCTYPE html>
      2 <html lang="en">
      3 
      4 <head>
      5   <meta charset="UTF-8">
      6   <title>Perfetto - Docs</title>
      7   <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
      8   <link href="//fonts.googleapis.com/css?family=Exo" rel="stylesheet">
      9   <link rel="stylesheet" href="/static/theme-simple.css">
     10   <style>
     11     :root {
     12       --base-font-size: 16px;
     13       --base-font-family: 'Exo', sans-serif;
     14       --theme-hue: 210;
     15       --cover-max-width: 90vw;
     16     }
     17   </style>
     18 </head>
     19 
     20 <body>
     21   <div id="app"></div>
     22   <script>
     23     window.$docsify = {
     24       name: 'Perfetto',
     25       repo: 'https://android.googlesource.com/platform/external/perfetto/',
     26       coverpage: true,
     27       loadSidebar: 'toc.md',
     28       markdown: {
     29         renderer: {
     30           link: function (href, title, text) {
     31             title = title || '';
     32             if (href.startsWith('/') && !href.startsWith('/docs')) {
     33               href = `https://android.googlesource.com/platform/external/perfetto/+/master${href}`;
     34             } else if(href.startsWith('http') || href.startsWith('//')) {
     35               // Leave it as it is.
     36             } else if(href.startsWith('#')) {
     37               href = `${document.location.hash.split('?')[0]}?id=${href.substr(1)}`;
     38             } else {
     39               href = href.replace(/^[/]docs/, '');
     40               href = `#/${href}`;
     41             }
     42             return `<a href="${href}" title="${title}">${text}</a>`;
     43           }
     44         }
     45       }
     46     }
     47   </script>
     48   <!-- see infra/perfetto-site.appspot.com -->
     49   <script src="/static/docsify.min.js"></script>
     50   <script src="/static/docsify-themeable.min.js"></script>
     51   <script src="/static/docsify-copy-code.min.js"></script>
     52   <script src="/static/prism-bash.min.js"></script>
     53 </body>
     54 
     55 </html>