Skip to content
Open
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
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const config: Config = {
"classic",
{
blog: {
path: 'meeting-notes',
path: 'meetings',
blogTitle: 'Meeting Notes',
blogDescription: 'Notes and recordings from the Stellar protocol & developers meetings',
blogSidebarTitle: 'All meetings',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions nginx/includes/redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ rewrite ^/docs/learn/interactive/dapps "/docs/learn/interactive" permanent;
rewrite ^/docs/learn/networks$ "/docs/networks" permanent;
rewrite ^/docs/learn/fundamentals/networks$ "/docs/networks" permanent;

# Meetings: old slug formats
rewrite ^/meeting-notes/([0-9]{4})-([0-9]{2})-([0-9]{2})/?$ "/meetings/$1/$2/$3" permanent;
rewrite ^/meeting-notes(.*)$ "/meetings$1" permanent;

# Move some categories around
rewrite ^/docs/category/build-a-wallet$ "/docs/build/apps/wallet" permanent;
rewrite ^/docs/category/build-a-wallet-with-the-wallet-sdk$ "/docs/build/apps/wallet" permanent;
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"api": "pnpm api:clean && pnpm api:bundle && pnpm api:gen",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"format:mdx": "prettier --config .prettierrc.js --write \"{docs,src/pages,meeting-notes}/**/*.{md,mdx}\"",
"ci-format:mdx": "prettier --config .prettierrc.js --write --log-level silent \"{docs,src/pages,meeting-notes}/**/*.{md,mdx}\"",
"check:mdx": "prettier --config .prettierrc.js -c \"{docs,src/pages,meeting-notes}/**/*.{md,mdx}\"",
"ci:mdx": "prettier --config .prettierrc.js \"{docs,src/pages,meeting-notes}/**/*.{md,mdx}\" -l --no-editorconfig",
"format:mdx": "prettier --config .prettierrc.js --write \"{docs,src/pages,meetings}/**/*.{md,mdx}\"",
"ci-format:mdx": "prettier --config .prettierrc.js --write --log-level silent \"{docs,src/pages,meetings}/**/*.{md,mdx}\"",
"check:mdx": "prettier --config .prettierrc.js -c \"{docs,src/pages,meetings}/**/*.{md,mdx}\"",
"ci:mdx": "prettier --config .prettierrc.js \"{docs,src/pages,meetings}/**/*.{md,mdx}\" -l --no-editorconfig",
"diff:mdx": "pnpm ci-format:mdx && git diff -- . ':(exclude)package-lock.json' ':(exclude)package.json' ':(exclude)yarn.lock' ':(exclude)pnpm-lock.yaml' | awk \"/diff --git/ {found=1} found {print}\"",
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
Expand Down
1 change: 1 addition & 0 deletions routes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@
/docs/networks
/docs/networks/resource-limits-fees
/docs/networks/software-versions
/docs/notes
/docs/platforms
/docs/platforms/anchor-platform
/docs/platforms/anchor-platform/admin-guide
Expand Down
31 changes: 31 additions & 0 deletions src/pages/docs/notes.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, { useEffect } from 'react';
import Layout from '@theme/Layout';

function hashDateToMeetingsPath(hash: string): string | null {
// Accept "#YYYY-MM-DD" legacy meeting notes deep links.
const m = /^#(\d{4})-(\d{2})-(\d{2})$/.exec(hash);

if (!m) {
return null;
}

const [, yyyy, mm, dd] = m;

return `/meetings/${yyyy}/${mm}/${dd}`;
}

export default function NotesRedirect(): JSX.Element {
useEffect(() => {
const target = hashDateToMeetingsPath(window.location.hash) ?? '/meetings';

window.location.replace(target);
}, []);

return (
<Layout title="Redirecting..." description="Redirecting to meeting notes">
<main style={{ padding: '3rem 1rem' }}>
<p>Soroban documentation link redirecting...</p>
</main>
</Layout>
);
}
Loading