diff --git a/latest/extensions/get-started/your-first-extension/index.html b/latest/extensions/get-started/your-first-extension/index.html index 8071820c2c..d66b378ebd 100644 --- a/latest/extensions/get-started/your-first-extension/index.html +++ b/latest/extensions/get-started/your-first-extension/index.html @@ -802,26 +802,26 @@
Simple Lens extension that adds "Hello World" page to a cluster menu.
First you will need to clone the Lens Extension samples repository to your local machine:
-git clone https://github.com/lensapp/lens-extension-samples.git
-
+git clone https://github.com/lensapp/lens-extension-samples.git
+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 helloworld-sample:
-mkdir -p ~/.k8slens/extensions
-cd ~/.k8slens/extensions
+mkdir -p ~/.k8slens/extensions
+cd ~/.k8slens/extensions
ln -s <lens-extension-samples directory>/helloworld-sample helloworld-sample
-
+
To build the extension you can use make or run the npm commands manually:
-cd <lens-extension-samples directory>/helloworld-sample
+cd <lens-extension-samples directory>/helloworld-sample
make build
-
+
OR
-cd <lens-extension-samples directory>/helloworld-sample
+cd <lens-extension-samples directory>/helloworld-sample
npm install
npm run build
-
+
If you want to watch for any source code changes and automatically rebuild the extension you can use:
-cd <lens-extension-samples directory>/helloworld-sample
+cd <lens-extension-samples directory>/helloworld-sample
npm run dev
-
+
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 create a new one. You should see then see the "Hello World" page in the Lens sidebar cluster menu.
Developing the extension#
Let's make a change to the message that our helloworld-sample extension displays:
diff --git a/latest/getting-started/index.html b/latest/getting-started/index.html
index e16a9a2b81..f3624e595b 100644
--- a/latest/getting-started/index.html
+++ b/latest/getting-started/index.html
@@ -858,8 +858,8 @@
Lens is officially distributed as a Snap package in the Snap Store:
You can install it by running:
-sudo snap install kontena-lens --classic
-
+sudo snap install kontena-lens --classic
+
Update cadence#
Lens releases a new version each month with new features and important bug fixes. Lens supports auto updating and you will be prompted to install the new release when it becomes available!
To stay current with the Lens features, you can review the release notes.
diff --git a/latest/sitemap.xml.gz b/latest/sitemap.xml.gz
index 3dc4b687ae..99f502632f 100644
Binary files a/latest/sitemap.xml.gz and b/latest/sitemap.xml.gz differ