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

Landing page change #708

Merged
merged 6 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading