Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Landing page change (#708)
Browse files Browse the repository at this point in the history
* style: remove some inactive, commented configuration

* add a route base path for the docs plugin

* redirect from `/` to `/docs` (copied from `stellar-docs`

* move the index page to a draft

* remove the unused package-lock.json file

* change the "home" page to be `/docs` in the navbar
  • Loading branch information
ElliotFriend authored Jan 29, 2024
1 parent 8bbd9af commit 65ec4bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22,931 deletions.
21 changes: 2 additions & 19 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ const config = {
},
plugins: [
"docusaurus-plugin-sass",
// [
// '@docusaurus/plugin-content-docs',
// {
// id: 'guides',
// path: 'guides',
// routeBasePath: 'guides',
// sidebarPath: require.resolve('./sidebarsGuides.js'),
// sidebarItemsGenerator: require('./src/sidebar-generator'),
// editUrl: "https://github.com/stellar/soroban-docs/tree/main/",
// showLastUpdateTime: true,
// },
// ],
[
'@docusaurus/plugin-content-docs',
{
Expand Down Expand Up @@ -71,6 +59,7 @@ const config = {
showLastUpdateTime: true,
showLastUpdateAuthor: true,
breadcrumbs: true,
routeBasePath: "/docs",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/stellar/soroban-docs/tree/main/",
sidebarItemsGenerator: require('./src/sidebar-generator'),
Expand All @@ -92,15 +81,14 @@ const config = {
docs: {
sidebar: {
autoCollapseCategories: false,
// hideable: true,
}
},
navbar: {
logo: {
width: 100,
src: "img/soroban-wordmark-temp.svg",
srcDark: "img/soroban-wordmark-temp-dark.svg",
href: "/",
href: "/docs",
},
items: [
{
Expand All @@ -124,11 +112,6 @@ const config = {
label: 'Dapps',
position: 'left'
},
// {
// to: '/guides',
// label: 'Guides',
// position: 'left'
// },
{
href: 'https://github.com/stellar/soroban-docs',
label: 'GitHub',
Expand Down
9 changes: 6 additions & 3 deletions nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ server {
server_name _;
include includes/redirects.conf;

index index.html;
# index index.html;
error_page 404 /404.html;

rewrite ^/(.*)/$ /$1 permanent;
location = / {
rewrite ^/$ /docs/ permanent;
}

location / {
try_files $uri/index.html $uri/ $uri index.html =404;
rewrite ^/(.*)/$ /$1 permanent;
try_files $uri $uri/index.html $uri/ =404; # /index.html index.html =404;
}
location /diagrams/ {
try_files $uri $uri/ =404;
Expand Down
Loading

0 comments on commit 65ec4bb

Please sign in to comment.