forked from dydxprotocol/v4-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
2,728 additions
and
1,254 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Check Markdown links | ||
|
||
on: push | ||
|
||
jobs: | ||
markdown-link-check-md: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
file-extension: '.md' | ||
folder-path: 'pages' | ||
base-branch: 'main' | ||
use-quiet-mode: 'yes' | ||
|
||
markdown-link-check-mdx: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
file-extension: '.mdx' | ||
folder-path: 'pages' | ||
base-branch: 'main' | ||
use-quiet-mode: 'yes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"aliveStatusCodes": [0, 200, 403, 429], | ||
"httpHeaders": [ | ||
{ | ||
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"], | ||
"headers": { | ||
"Accept-Encoding": "zstd, br, gzip, deflate" | ||
} | ||
} | ||
], | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^https://indexer.dydx.trade" | ||
}, | ||
{ | ||
"pattern": "^https://github.com/dydxprotocol/v4-chain/releases/" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,64 @@ | ||
const withNextra = require('nextra')({ | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.tsx', | ||
mdxOptions: { | ||
remarkPlugins: [], | ||
rehypePlugins: [], | ||
}, | ||
}) | ||
|
||
module.exports = withNextra() | ||
module.exports = withNextra({ | ||
async redirects() { | ||
return [ | ||
// Original top-level | ||
{ source: '/security', destination: '/other-security', permanent: true }, | ||
{ source: '/terms_of_use_and_privacy_policy.md', destination: '/other-terms_of_use_and_privacy_policy.md', permanent: true }, | ||
{ source: '/FAQ', destination: '/user-faqs', permanent: true }, | ||
|
||
// Architecture | ||
{ source: '/architecture/architectural_overview', destination: '/concepts-architecture/architectural_overview', permanent: true }, | ||
{ source: '/architecture/indexer', destination: '/concepts-architecture/indexer', permanent: true }, | ||
|
||
// Deposits and Withdrawals | ||
{ source: '/deposits_and_withdrawals/:slug*', destination: '/api_integration-deposits_and_withdrawals/:slug*', permanent: true }, | ||
|
||
// Developers | ||
{ source: '/developers/constants', destination: '/api_integration-constants', permanent: true }, | ||
{ source: '/developers/open_source_repositories', destination: '/api_integration-repositories.md', permanent: true }, | ||
|
||
// Developers - Clients | ||
{ source: '/developers/clients/:slug*', destination: '/api_integration-clients/:slug*', permanent: true }, | ||
|
||
// Developers - Indexer | ||
{ source: '/developers/indexer/:slug*', destination: '/api_integration-indexer/:slug*', permanent: true }, | ||
|
||
// Getting started | ||
{ source: '/getting_started/depositing_and_user_journeys', destination: 'introduction-getting_started', permanent: true }, | ||
{ source: '/getting_started/margin_calculations', destination: 'concepts-trading/margin', permanent: true }, | ||
{ source: '/getting_started/onboarding_faqs', destination: 'introduction-onboarding_faqs', permanent: true }, | ||
{ source: '/getting_started/rewards_fees_and_parameters', destination: 'concepts-trading/rewards_fees_and_parameters', permanent: true }, | ||
|
||
// Governance | ||
{ source: '/governance/:slug*', destination: '/users-governance/:slug*', permanent: true }, | ||
|
||
// Guides | ||
{ source: '/guides/:slug*', destination: '/api_integration-guides/:slug*', permanent: true }, | ||
|
||
// Network | ||
{ source: '/network/:slug*', destination: '/infrastructure_providers-network/:slug*', permanent: true }, | ||
|
||
// Operators | ||
{ source: '/operators/:slug*', destination: '/infrastructure_providers-operators/:slug*', permanent: true }, | ||
|
||
// Rewards | ||
{ source: '/rewards/:slug*', destination: '/users-rewards/:slug*', permanent: true }, | ||
|
||
// Trading | ||
{ source: '/trading:slug*', destination: '/api_integration-trading/:slug*', permanent: true }, | ||
|
||
// Validators | ||
{ source: '/validators/:slug*', destination: '/infrastructure_providers-validators/:slug*', permanent: true }, | ||
{ source: '/validators/upgrades/:slug*', destination: '/infrastructure_providers-validators/upgrades/:slug*', permanent: true }, | ||
] | ||
}, | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
|
||
const CustomError: React.FC = () => { | ||
return ( | ||
<div style={{ | ||
textAlign: 'center', | ||
marginTop: '10%', // top margin as a percentage of the viewport height | ||
marginBottom: '10%', // bottom margin as a percentage of the viewport height | ||
color: 'white', // sets text color to white | ||
fontFamily: 'Satoshi, sans-serif', // ensures the Satoshi font is applied | ||
width: '80%', // sets width to 80% of the viewport width | ||
marginLeft: 'auto', // centers the div horizontally | ||
marginRight: 'auto' | ||
}}> | ||
<h1 style={{ | ||
fontWeight: 700, | ||
fontSize: '3rem' // larger font size for the heading | ||
}}>Page Not Found</h1> | ||
<p style={{ | ||
fontSize: '1.5rem' // larger font size for the paragraph | ||
}}>The page you are looking for does not exist. Head back to the <a href="https://docs.dydx.exchange" style={{color: 'lightblue'}}>homepage here</a>.</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CustomError; |
Oops, something went wrong.