mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Deployed 9c073a8 to latest with MkDocs 1.1.2 and mike 0.5.3
This commit is contained in:
parent
e979b6e04b
commit
30b14f5591
@ -684,7 +684,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -683,7 +683,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -917,7 +917,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -780,7 +780,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -789,28 +789,37 @@
|
||||
<h1 id="your-first-extension">Your First Extension<a class="headerlink" href="#your-first-extension" title="Permanent link">#</a></h1>
|
||||
<p>In this topic, we'll teach you the fundamental concepts for building extensions. Make sure you have <a href="https://nodejs.org/en/">Node.js</a> and <a href="https://git-scm.com/">Git</a> installed....</p>
|
||||
<h2 id="installing-and-building-the-extension">Installing and Building the extension<a class="headerlink" href="#installing-and-building-the-extension" title="Permanent link">#</a></h2>
|
||||
<p>Simple Lens extension that adds "hello-world" page to a cluster menu.</p>
|
||||
<p>Simple Lens extension that adds "Hello World" page to a cluster menu.</p>
|
||||
<h3 id="linux">Linux<a class="headerlink" href="#linux" title="Permanent link">#</a></h3>
|
||||
<p>First you will need to clone the <a href="https://github.com/lensapp/lens-extension-samples">Lens Extension samples</a> repository to your local machine:</p>
|
||||
<pre><code class="language-sh">git clone https://github.com/lensapp/lens-extension-samples.git
|
||||
</code></pre>
|
||||
<p>Next you need to create a symlink from the directory that Lens will monitor for user installed extensions to the sample extension, in this case <strong>helloworld-sample</strong>:</p>
|
||||
<pre><code class="language-sh">mkdir -p ~/.k8slens/extensions
|
||||
git clone https://github.com/lensapp/lens-extension-samples.git
|
||||
cp -pr lens-extension-samples/helloworld-sample ~/.k8slens/extensions
|
||||
cd ~/.k8slens/extensions
|
||||
ln -s <lens-extension-samples directory>/helloworld-sample helloworld-sample
|
||||
</code></pre>
|
||||
<p>To build the extension you can use <code>make</code> or run the <code>npm</code> commands manually:</p>
|
||||
<pre><code class="language-sh">cd ~/.k8slens/extensions/helloworld-sample
|
||||
<pre><code class="language-sh">cd <lens-extension-samples directory>/helloworld-sample
|
||||
make build
|
||||
</code></pre>
|
||||
<p>OR</p>
|
||||
<pre><code class="language-sh">cd ~/.k8slens/extensions/helloworld-sample
|
||||
<pre><code class="language-sh">cd <lens-extension-samples directory>/helloworld-sample
|
||||
npm install
|
||||
npm run build
|
||||
</code></pre>
|
||||
<p>Open Lens application and navigate to a cluster. You should see "Hello World" in the Lens sidebar menu.</p>
|
||||
<p>If you want to watch for any source code changes and automatically rebuild the extension you can use:</p>
|
||||
<pre><code class="language-sh">cd <lens-extension-samples directory>/helloworld-sample
|
||||
npm run dev
|
||||
</code></pre>
|
||||
<p>Finally, if you already have Lens open you will need to quit and restart Lens for the extension to be loaded. After this initial restart you can reload Lens and it will pick up any new builds of the extension. Within Lens connect to an existing cluster or <a href="../../../clusters/adding-clusters/">create a new one</a>. You should see then see the "Hello World" page in the Lens sidebar cluster menu.</p>
|
||||
<h2 id="developing-the-extension">Developing the extension<a class="headerlink" href="#developing-the-extension" title="Permanent link">#</a></h2>
|
||||
<p>Let's make a change to the message:</p>
|
||||
<p>Let's make a change to the message that our helloworld-sample extension displays:</p>
|
||||
<ul>
|
||||
<li>Change the message from Hello World from HelloWorld! to <strong>Hello Lens Extensions</strong> in <code>page.tsx</code></li>
|
||||
<li>Rebuild the extension</li>
|
||||
<li>Reload the Lens window</li>
|
||||
<li>Navigate to <code><lens-extension-samples directory>/helloworld-sample</code>.</li>
|
||||
<li>Change the message from HelloWorld! to <strong>Hello Lens Extensions</strong> in <code>page.tsx</code>.</li>
|
||||
<li>Rebuild the extension or, if you used <code>npm run dev</code>, the extension should automatically rebuild.</li>
|
||||
<li>Reload the Lens window and click on the Hello World page.</li>
|
||||
<li>You should see the updated message showing up.</li>
|
||||
</ul>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">#</a></h2>
|
||||
@ -824,7 +833,7 @@ npm run build
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -682,7 +682,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -830,7 +830,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -671,7 +671,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -909,7 +909,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -713,7 +713,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -789,7 +789,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@ -764,7 +764,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,79 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
|
||||
<loc>https://docs.k8slens.dev/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/getting-started/downloading-lens/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/getting-started/preferences/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/getting-started/introductory-videos/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/clusters/adding-clusters/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/clusters/removing-clusters/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/clusters/settings/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/overview/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/get-started/your-first-extension/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/get-started/anatomy/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/get-started/wrapping-up/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/capabilities/overview/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/capabilities/common-capabilities/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/capabilities/theming/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/guides/overview/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/guides/renderer-extension/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/testing-and-publishing/testing/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/testing-and-publishing/publishing/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://docs.k8slens.dev/extensions/testing-and-publishing/bundling/</loc>
|
||||
<lastmod>2020-10-30</lastmod>
|
||||
<lastmod>2020-11-03</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
</urlset>
|
||||
Binary file not shown.
@ -744,7 +744,7 @@
|
||||
<div class="md-source-date">
|
||||
<small>
|
||||
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 30, 2020</span>
|
||||
Last update: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">November 3, 2020</span>
|
||||
|
||||
</small>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user