-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prettier * fix prettier * fix prettier/ * change vale to suggestion * add spellcheck * add spellcheck yml * fixes * fixes * fix * change spell check * add other ci as well * spell fixes * prettier
- Loading branch information
1 parent
725de72
commit 88f8f31
Showing
56 changed files
with
3,004 additions
and
1,140 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 |
---|---|---|
|
@@ -12,4 +12,4 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- name: Run prettier | ||
run: |- | ||
npx prettier --check . | ||
npx prettier --check . |
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,16 @@ | ||
--- | ||
name: Spell Check | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
spellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install cspell | ||
run: npm install -g cspell | ||
- name: Run spell check | ||
run: cspell "**/*.mdx" |
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 @@ | ||
StylesPath = vale/writing-styles | ||
MinAlertLevel = suggestion | ||
|
||
[formats] | ||
mdx = md | ||
|
||
# Ignore code on basis of certain HTML tags. | ||
IgnoredClasses= whitesapce-pre, prose-code | ||
SkippedScopes = script, style, pre, figure, code, tt, tr, td, span | ||
|
||
# Settings applied to md/mdx format. | ||
[*.md] | ||
|
||
# List of styles to load | ||
BasedOnStyles = madara-docs | ||
|
||
# Ignore code surrounded by backticks or plus sign, parameters defaults, URLs and so on. | ||
BlockIgnores = (?s) <Terminal(\s|\n)[^/>]*?property | ||
TokenIgnores = (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[), .github, .gitlab, vscode-, Signing & Capabilities, eas.json, eas-json, .yarn+, yarn: "# yarn", eas+, eas-cli, npx+, Build & deploy, OAuth & Permissions, Languages & Frameworks, typescript, Privacy & Security, Certificates, IDs & Profiles, application/javascript, Motion & Orientation Access, Show devices and ask me again, my-app, Still having trouble?, "my app runs well locally by crashes immediately when I run a build", my-app, MY_CUSTOM_API_KEY, withMyApiKey, My App, com.my., myFunction, my app, my-plugin, my-module, 'Hello from my TypeScript function!', my-scheme, my-root, Change my environment variables, my custom plugin, my, cocoapods, javascript, Ink & Switch, |
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,19 +1,18 @@ | ||
import Image from 'next/image' | ||
import { useTheme } from 'next-themes' | ||
import Image from "next/image"; | ||
import { useTheme } from "next-themes"; | ||
|
||
const LightorDarkImage = ({ lightModeSrc, darkModeSrc, alt, width = 800, height = 600 }) => { | ||
const { theme } = useTheme() | ||
const LightorDarkImage = ({ | ||
lightModeSrc, | ||
darkModeSrc, | ||
alt, | ||
width = 800, | ||
height = 600, | ||
}) => { | ||
const { theme } = useTheme(); | ||
|
||
const imageSrc = theme === 'dark' ? darkModeSrc : lightModeSrc | ||
const imageSrc = theme === "dark" ? darkModeSrc : lightModeSrc; | ||
|
||
return ( | ||
<Image | ||
src={imageSrc} | ||
alt={alt} | ||
width={width} | ||
height={height} | ||
/> | ||
) | ||
} | ||
return <Image src={imageSrc} alt={alt} width={width} height={height} />; | ||
}; | ||
|
||
export default LightorDarkImage | ||
export default LightorDarkImage; |
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 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en", | ||
"words": [], | ||
"flagWords": [], | ||
"ignorePaths": [], | ||
"dictionaryDefinitions": [ | ||
{ | ||
"name": "starknet", | ||
"path": "./dictionary/starknet.txt", | ||
"addWords": true | ||
}, | ||
{ | ||
"name": "technical", | ||
"path": "./dictionary/technical.txt", | ||
"addWords": true | ||
} | ||
], | ||
"dictionaries": ["starknet", "technical"] | ||
} |
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,15 @@ | ||
starknet | ||
madara | ||
scarb | ||
keccak | ||
devnet | ||
pedersen | ||
deoxys | ||
starkware | ||
chainstack | ||
appchains | ||
snos | ||
bootstrapper | ||
kakarot | ||
merkle | ||
starknodes |
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,10 @@ | ||
nextra | ||
rustc | ||
moralis | ||
pkill | ||
predeployed | ||
nextra | ||
lsync | ||
SLES | ||
sonoma | ||
rustup |
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 +1 @@ | ||
export { locales as middleware } from 'nextra/locales' | ||
export { locales as middleware } from "nextra/locales"; |
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,11 +1,11 @@ | ||
const withNextra = require('nextra')({ | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.tsx', | ||
}) | ||
const withNextra = require("nextra")({ | ||
theme: "nextra-theme-docs", | ||
themeConfig: "./theme.config.tsx", | ||
}); | ||
|
||
module.exports = withNextra({ | ||
i18n: { | ||
locales: ['en', 'zh-CN'], | ||
defaultLocale: 'en' | ||
} | ||
}) | ||
i18n: { | ||
locales: ["en", "zh-CN"], | ||
defaultLocale: "en", | ||
}, | ||
}); |
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 |
---|---|---|
|
@@ -78,7 +78,7 @@ | |
"tutorials-devnet": { | ||
"title": "Devnet" | ||
}, | ||
|
||
"+++ ABOUT": { | ||
"title": "", | ||
"type": "separator" | ||
|
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
Oops, something went wrong.