Skip to content

Commit

Permalink
chore: trying Jairo's docs path suggestion (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Aug 28, 2024
1 parent 4c9671f commit 8ca9d64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ server {
autoindex off;
}

location /docs/ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /docs/index.html;
autoindex off;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
Expand Down
12 changes: 6 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
tagline: 'Instant Kubernetes Platforms',
favicon: 'img/favicon.ico',
url: 'https://kubefirst.konstruct.io',
baseUrl: 'docs',
baseUrl: '/docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
i18n: {
Expand All @@ -23,7 +23,7 @@ const config = {
'classic',
{
docs: {
routeBasePath: 'docs',
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [require('remark-docusaurus-tabs')],
},
Expand Down Expand Up @@ -58,28 +58,28 @@ const config = {
{
redirects: [
{
to: '/docs/k3d/quick-start/install',
to: '/k3d/quick-start/install',
from: [
'/kubefirst/local/github/install',
'/kubefirst/local/gitlab/install',
],
},
{
to: '/docs/aws/quick-start/install/cli',
to: '/aws/quick-start/install/cli',
from: [
'/kubefirst/aws/github/install',
'/kubefirst/aws/gitlab/install',
],
},
{
to: '/docs/civo/quick-start/install/cli',
to: '/civo/quick-start/install/cli',
from: [
'/kubefirst/civo/github/install',
'/kubefirst/civo/gitlab/install',
],
},
{
to: '/docs/k3d/overview',
to: '/k3d/overview',
from: '/kubefirst/local',
},
],
Expand Down

0 comments on commit 8ca9d64

Please # to comment.