Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
mzusin committed Oct 7, 2023
1 parent 6fadce1 commit 3ed41da
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 27 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ TypeScript-based library for managing browser extensions APIs with async/await.




```
_______ _________ _______ _ _______ _________ _______ _ _______
( ____ \|\ /|\__ __/( ____ \( ( /|( ____ \\__ __/( ___ )( ( /|( ____ \
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="font-roboto bg-gray-900 text-gray-100" id="special-page">
Expand Down Expand Up @@ -89,6 +89,6 @@ <h1 class="text-slate-100 font-extrabold text-4xl sm:text-5xl lg:text-6xl tracki
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>

Large diffs are not rendered by default.

File renamed without changes.
6 changes: 3 additions & 3 deletions docs/pages/basic-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -167,6 +167,6 @@
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/cookies.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -189,6 +189,6 @@
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>
10 changes: 6 additions & 4 deletions docs/pages/devtools.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -132,7 +132,9 @@
<p class="mb-4"><strong class="font-bold">Create DevTools Panel</strong></p>
<pre class="hljs p-4 mb-4 rounded-md shadow-xl overflow-auto whitespace-pre-wrap text-base"><code><span class="hljs-keyword">import</span> { createDevtoolsPanel } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;mz-browser-extensions&#x27;</span>;

<span class="hljs-comment">// Manifest: &quot;devtools_page&quot;: &quot;devtools.html&quot;</span>
<span class="hljs-comment">// Manifest: </span>
<span class="hljs-comment">// &quot;devtools_page&quot;: &quot;devtools.html&quot;</span>
<span class="hljs-comment">// &quot;host_permissions&quot;: [ &quot;&lt;all_urls&gt;&quot; ]</span>

<span class="hljs-keyword">const</span> panel = <span class="hljs-keyword">await</span> <span class="hljs-title function_">createDevtoolsPanel</span>(<span class="hljs-string">&#x27;Panel Title&#x27;</span>, <span class="hljs-string">&#x27;img/panel-icon.png&#x27;</span>, <span class="hljs-string">&#x27;html/panel.html&#x27;</span>);</code></pre>
</div>
Expand Down Expand Up @@ -162,6 +164,6 @@
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -219,6 +219,6 @@
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/screenshot.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -176,6 +176,6 @@
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/storage.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -213,6 +213,6 @@
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1696686096556.css" />
<!--<link rel="stylesheet" href="/js/index.1696686096556.css" />-->
<link rel="stylesheet" href="/css/styles.1696686148947.css" />
<!--<link rel="stylesheet" href="/js/index.1696686148947.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -182,6 +182,6 @@
</div>
</footer>-->

<script src="/js/index.1696686096556.js"></script>
<script src="/js/index.1696686148947.js"></script>
</body>
</html>
4 changes: 3 additions & 1 deletion src/docs/data/pages/2-api/40-devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
```ts
import { createDevtoolsPanel } from 'mz-browser-extensions';

// Manifest: "devtools_page": "devtools.html"
// Manifest:
// "devtools_page": "devtools.html"
// "host_permissions": [ "<all_urls>" ]

const panel = await createDevtoolsPanel('Panel Title', 'img/panel-icon.png', 'html/panel.html');
```

0 comments on commit 3ed41da

Please sign in to comment.