Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
antiyro committed Oct 8, 2024
2 parents af7ef49 + 88f8f31 commit 896e899
Show file tree
Hide file tree
Showing 61 changed files with 3,054 additions and 1,141 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Task - Linters

on:
workflow_dispatch:
workflow_call:

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run prettier
run: |-
npx prettier --check .
22 changes: 22 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Workflow - Pull Request

on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
linters:
name: Run linters
uses: ./.github/workflows/linters.yml

vale:
name: Run vale
uses: ./.github/workflows/vale.yml

spellcheck:
name: Run spellcheck
uses: ./.github/workflows/spellcheck.yml
16 changes: 16 additions & 0 deletions .github/workflows/spellcheck.yml
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"
14 changes: 14 additions & 0 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: reviewdog

on:
workflow_dispatch:
workflow_call:

jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
19 changes: 19 additions & 0 deletions .vale.ini
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,
29 changes: 14 additions & 15 deletions components/LightorDarkImage.tsx
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;
20 changes: 20 additions & 0 deletions cspell.json
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"]
}
15 changes: 15 additions & 0 deletions dictionary/starknet.txt
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
10 changes: 10 additions & 0 deletions dictionary/technical.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
nextra
rustc
moralis
pkill
predeployed
nextra
lsync
SLES
sonoma
rustup
2 changes: 1 addition & 1 deletion middleware.js
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";
18 changes: 9 additions & 9 deletions next.config.js
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",
},
});
2 changes: 1 addition & 1 deletion pages/_meta.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"tutorials-devnet": {
"title": "Devnet"
},

"+++ ABOUT": {
"title": "",
"type": "separator"
Expand Down
2 changes: 1 addition & 1 deletion pages/chain-architecture/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ import { Tabs, Tab } from "nextra/components";

<Callout type="warning" emoji="⚠️">
This section is still under construction.
</Callout>
</Callout>
2 changes: 1 addition & 1 deletion pages/chain-architecture/bootstrapper.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ import { Tabs, Tab } from "nextra/components";

<Callout type="warning" emoji="⚠️">
This section is still under construction.
</Callout>
</Callout>
2 changes: 1 addition & 1 deletion pages/chain-architecture/orchestrator.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ import { Tabs, Tab } from "nextra/components";

<Callout type="warning" emoji="⚠️">
This section is still under construction.
</Callout>
</Callout>
2 changes: 1 addition & 1 deletion pages/chain-architecture/sequencer.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ import { Tabs, Tab } from "nextra/components";

<Callout type="warning" emoji="⚠️">
This section is still under construction.
</Callout>
</Callout>
2 changes: 1 addition & 1 deletion pages/chain-architecture/snos.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ import { Tabs, Tab } from "nextra/components";

<Callout type="warning" emoji="⚠️">
This section is still under construction.
</Callout>
</Callout>
17 changes: 14 additions & 3 deletions pages/chain-configuration/overview.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ lang: en-US
description: Learn how to install and configure your Madara client as a node operator.
---

import { Cards, Card } from 'nextra/components'
import { Server, Settings, Network, Plug, Wrench, Rocket, MonitorCog, HardDrive, FlaskConical, Globe, Activity } from 'lucide-react';
import { Cards, Card } from "nextra/components";
import {
Server,
Settings,
Network,
Plug,
Wrench,
Rocket,
MonitorCog,
HardDrive,
FlaskConical,
Globe,
Activity,
} from "lucide-react";
import { Callout } from "nextra-theme-docs";

# Chain Operator Configurations

Loading

0 comments on commit 896e899

Please sign in to comment.