Skip to content

Commit

Permalink
fix: rewrite paths for new DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Mar 20, 2023
1 parent d7e3268 commit 3cc49cd
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module.exports = {
// !STARTERCONF Change the siteUrl
/** Without additional '/' on the end, e.g. https://theodorusclarence.com */
siteUrl: 'https://celestiaorg.github.io/node-rpc-docs',
siteUrl: 'https://node-rpc-docs.celestia.org',
generateRobotsTxt: true,
robotsTxtOptions: {
policies: [{ userAgent: '*', allow: '/' }],
Expand Down
2 changes: 1 addition & 1 deletion public/favicon/browserconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/node-rpc-docs/favicon/mstile-150x150.png"/>
<square150x150logo src="/favicon/mstile-150x150.png"/>
<TileColor>#2b5797</TileColor>
</tile>
</msapplication>
Expand Down
6 changes: 3 additions & 3 deletions public/favicon/site.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"short_name": "Celestia Node API",
"icons": [
{
"src": "/node-rpc-docs/favicon/android-chrome-192x192.png",
"src": "/favicon/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/node-rpc-docs/favicon/android-chrome-512x512.png",
"src": "/favicon/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
}
19 changes: 10 additions & 9 deletions src/components/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ const defaultMeta = {
description:
'The Celestia Node API is the collection of RPC methods that can be used to interact with the services provided by Celestia Data Availability Nodes.',
/** Without additional '/' on the end, e.g. https://theodorusclarence.com */
url: 'https://celestiaorg.github.io/node-rpc-docs',
url: 'https://node-rpc-docs.celestia.org',
type: 'website',
robots: 'follow, index',
/**
* No need to be filled, will be populated with openGraph function
* If you wish to use a normal image, just specify the path below
*/
image: 'https://raw.githubusercontent.com/celestiaorg/docs/main/static/img/celestia-doc.png',
image:
'https://raw.githubusercontent.com/celestiaorg/docs/main/static/img/celestia-doc.png',
};

type SeoProps = {
Expand Down Expand Up @@ -84,7 +85,7 @@ export default function Seo(props: SeoProps) {
<link key={linkProps.href} {...linkProps} />
))}
<meta name='msapplication-TileColor' content='#ffffff' />
<meta name='msapplication-config' content='/node-rpc-docs/favicon/browserconfig.xml' />
<meta name='msapplication-config' content='/favicon/browserconfig.xml' />
<meta name='theme-color' content='#ffffff' />
</Head>
);
Expand All @@ -97,25 +98,25 @@ const favicons: Array<React.ComponentPropsWithoutRef<'link'>> = [
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/node-rpc-docs/favicon/apple-touch-icon.png',
href: '/favicon/apple-touch-icon.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/node-rpc-docs/favicon/favicon-32x32.png',
href: '/favicon/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/node-rpc-docs/favicon/favicon-16x16.png',
href: '/favicon/favicon-16x16.png',
},
{ rel: 'manifest', href: '/node-rpc-docs/favicon/site.webmanifest' },
{ rel: 'manifest', href: '/favicon/site.webmanifest' },
{
rel: 'mask-icon',
href: '/node-rpc-docs/favicon/safari-pinned-tab.svg',
href: '/favicon/safari-pinned-tab.svg',
color: '#00e887',
},
{ rel: 'shortcut icon', href: '/node-rpc-docs/favicon/favicon.ico' },
{ rel: 'shortcut icon', href: '/favicon/favicon.ico' },
];
2 changes: 1 addition & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MyDocument extends Document {
<Head>
<link
rel='preload'
href='/node-rpc-docs/fonts/inter-var-latin.woff2'
href='/fonts/inter-var-latin.woff2'
as='font'
type='font/woff2'
crossOrigin='anonymous'
Expand Down
12 changes: 6 additions & 6 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function Example() {
<div className='flex flex-shrink-0 items-center px-4'>
<img
className='h-8 w-auto'
src='/node-rpc-docs/images/celestia-logo-purple.png'
src='/images/celestia-logo-purple.png'
alt='Celestia Logo'
/>
</div>
Expand All @@ -156,7 +156,7 @@ export default function Example() {
([pkg, methods]) => (
<a
key={pkg}
href={`/node-rpc-docs/#${pkg}`}
href={`/#${pkg}`}
className='group flex items-center rounded-md bg-gray-100 py-2 px-2 text-base font-light capitalize text-gray-900'
>
{pkg == 'p2p' ? 'P2P' : pkg}
Expand Down Expand Up @@ -193,7 +193,7 @@ export default function Example() {
<div className='flex flex-shrink-0 items-center px-2'>
<img
className='w-full px-4'
src='/node-rpc-docs/images/celestia-logo-purple.png'
src='/images/celestia-logo-purple.png'
alt='Celestia Logo'
/>
</div>
Expand Down Expand Up @@ -258,7 +258,7 @@ export default function Example() {
<div className='lg:flex'>
<div className='flex'>
<img
src='/node-rpc-docs/images/icon-1.png'
src='/images/icon-1.png'
className='h-16'
alt='Celestia block'
/>
Expand All @@ -272,14 +272,14 @@ export default function Example() {
<div className='ml-auto flex'>
<a href='https://discord.com/invite/YsnTPcSfWQ'>
<img
src='/node-rpc-docs/images/discord.svg'
src='/images/discord.svg'
className='my-auto h-12'
alt='Discord Logo'
/>
</a>
<a href='https://github.com/celestiaorg/celestia-node'>
<img
src='/node-rpc-docs/images/github.svg'
src='/images/github.svg'
className='my-auto h-12'
alt='Github Logo'
/>
Expand Down
6 changes: 3 additions & 3 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@
font-style: normal;
font-weight: 100 900;
font-display: optional;
src: url('/node-rpc-docs/fonts/inter-var-latin.woff2') format('woff2');
src: url('/fonts/inter-var-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'ruberoid';
src: url(/node-rpc-docs/fonts/ruberoidsemi_bold.woff) format('woff');
src: url(/fonts/ruberoidsemi_bold.woff) format('woff');
}

.cursor-newtab {
cursor: url('/node-rpc-docs/images/new-tab.png') 10 10, pointer;
cursor: url('/images/new-tab.png') 10 10, pointer;
}

/* #region /**=========== Typography =========== */
Expand Down
4 changes: 2 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"headers": [
{
"source": "/node-rpc-docs/fonts/inter-var-latin.woff2",
"source": "/fonts/inter-var-latin.woff2",
"headers": [
{
"key": "Cache-Control",
Expand All @@ -10,4 +10,4 @@
]
}
]
}
}

0 comments on commit 3cc49cd

Please sign in to comment.