From d4ac840f18241734a4ca1094376db3ae7f70dc26 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Wed, 7 Sep 2022 15:03:04 -0700 Subject: [PATCH] Remove landing page from docs (#21) * Remove landing page from docs Signed-off-by: Derek Nola --- docusaurus.config.js | 3 +- src/pages/index.js | 136 -------------------- src/pages/index.module.css | 256 ------------------------------------- 3 files changed, 2 insertions(+), 393 deletions(-) delete mode 100644 src/pages/index.js delete mode 100644 src/pages/index.module.css diff --git a/docusaurus.config.js b/docusaurus.config.js index c2fee486f..b041f7870 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -4,7 +4,7 @@ module.exports = { title: 'K3s', tagline: '', url: 'https://k3s-io.github.io', - baseUrl: '/docs/', + baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', @@ -57,6 +57,7 @@ module.exports = { { docs: { /* other docs plugin options */ + routeBasePath: '/', // Serve the docs at the site's root sidebarPath: require.resolve('./sidebars.js'), showLastUpdateTime: true, editUrl: 'https://github.com/k3s-io/docs/edit/main/', diff --git a/src/pages/index.js b/src/pages/index.js deleted file mode 100644 index 332d2c44a..000000000 --- a/src/pages/index.js +++ /dev/null @@ -1,136 +0,0 @@ -import Layout from '@theme/Layout'; -import ThemedImage from '@theme/ThemedImage'; -import CodeBlock from '@theme/CodeBlock'; -import React from 'react'; -import index from './index.module.css'; - -function Landing() { - return ( - -
-
-
-
-
-

Lightweight Kubernetes

-

The certified Kubernetes distribution built for IoT & Edge computing

-
-
-

This won't take long…

- { -`curl -sfL https://get.k3s.io | sh - -# Check for Ready node, takes ~30 seconds -k3s kubectl get node ` - } -

For detailed installation, refer to the docs

-
-
-
-
-

Great For

-
-
Edge
-
IoT
-
CI
-
ARM
-
-
-
- -
-

Why Use K3s

-
-
-
Perfect for Edge
-

K3s is a highly available, certified - Kubernetes distribution designed - for production workloads in - unattended, resource-constrained, - remote locations or inside - IoT appliances.

-
- -
-
Simplified & Secure
-

K3s is packaged as a single - <60MB binary that reduces the - dependencies and steps needed - to install, run and auto-update a - production Kubernetes cluster.

-
- -
-
Optimized for ARM
-

Both ARM64 and ARMv7 are - supported with binaries and - multiarch images available for - both. K3s works great on - something as small as a - Raspberry Pi to an AWS - a1.4xlarge 32GiB server.

-
-
-
-
-
-

How it Works

- {{ .Site.Title }} -

The above figure shows the difference - between K3s server and K3s agent nodes. - For more information, - see the - architecture documentation. -

-
-
-
-

Get Started

-
- 1. Download K3s - latest release, x86_64, ARMv7, and - ARM64 are supported - 2. Run server -
- { -`sudo k3s server & -# Kubeconfig is written to /etc/rancher/k3s/k3s.yaml -sudo k3s kubectl get node - -# On a different node run the below command. -# NODE_TOKEN comes from /var/lib/rancher/k3s/server/node-token on your server -sudo k3s agent --server https://myserver:6443 --token \${NODE_TOKEN}` - } -
-
-
-

Learn More

-
-
-

Read the latest SUSE Rancher blog on K3s.

- Blog -
-
-

Watch the latest "Up and Running: K3s" Online Training.

- Watch Training -
-
-
-
-
-
- -

- We are a Cloud Native Computing Foundation sandbox project. -

-
-
-
- ); -} - -export default Landing \ No newline at end of file diff --git a/src/pages/index.module.css b/src/pages/index.module.css deleted file mode 100644 index 6497c8083..000000000 --- a/src/pages/index.module.css +++ /dev/null @@ -1,256 +0,0 @@ -/* -------------------------------- -Below is used for the k3s.io landing page -----------------------------------*/ - -* { - box-sizing:inherit -} - -.bgPrimary { - background-color:var(--ifm-color-secondary) -} - -[data-theme='dark'] .bgPrimary { - background-color:var(--ifm-color-primary) -} - - -.bgLight { - background-color:var(--light) -} - -.wrap { - box-sizing: border-box; - width: 75%; - max-width: 1200px; - margin: 0 auto; - padding-top: 8rem; -} - -/* These need to be wrapped to prevent the markdown docs from - pulling in these basic definitions */ -.landing { - font-family: 'roboto', sans-serif; - font-size:10px; -} - -.landing p { - margin-bottom:2rem; - font-size:1.5em; - line-height:1.5rem -} - -.landing h1 { - margin-bottom:3rem; - font-size:5em; - line-height:4rem -} -.landing h2 { - margin-bottom:3rem; - font-size:3em; - line-height:4rem; - text-align:center; -} -.landing h3 { - margin-bottom:3rem; - font-size:2.5em; - line-height:3.5rem -} -.landing h4 { - margin-bottom:1rem; - font-size:2em; - line-height:2rem -} -.landing h5 { - margin-bottom:2rem; - font-size:1.75em; - line-height:2.75rem -} -.landing h6 { - margin-bottom:2rem; - font-size:1.4em; - line-height:2.25rem -} - -.cncf { - padding-top: 5rem; - padding-bottom: 4rem; -} -.cncf .cncfLogo { - display: block; - width: 300px; - margin: auto; - padding-bottom: 2rem; -} -.cncf p { - font-size: 22px; -} - -.cncfFooter { - background-color: var(--dark); - color: var(--ifm-color-secondary); - padding: var(--ifm-footer-padding-vertical) - var(--ifm-footer-padding-horizontal); - text-align: center; -} - -.textCenter { - text-align: center; -} - -.intro { - display:grid; - grid-template-columns:repeat(6,1fr); - padding: 0; - align-items:end; - column-gap:2rem; - position:relative -} -.intro .gridTwo { - grid-template-columns:60% auto -} -.intro .wrap { - padding:5rem 0 15rem -} -.intro .folder { - grid-row:5/span 3; - grid-column:2/span 4; - z-index:2 -} -.intro .bgPrimary { - grid-row:2/span 4; - grid-column:1/span 6; - color:var(--dark) -} -.intro a { - text-decoration: underline; -} - -[data-theme='dark'] -.intro h1, -.intro h4, -.intro p { - color:var(--light) -} -[data-theme='dark'] .intro a { - color: var(--ifm-color-secondary) -} - - -.getStarted { - display:grid; - grid-template-columns:repeat(6,1fr); - padding:0; - position:relative - } - -.getStarted .white { - background:var(--light); - grid-row:2/span 4; - grid-column:2/span 4; - z-index:2; - box-shadow:rgba(51,49,59,.5) 0 0 20px; - padding:5rem -} - -.getStarted .bgPrimary { - grid-row:5/span 3; - grid-column:1/span 6; - padding:20rem 0 5rem -} - -@media screen and (max-width: 996px) { - .getStarted { - grid-template-columns:repeat(8,1fr); - } - .getStarted .white { - grid-column:2/span 6; - } - .getStarted .bgPrimary { - grid-column:1/span 8; - } -} - -[data-theme='dark'] .learnMore { - background-color:var(--ifm-color-secondary) -} - - -.folder h4 { - display:inline-block; - margin:0; - padding:10px 20px; - background-color:var(--ifm-color-primary-dark); - color:var(--light); - position:relative - } - [data-theme='dark'] .folder h4 { - background-color:var(--ifm-color-secondary-light); - color:var(--dark); - } - -.folder .bgLight { - background-color:var(--light); - padding:40px; - border-top:solid var(--ifm-color-primary-dark) 14px; - box-shadow:rgba(51,49,59,.5) 0 0 20px -} -[data-theme='dark'] .folder .bgLight { - border-top:solid var(--ifm-color-secondary-light) 14px; -} - -.gridTwo { - display: grid; - grid-template-columns: repeat(2, 1fr); - grid-gap: 2rem; - align-items: center; -} - -.gridThree { - display: grid; - grid-template-columns: repeat(3, 1fr); - grid-gap: 2rem; -} - -.gridFour { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - grid-gap: 2rem; -} - -.gridDynamic { - display:flex -} - -.gridDynamic h5 { - margin:0; - flex-grow:1; - flex-basis:0 -} - -/** In mobile view */ -@media screen and (max-width: 996px) { - .gridTwo, - .gridThree, - .intro .gridTwo { - grid-template-columns:1fr - } -} - -pre { - page-break-inside:avoid; - font-family:monospace; - font-size:15px; - line-height:1.6; - margin-bottom:1.6em; - max-width:100%; - overflow:auto; - padding:1em 1.5em; - display:block; - word-wrap:break-word; - overflow-wrap: break-word; - border-radius:3px; - white-space:pre-wrap -} - -