Skip to content

Commit

Permalink
docs: remove duplicate "installation" entry from left nav
Browse files Browse the repository at this point in the history
As they were two "installation" pages in the final site, the left
navigation had two entries for it. The new structure in this change
fixes this by adding an index page to the "installation" folder that
is rendered for the '/installation' URL path.

This commit also fixes a couple of broken links/anchors.
  • Loading branch information
makkes committed Nov 24, 2022
1 parent 323086d commit 007c332
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion website/docs/cluster-management/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import BrowserOnly from "@docusaurus/BrowserOnly";

## Creating your first CAPD Cluster

If you've followed the [Upgrade steps](installation/overview.mdx#weave-gitops-enterprise) in the [Installation guide](installation/overview.mdx) you should have:
If you've followed the [Installation guide](installation/weave-gitops-enterprise.mdx) you should have:

1. Weave GitOps Enterprise installed
2. A CAPI provider installed (With support for `ClusterResourceSet`s enabled).
Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hide_title: true

This hands-on guide will introduce you to the basics of the GitOps Dashboard web UI, to help you understand the state of your system, before deploying a new application to your cluster. It is adapted from this guide - [Flux - Getting Started](https://fluxcd.io/docs/get-started/).

If you haven't already, be sure to check out our [introduction](./intro.md) to Weave GitOps and our [installation docs](./installation/overview.mdx).
If you haven't already, be sure to check out our [introduction](./intro.md) to Weave GitOps and our [installation docs](./installation/index.mdx).

## Part 1 - Weave GitOps overview

Expand Down
2 changes: 1 addition & 1 deletion website/docs/gitops-run/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sessions, whereas the direct mode is intended for a local cluster.

### Prerequisites
#### Required
- Install the GitOps CLI. See [the installation](../installation/overview.mdx#gitops-cli)
- Install the GitOps CLI. See [the installation](../installation/weave-gitops.mdx#gitops-cli)

#### Optional
- This guide uses [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) for demonstrations, but it is not required to use GitOps Run
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/cert-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ to configure the use of Let's Encrypt to issue TLS certificates.

- A Kubernetes cluster such as [Kind](https://kind.sigs.k8s.io/docs/user/quick-start/) cluster running a
[Flux-supported version of Kubernetes](https://fluxcd.io/docs/installation/#prerequisites)
- Weave GitOps is [installed](../installation/overview.mdx)
- Weave GitOps is [installed](../installation/index.mdx)

## What is cert-manager?

Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/deploying-capa.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The `AWS_ACCESS_KEY_ID`and `AWS_SECRET_ACCESS_KEY` of a user should be configure
The `GITHUB_TOKEN` should be set as an environment variable in the current shell. It should have permissions to create Pull Requests against the cluster config repo.
:::

If you've followed the [Upgrade steps](installation/overview.mdx#weave-gitops-enterprise) in the [Installation guide](installation/overview.mdx) you should have a management cluster ready to roll.
If you've followed the [Installation guide](installation/weave-gitops-enterprise.mdx) you should have a management cluster ready to roll.

### 1. Configure a capi provider

Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/setting-up-dex.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This example uses [Dex][tool-dex] and its GitHub connector, and assumes Weave Gi

- A Kubernetes cluster such as [Kind](https://kind.sigs.k8s.io/docs/user/quick-start/) cluster running a
[Flux-supported version of Kubernetes](https://fluxcd.io/docs/installation/#prerequisites)
- Weave GitOps is [installed](../installation/overview.mdx) and [TLS has been enabled](../configuration/tls.md).
- Weave GitOps is [installed](../installation/index.mdx) and [TLS has been enabled](../configuration/tls.md).

## What is Dex?

Expand Down
6 changes: 3 additions & 3 deletions website/docs/guides/using-terraform-templates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ This guide will show you how to use a template to create a Terraform resource in
## CLI guide

### Pre-requisites
- Install [Weave GitOps Enterprise](installation/overview.mdx#weave-gitops-enterprise) with [TF-Controller installed](installation/overview.mdx#optional-install-the-tf-controller) and [TLS enabled](../configuration/tls.md).
- Install [Weave GitOps Enterprise](installation/weave-gitops-enterprise.mdx) with [TF-Controller installed](installation/weave-gitops-enterprise.mdx#optional-install-the-tf-controller) and [TLS enabled](../configuration/tls.md).

### 1. Add a template to your cluster

Add the following template to a path in your Git repository that is synced by Flux. For example, in the [quickstart guide](https://docs.gitops.weave.works/docs/installation/#install-flux-onto-your-cluster-with-the-flux-bootstrap-command), we set the path that is synced by Flux to `./clusters/management`.
Add the following template to a path in your Git repository that is synced by Flux. For example, in the [Installation guide](installation/weave-gitops-enterprise.mdx#install-flux-onto-your-cluster-with-the-flux-bootstrap-command), we set the path that is synced by Flux to `./clusters/management`.

Commit and push these changes. Once a template is available in the cluster, it can be used to create a resource, which will be shown in the next step.

Expand Down Expand Up @@ -237,7 +237,7 @@ resource "aws_rds_cluster_instance" "cluster_instance" {
}
```

Add the following template to a path in your Git repository that is synced by Flux. In the [quickstart guide](https://docs.gitops.weave.works/docs/installation/#install-flux-onto-your-cluster-with-the-flux-bootstrap-command), we set this path to `./clusters/management`.
Add the following template to a path in your Git repository that is synced by Flux. In the [quickstart guide](installation/weave-gitops-enterprise.mdx#install-flux-onto-your-cluster-with-the-flux-bootstrap-command), we set this path to `./clusters/management`.

```yaml title="./clusters/management/rds-template.yaml"
---
Expand Down
5 changes: 0 additions & 5 deletions website/docs/installation.mdx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Overview
title: Installation
sidebar_position: 1
hide_title: true
---
Expand Down
2 changes: 1 addition & 1 deletion website/docs/installation/weave-gitops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pagination_next: "getting-started"

We will provide a complete walk-through of getting Flux installed and Weave GitOps configured. However, if you have:
- an existing cluster bootstrapped Flux version >= 0.32.0 🎉
- followed our [installation](./overview.mdx) doc to configure access to the Weave GitOps dashboard then install Weave GitOps 👏
- followed our [installation](./index.mdx) doc to configure access to the Weave GitOps dashboard then install Weave GitOps 👏

Then you can skip ahead to [the Weave GitOps overview](../getting-started.mdx#part-1---weave-gitops-overview) 🏃
but note ⚠️ you may need to alter commands where we are committing files to GitHub ⚠️.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To learn more about GitOps, check out these resources:

## Getting Started

To start your own journey with Weave GitOps, please see [Installation](./installation.mdx) and [Getting Started](./getting-started.mdx).
To start your own journey with Weave GitOps, please see [Installation](./installation/index.mdx) and [Getting Started](./getting-started.mdx).

Here is a quick demo of what you can look forward to:

Expand Down

0 comments on commit 007c332

Please sign in to comment.