From 692b8425b9c76a73e234a824e8550030143fa62b Mon Sep 17 00:00:00 2001
From: Niraj Tolia
Date: Thu, 15 Dec 2022 20:10:56 -0800
Subject: [PATCH] Website fixes (#1834)
## Description
Fix issues found by screaming frog
- Use https:// for links
- Add missing cookies page back
- Add missing alt-text
- Use dashes instead of underscores for better search engine indexing
- Fix internal redirects
## Does this PR need a docs update or release note?
- [x] :no_entry: No
## Type of change
- [x] :bug: Bugfix
---
src/cmd/mdgen/mdgen.go | 2 +-
website/blog/2022-12-09-m365-sandbox-setup.md | 2 +-
...ng-intel-vs-arm-for-backup-applications.md | 2 +-
...22-12-16-not-your-backups-not-your-data.md | 2 +-
website/docs/developers/testing.md | 2 +-
website/docs/quickstart.md | 4 +-
.../setup/{m365_access.md => m365-access.md} | 0
website/docs/setup/repos.md | 6 +-
...s_and_features.md => bugs-and-features.md} | 0
.../{known_issues.md => known-issues.md} | 0
website/sidebars.js | 14 +--
website/src/components/parts/CTA.js | 2 +-
website/src/components/parts/Cookies.js | 3 +-
website/src/components/parts/Demo.js | 2 +-
website/src/components/parts/Hero.js | 4 +-
website/src/components/parts/KeyLoveFAQ.js | 4 +-
website/src/pages/cookies.md | 112 ++++++++++++++++++
17 files changed, 136 insertions(+), 25 deletions(-)
rename website/docs/setup/{m365_access.md => m365-access.md} (100%)
rename website/docs/support/{bugs_and_features.md => bugs-and-features.md} (100%)
rename website/docs/support/{known_issues.md => known-issues.md} (100%)
create mode 100644 website/src/pages/cookies.md
diff --git a/src/cmd/mdgen/mdgen.go b/src/cmd/mdgen/mdgen.go
index 9534491e0..bc5d7994f 100644
--- a/src/cmd/mdgen/mdgen.go
+++ b/src/cmd/mdgen/mdgen.go
@@ -102,7 +102,7 @@ func genMarkdownCorso(cmd *cobra.Command, dir string) error {
return nil
}
- basename := strings.ReplaceAll(cmd.CommandPath(), " ", "_") + ".md"
+ basename := strings.ReplaceAll(cmd.CommandPath(), " ", "-") + ".md"
filename := filepath.Join(dir, basename)
f, err := os.Create(filename)
diff --git a/website/blog/2022-12-09-m365-sandbox-setup.md b/website/blog/2022-12-09-m365-sandbox-setup.md
index 86a1860d8..1d3450008 100644
--- a/website/blog/2022-12-09-m365-sandbox-setup.md
+++ b/website/blog/2022-12-09-m365-sandbox-setup.md
@@ -83,5 +83,5 @@ To learn more about populating your domain with dummy data, see
[developer sandbox demo data](https://learn.microsoft.com/en-us/office/developer-program/install-sample-packs)
to create users, email, calendar events, and other dummy data for testing.
-And if you want one more thing to try out with a sandbox domain, check out [Corso](http://corsobackup.io),
+And if you want one more thing to try out with a sandbox domain, check out [Corso](https://corsobackup.io/),
a free and open-source backup tool. The sandbox is a great place to try it out!
diff --git a/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md b/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md
index 5de062282..17a2cf0a9 100644
--- a/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md
+++ b/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md
@@ -33,7 +33,7 @@ multiple backups, only one copy of the data will be stored in the
cloud and will only be transferred once.
However, given the large amounts of data that
-[Corso](http://corsobackup.io) might transfer, we wanted to look at
+[Corso](https://corsobackup.io/) might transfer, we wanted to look at
both performance and cost-efficiency of running Corso on ARM
(Graviton) vs. Intel and the results are quite striking!
diff --git a/website/blog/2022-12-16-not-your-backups-not-your-data.md b/website/blog/2022-12-16-not-your-backups-not-your-data.md
index 8d05acad0..b556adca7 100644
--- a/website/blog/2022-12-16-not-your-backups-not-your-data.md
+++ b/website/blog/2022-12-16-not-your-backups-not-your-data.md
@@ -224,7 +224,7 @@ Microsoft 365 data, at low cost, by securely and efficiently backing
up all business-critical data to object storage.
You can get started with Corso in [just a few
-minutes](https://corsobackup.io/docs/quickstart) and you will be able
+minutes](https://corsobackup.io/docs/quickstart/) and you will be able
to move your Microsoft 365 emails and data to your choice of object
storage provider and location. Not only will Corso compress and
deduplicated your data, it will also encrypt it with your keys. Corso
diff --git a/website/docs/developers/testing.md b/website/docs/developers/testing.md
index 83593daa8..440aa2520 100644
--- a/website/docs/developers/testing.md
+++ b/website/docs/developers/testing.md
@@ -30,7 +30,7 @@
- Set M365 Credentials environment variables
- > You can find more information on how to get these values in our [M365 docs](../../setup/m365_access/).
+ > You can find more information on how to get these values in our [M365 docs](../../setup/m365-access/).
```bash
export AZURE_CLIENT_ID=
diff --git a/website/docs/quickstart.md b/website/docs/quickstart.md
index d3722a967..fbc6dce7c 100644
--- a/website/docs/quickstart.md
+++ b/website/docs/quickstart.md
@@ -21,7 +21,7 @@ pull the image.
## Connect to Microsoft 365
Obtaining credentials from Microsoft 365 to allow Corso to run is a one-time operation. Follow the instructions
-[here](../setup/m365_access) to obtain the necessary credentials and then make them available to Corso.
+[here](../setup/m365-access) to obtain the necessary credentials and then make them available to Corso.
@@ -202,7 +202,7 @@ docker run --env-file $HOME/.corso/corso.env \\
```
Next, select one of the available backups and list all backed up emails. See
-[here](../cli/corso_backup_details_exchange) for more advanced filtering options.
+[here](../cli/corso-backup-details-exchange) for more advanced filtering options.
diff --git a/website/docs/setup/m365_access.md b/website/docs/setup/m365-access.md
similarity index 100%
rename from website/docs/setup/m365_access.md
rename to website/docs/setup/m365-access.md
diff --git a/website/docs/setup/repos.md b/website/docs/setup/repos.md
index 5a40780fd..6dbc62dff 100644
--- a/website/docs/setup/repos.md
+++ b/website/docs/setup/repos.md
@@ -70,7 +70,7 @@ The two most commonly-used options are:
### Initialize repository
Before first use, you need to initialize a Corso repository with `corso repo init s3`. See the command details
-[here](../../cli/corso_repo_init_s3).
+[here](../../cli/corso-repo-init-s3).
@@ -107,7 +107,7 @@ docker run --env-file $HOME/.corso/corso.env \\
### Connect to a repository
If a repository already exists, you can connect to it with `corso repo connect s3`. See the command details
-[here](../../cli/corso_repo_connect_s3).
+[here](../../cli/corso-repo-connect-s3).
@@ -152,4 +152,4 @@ need to use the following flag with the initial Corso `repo init` command:
Corso also supports the use of object storage systems with no TLS certificate or with self-signed
TLS certificates with the `--disable-tls` or `--disable-tls-verification` flags.
-[These flags](../../cli/corso_repo_init_s3) should only be used for testing.
+[These flags](../../cli/corso-repo-init-s3) should only be used for testing.
diff --git a/website/docs/support/bugs_and_features.md b/website/docs/support/bugs-and-features.md
similarity index 100%
rename from website/docs/support/bugs_and_features.md
rename to website/docs/support/bugs-and-features.md
diff --git a/website/docs/support/known_issues.md b/website/docs/support/known-issues.md
similarity index 100%
rename from website/docs/support/known_issues.md
rename to website/docs/support/known-issues.md
diff --git a/website/sidebars.js b/website/sidebars.js
index ab47098f3..901705e7e 100644
--- a/website/sidebars.js
+++ b/website/sidebars.js
@@ -20,7 +20,7 @@ const sidebars = {
{
type: 'category',
label: 'Corso setup',
- items: ['setup/concepts', 'setup/download', 'setup/m365_access', 'setup/configuration', 'setup/repos'],
+ items: ['setup/concepts', 'setup/download', 'setup/m365-access', 'setup/configuration', 'setup/repos'],
},
{
type: 'category',
@@ -31,18 +31,18 @@ const sidebars = {
type: 'generated-index',
},
items: [
- 'cli/corso_repo_init_s3', 'cli/corso_repo_connect_s3',
- 'cli/corso_backup_create_exchange', 'cli/corso_backup_list_exchange', 'cli/corso_backup_details_exchange',
- 'cli/corso_backup_create_onedrive', 'cli/corso_backup_list_onedrive', 'cli/corso_backup_details_onedrive',
- 'cli/corso_restore_exchange', 'cli/corso_restore_onedrive',
- 'cli/corso_env'
+ 'cli/corso-repo-init-s3', 'cli/corso-repo-connect-s3',
+ 'cli/corso-backup-create-exchange', 'cli/corso-backup-list-exchange', 'cli/corso-backup-details-exchange',
+ 'cli/corso-backup-create-onedrive', 'cli/corso-backup-list-onedrive', 'cli/corso-backup-details-onedrive',
+ 'cli/corso-restore-exchange', 'cli/corso-restore-onedrive',
+ 'cli/corso-env'
]
},
{
type: 'category',
label: 'Support',
items: [
- 'support/bugs_and_features', 'support/known_issues', 'support/faq'
+ 'support/bugs-and-features', 'support/known-issues', 'support/faq'
],
},
{
diff --git a/website/src/components/parts/CTA.js b/website/src/components/parts/CTA.js
index f3a08b2d9..593878cbf 100644
--- a/website/src/components/parts/CTA.js
+++ b/website/src/components/parts/CTA.js
@@ -46,7 +46,7 @@ export default function CTA() {
minutes.