Skip to content

Commit 77bef2f

Browse files
authored
docs: fmt all commonmark (#1282)
1 parent c515ad3 commit 77bef2f

35 files changed

+494
-140
lines changed

.github/workflows/commonmark-lint.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,13 @@ on:
77
jobs:
88
lint-commonmark:
99
runs-on: ubuntu-latest
10-
continue-on-error: true
1110
steps:
1211
- name: Check out the project
1312
uses: actions/checkout@v4
1413

1514
- name: Lint all commonmark/markdown files
1615
uses: DavidAnson/markdownlint-cli2-action@v19
17-
continue-on-error: true
1816
with:
1917
fix: true
2018
globs: '(scripts|crates)/**/README.md;contracts/specs/**/*.md;specs/**/*.md;docs/**/*.md'
21-
separator: ';'
22-
23-
- name: Check compliance
24-
run: |
25-
git diff --exit-code
19+
separator: ';'

.markdownlint.yaml

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
# Example markdownlint configuration with all properties set to their default value
2+
3+
# Default state for all rules
4+
default: true
5+
6+
# Path to configuration file to extend
7+
extends: null
8+
9+
# MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md001.md
10+
MD001: false
11+
12+
# MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md003.md
13+
MD003: false
14+
# Heading style
15+
# style: "consistent"
16+
17+
# MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md004.md
18+
MD004:
19+
# List style
20+
style: "consistent"
21+
22+
# MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md005.md
23+
MD005: true
24+
25+
# MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md007.md
26+
MD007:
27+
# Spaces for indent
28+
indent: 2
29+
# Whether to indent the first level of the list
30+
start_indented: false
31+
# Spaces for first level indent (when start_indented is set)
32+
start_indent: 2
33+
34+
# MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md009.md
35+
MD009:
36+
# Spaces for line break
37+
br_spaces: 2
38+
# Allow spaces for empty lines in list items
39+
list_item_empty_lines: false
40+
# Include unnecessary breaks
41+
strict: false
42+
43+
# MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md010.md
44+
MD010:
45+
# Include code blocks
46+
code_blocks: true
47+
# Fenced code languages to ignore
48+
ignore_code_languages: []
49+
# Number of spaces for each hard tab
50+
spaces_per_tab: 1
51+
52+
# MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md011.md
53+
MD011: true
54+
55+
# MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md012.md
56+
MD012:
57+
# Consecutive blank lines
58+
maximum: 1
59+
60+
# MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md013.md
61+
MD013: false
62+
# Number of characters
63+
# line_length: 200
64+
# Number of characters for headings
65+
# heading_line_length: 200
66+
# Number of characters for code blocks
67+
# code_block_line_length: 200
68+
# Include code blocks
69+
# code_blocks: true
70+
# Include tables
71+
# tables: true
72+
# Include headings
73+
# headings: true
74+
# Strict length checking
75+
# strict: false
76+
# Stern length checking
77+
# stern: false
78+
79+
# MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md014.md
80+
MD014: true
81+
82+
# MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md018.md
83+
MD018: true
84+
85+
# MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md019.md
86+
MD019: true
87+
88+
# MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md020.md
89+
MD020: true
90+
91+
# MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md021.md
92+
MD021: true
93+
94+
# MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md022.md
95+
MD022:
96+
# Blank lines above heading
97+
lines_above: 1
98+
# Blank lines below heading
99+
lines_below: 1
100+
101+
# MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md023.md
102+
MD023: true
103+
104+
# MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md024.md
105+
MD024: false
106+
107+
# MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md025.md
108+
MD025: false
109+
# Heading level
110+
# level: 1
111+
# RegExp for matching title in front matter
112+
# front_matter_title: "^\\s*title\\s*[:=]"
113+
114+
# MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md026.md
115+
MD026:
116+
# Punctuation characters
117+
punctuation: ".,;:!。,;:!"
118+
119+
# MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md027.md
120+
MD027: true
121+
122+
# MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md028.md
123+
MD028: true
124+
125+
# MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md029.md
126+
MD029: false
127+
# List style
128+
# style: "one_or_ordered"
129+
130+
# MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md030.md
131+
MD030:
132+
# Spaces for single-line unordered list items
133+
ul_single: 1
134+
# Spaces for single-line ordered list items
135+
ol_single: 1
136+
# Spaces for multi-line unordered list items
137+
ul_multi: 1
138+
# Spaces for multi-line ordered list items
139+
ol_multi: 1
140+
141+
# MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md031.md
142+
MD031:
143+
# Include list items
144+
list_items: true
145+
146+
# MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md032.md
147+
MD032: true
148+
149+
# MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md033.md
150+
MD033:
151+
# Allowed elements
152+
allowed_elements: [details, summary, strong, code, pre, img, aside]
153+
154+
# MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md034.md
155+
MD034: true
156+
157+
# MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md035.md
158+
MD035:
159+
# Horizontal rule style
160+
style: "consistent"
161+
162+
# MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md036.md
163+
MD036: false
164+
# Punctuation characters
165+
# punctuation: ".,;:!?。,;:!?"
166+
167+
# MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md037.md
168+
MD037: true
169+
170+
# MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md038.md
171+
MD038: true
172+
173+
# MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md039.md
174+
MD039: true
175+
176+
# MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md040.md
177+
MD040: false
178+
# List of languages
179+
# allowed_languages: []
180+
# Require language only
181+
# language_only: false
182+
183+
# MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md041.md
184+
MD041: false
185+
# Heading level
186+
# level: 1
187+
# RegExp for matching title in front matter
188+
# front_matter_title: "^\\s*title\\s*[:=]"
189+
190+
# MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md042.md
191+
MD042: true
192+
193+
# MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md043.md
194+
MD043: false
195+
196+
# MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md044.md
197+
MD044: false
198+
199+
# MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md045.md
200+
MD045: false
201+
202+
# MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md046.md
203+
MD046:
204+
# Block style
205+
style: "consistent"
206+
207+
# MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md047.md
208+
MD047: true
209+
210+
# MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md048.md
211+
MD048:
212+
# Code fence style
213+
style: "consistent"
214+
215+
# MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md049.md
216+
MD049:
217+
# Emphasis style
218+
style: "consistent"
219+
220+
# MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md
221+
MD050:
222+
# Strong style
223+
style: "consistent"
224+
225+
# MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md051.md
226+
MD051: true
227+
228+
# MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md052.md
229+
MD052:
230+
# Include shortcut syntax
231+
shortcut_syntax: false
232+
233+
# MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md053.md
234+
MD053:
235+
# Ignored definitions
236+
ignored_definitions:
237+
- "//"
238+
239+
# MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md054.md
240+
MD054:
241+
# Allow autolinks
242+
autolink: true
243+
# Allow inline links and images
244+
inline: true
245+
# Allow full reference links and images
246+
full: true
247+
# Allow collapsed reference links and images
248+
collapsed: true
249+
# Allow shortcut reference links and images
250+
shortcut: true
251+
# Allow URLs as inline links
252+
url_inline: true

contracts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ lint: fmt
101101

102102
fmt:
103103
pnpm install --silent --no-save
104-
pnpm exec prettier --check -w 'contracts/**/**/*.sol' 'sdk/**/**/*.sol' 'test/**/**/*.sol' 'test/**/**/*.t.sol' '**/*.{js,jsx,ts,tsx,json,css,md}'
104+
pnpm exec prettier --check -w 'contracts/**/**/*.sol' 'sdk/**/**/*.sol' 'test/**/**/*.sol' 'test/**/**/*.t.sol' '**/*.{js,jsx,ts,tsx,json,css}'
105105

106106
deps: node_modules
107107

contracts/contracts/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ To do that, we use the `get_selectors` function from a script in Python.
3030

3131
## References
3232

33-
- [Introduction to EIP-2535 Diamonds](https://eip2535diamonds.substack.com/p/introduction-to-the-diamond-standard)
34-
- [ERC-2535: Diamonds, Multi-Facet Proxy](https://eips.ethereum.org/EIPS/eip-2535#facets-state-variables-and-diamond-storage)
35-
- [Understanding Diamonds on Ethereum](https://dev.to/mudgen/understanding-diamonds-on-ethereum-1fb)
33+
- [Introduction to EIP-2535 Diamonds](https://eip2535diamonds.substack.com/p/introduction-to-the-diamond-standard)
34+
- [ERC-2535: Diamonds, Multi-Facet Proxy](https://eips.ethereum.org/EIPS/eip-2535#facets-state-variables-and-diamond-storage)
35+
- [Understanding Diamonds on Ethereum](https://dev.to/mudgen/understanding-diamonds-on-ethereum-1fb)

contracts/ops/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
This directory includes a set of scripts to ease the deployment of the IPC Solidity contracts to any network using hardhat.
44

5-
- `deploy.sh`: Deploys the IPC solidity contracts into a specific network.
6-
- `compile-abi.sh`: Compiles all contracts and outputs the ABI for the high-level contracts in the desired folder (by default `./out`).
5+
- `deploy.sh`: Deploys the IPC solidity contracts into a specific network.
6+
- `compile-abi.sh`: Compiles all contracts and outputs the ABI for the high-level contracts in the desired folder (by default `./out`).

contracts/specs/PROPERTIES.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
List of identified and checked invariants of the IPC protocol following the categorization by [Certora](https://github.com/Certora/Tutorials/blob/master/06.Lesson_ThinkingProperties/Categorizing_Properties.pdf):
44

5-
- Valid States
6-
- State Transitions
7-
- Variable Transitions
8-
- High-Level Properties
9-
- Unit Tests
10-
- Valid States
11-
- State Transitions
12-
- Variable Transitions
13-
- High-Level Properties
14-
- Unit Tests
5+
- Valid States
6+
- State Transitions
7+
- Variable Transitions
8+
- High-Level Properties
9+
- Unit Tests
10+
- Valid States
11+
- State Transitions
12+
- Variable Transitions
13+
- High-Level Properties
14+
- Unit Tests
1515

1616
## Subnet Registry
1717

docs-gitbook/concepts/subnets/parent-child-interactions.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ There are following parent-child interactions available in IPC
1616

1717
6\. Removing child subnets from the IPC hierarchy.
1818

19-
20-
2119
## Checkpointing
2220

2321
Checkpointing is a method for a parent subnet to keep a record of the evolution of its child subnet’s state by including snapshots of the child’s state (called checkpoints) in the parent’s state. If, for some reason, the child subnet misbehaves as a whole, agreement can be reached in the parent subnet about how to proceed.
@@ -26,7 +24,6 @@ Checkpointed history of a child subnet cannot be reverted as long as a parent su
2624

2725
In case of subnet failure, checkpointing enables participants (e.g., former users of the failed subnet) to agree on picking up an older version of the child subnet’s state from before the occurrence of the failure and, say, use that version as the initial state of a new, more robust subnet.\
2826

29-
3027
### Checkpointing fees
3128

3229
There are a number of fees that are paid during checkpointing: 

docs-gitbook/developer-guides/deploy-blockscout.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# Deploying Blockscout on a local subnet
1+
# Deploying Blockscout on a local subnet
22

33
Before delving into this tutorial, you should have [deployed a local subnet](deploy-a-subnet). If you're connecting to an existing remote subnet and not following the guide, make sure that you have a local docker installation.
44

55
These are instructions for deploying a basic, non-customised, local subnet explorer. The resulting instance will not provide all Blockscout features not be appropriate for production use.
66

77
1. Get Blockscout
8+
89
```
910
git clone https://github.com/blockscout/blockscout
1011
cd ./blockscout/docker-compose
1112
```
1213

13-
2. Edit `./envs/common-blockscout.env` and set
14+
2. Edit `./envs/common-blockscout.env` and set
15+
1416
```
1517
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER=true
1618
INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER=true
@@ -21,6 +23,7 @@ The default setup assumes a local subnet with the Ethereum RPC on `localhost:854
2123
Some frontend calls use hardcoded absolute URLs. Unless you're only accessing the Blockscout interface on `localhost`, make sure to review the environmental variables in the different files under `./envs/` and adjust addresses (e.g. `BLOCKSCOUT_HOST` in `envs/common-blockscout.env` and `NEXT_PUBLIC_STATS_API_HOST` in `envs/common-frontend.env`. You'll also need to make sure the required ports are accessible (at least 80, 8080, and 8081).
2224

2325
3. Start Blockscout
26+
2427
```
2528
docker compose -f docker-compose-no-build-geth.yml up -d
2629
```

0 commit comments

Comments
 (0)