Deployed 0727456aa to master with MkDocs 1.1.2 and mike 0.5.5

This commit is contained in:
GitHub Action committed 2021-02-04 17:25:51 +00:00
1 parent bedfb65db2
commit 2903eeaeec
211 files changed
+3787 -3742

No files matched your search

@@ -944,15 +944,15 @@ npm start <span class="c1"># start the webpack server in watch mode</span>
<h2 id="developing-the-extension">Developing the Extension<a class="headerlink" href="#developing-the-extension" title="Permanent link">#</a></h2>
<p>Next, you'll try changing the way the new menu item appears in the UI. You'll change it from "Hello World" to "Hello Lens".</p>
<p>Open <code>my-first-lens-ext/renderer.tsx</code> and change the value of <code>title</code> from <code>"Hello World"</code> to <code>"Hello Lens"</code>:</p>
<div class="highlight"><pre><span></span><code>clusterPageMenus = [
{
target: { pageId: &quot;hello&quot; },
title: &quot;Hello Lens&quot;,
components: {
Icon: ExampleIcon,
}
}
]
<div class="highlight"><pre><span></span><code><span class="nx">clusterPageMenus</span> <span class="o">=</span> <span class="p">[</span>
<span class="p">{</span>
<span class="nx">target</span><span class="o">:</span> <span class="p">{</span> <span class="nx">pageId</span><span class="o">:</span> <span class="s2">&quot;hello&quot;</span> <span class="p">},</span>
<span class="nx">title</span><span class="o">:</span> <span class="s2">&quot;Hello Lens&quot;</span><span class="p">,</span>
<span class="nx">components</span><span class="o">:</span> <span class="p">{</span>
<span class="nx">Icon</span>: <span class="kt">ExampleIcon</span><span class="p">,</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">]</span>
</code></pre></div>
<p>Reload Lens and you will see that the menu item text has changed to "Hello Lens." To reload Lens, enter <code>CMD+R</code> on Mac and <code>Ctrl+R</code> on Windows/Linux.</p>
<p><img alt="Hello World" src="../images/hello-lens.png" /></p>