-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Keplr Docs library to
DocuSaurus
- Loading branch information
Showing
29 changed files
with
13,314 additions
and
9,281 deletions.
There are no files selected for viewing
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,4 +1,5 @@ | ||
**/*.scss | ||
**/*.css | ||
**/*.html | ||
**/*.json | ||
**/*.png | ||
|
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 @@ | ||
**/*.{css,scss,sass} |
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,14 @@ | ||
module.exports = { | ||
extends: ["plugin:@docusaurus/recommended", "prettier"], | ||
rules: { | ||
"react/react-in-jsx-scope": "off", | ||
"import/no-default-export": "off", | ||
"import/no-unresolved": "off", | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.css", "*.scss", "*.sass"], | ||
rules: {}, // No rules applied for CSS/SCSS/SASS files | ||
}, | ||
], | ||
}; |
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,20 @@ | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
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
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
File renamed without changes.
File renamed without changes.
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,107 @@ | ||
import { themes as prismThemes } from "prism-react-renderer"; | ||
import type { Config } from "@docusaurus/types"; | ||
import type * as Preset from "@docusaurus/preset-classic"; | ||
|
||
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) | ||
|
||
const config: Config = { | ||
title: "Keplr Docs", | ||
tagline: "Integrate Keplr into your dApp", | ||
favicon: "img/keplr-logo-256.png", | ||
|
||
url: "https://docs.keplr.app", | ||
baseUrl: "/", | ||
|
||
onBrokenLinks: "throw", | ||
onBrokenMarkdownLinks: "warn", | ||
|
||
// Even if you don't use internationalization, you can use this field to set | ||
// useful metadata like html lang. For example, if your site is Chinese, you | ||
// may want to replace "en" with "zh-Hans". | ||
i18n: { | ||
defaultLocale: "en", | ||
locales: ["en"], | ||
}, | ||
|
||
presets: [ | ||
[ | ||
"classic", | ||
{ | ||
docs: { | ||
routeBasePath: "/api", | ||
sidebarPath: "./sidebars.ts", | ||
}, | ||
theme: { | ||
customCss: "./src/css/custom.css", | ||
}, | ||
} satisfies Preset.Options, | ||
], | ||
], | ||
|
||
themeConfig: { | ||
metadata: [ | ||
{ | ||
name: "og:type", | ||
content: "website", | ||
}, | ||
{ | ||
name: "og:image", | ||
content: "https://docs.keplr.app/og-image.png", | ||
}, | ||
], | ||
navbar: { | ||
title: "Keplr", | ||
logo: { | ||
alt: "Keplr Logo", | ||
src: "img/keplr-logo-256.png", | ||
}, | ||
items: [ | ||
{ | ||
type: "docSidebar", | ||
sidebarId: "tutorialSidebar", | ||
position: "left", | ||
label: "Docs", | ||
}, | ||
{ | ||
href: "https://github.com/chainapsis/keplr-wallet", | ||
label: "GitHub", | ||
position: "right", | ||
}, | ||
], | ||
}, | ||
footer: { | ||
style: "dark", | ||
links: [ | ||
{ | ||
title: "Keplr", | ||
items: [ | ||
{ | ||
label: "Keplr", | ||
href: "https://www.keplr.app", | ||
}, | ||
{ | ||
label: "Keplr Dashboard", | ||
href: "https://wallet.keplr.app", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "Need Help?", | ||
items: [ | ||
{ | ||
label: "Keplr Helpdesk", | ||
href: "https://help.keplr.app/", | ||
}, | ||
], | ||
}, | ||
], | ||
copyright: `Copyright © ${new Date().getFullYear()} Keplr, Chainapsis`, | ||
}, | ||
prism: { | ||
theme: prismThemes.oneLight, | ||
darkTheme: prismThemes.oneDark, | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.