Skip to content

Commit ca6d654

Browse files
authored
Feature/integrate vale (#39)
1 parent e548ceb commit ca6d654

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+763
-473
lines changed
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
# Technical terms for iExec documentation
2+
3+
# Function Names
4+
protectData
5+
grantAccess
6+
revokeAllAccess
7+
revokeOneAccess
8+
transferOwnership
9+
createCollection
10+
removeCollection
11+
removeProtectedDataFromCollection
12+
sendEmail
13+
sendTelegram
14+
getValue
15+
deserializer
16+
deserialize
17+
consumeProtectedData
18+
rentProtectedData
19+
subscribeToCollection
20+
buyProtectedData
21+
setProtectedDataForSale
22+
setProtectedDataToRenting
23+
setProtectedDataToSubscription
24+
setProtectedDataRentingParams
25+
setSubscriptionParams
26+
addToCollection
27+
removeProtectedDataFromCollection
28+
removeProtectedDataFromRenting
29+
removeProtectedDataForSale
30+
addAppToAddOnlyAppWhitelist
31+
createAddOnlyAppWhitelist
32+
getUserAddOnlyAppWhitelist
33+
getGrantedAccess
34+
getProtectedData
35+
getResultFromCompletedTask
36+
getCollectionOwners
37+
getCollectionsByOwner
38+
getCollectionSubscriptions
39+
getProtectedDataInCollections
40+
getProtectedDataPricingParams
41+
getRentals
42+
fetchMyContacts
43+
fetchUserContacts
44+
unpublish
45+
46+
# Function Parameters
47+
authorizedApp
48+
authorizedUser
49+
grantedAccess
50+
collectionId
51+
appsWhitelist
52+
userWhitelist
53+
useVoucher
54+
voucherAddress
55+
voucherOwner
56+
subscriberAddress
57+
renterAddress
58+
apporder
59+
datasetorder
60+
workerpoolorder
61+
requestorder
62+
requesters
63+
workerpools
64+
apporders
65+
appmaxprice
66+
datasetmaxprice
67+
workerpoolmaxprice
68+
apprestrict
69+
requesterrestrict
70+
workerpoolrestrict
71+
datasetprice
72+
taskId
73+
dealId
74+
userAddress
75+
resultHash
76+
resultSeal
77+
enclaveSign
78+
workerpoolSign
79+
inputFiles
80+
zipFile
81+
encryptionKey
82+
multiaddr
83+
ipfsNode
84+
ipfsGateway
85+
emailSubject
86+
emailContent
87+
contentType
88+
senderName
89+
telegramContent
90+
//TODO: check
91+
param
92+
params
93+
args
94+
environnement
95+
pageSize
96+
subgraphUrl
97+
subgraph
98+
iexecOptions
99+
uploadMode
100+
allowDebug
101+
requiredSchema
102+
keypair
103+
collectionOwner
104+
isRentable
105+
isDistributed
106+
NFTs
107+
creationTimestamp
108+
transactionHash
109+
txHash
110+
boolean
111+
bigint
112+
newOwner
113+
maxPrice
114+
workerpoolorders
115+
116+
# iExec/Web3 Terms
117+
iExec
118+
CPUs
119+
LLMs
120+
Agentic
121+
DApp
122+
DApps
123+
blockchain
124+
ethereum
125+
intel
126+
nano
127+
workerpool
128+
protectedData
129+
dataProtector
130+
iApp
131+
sconification
132+
middleware
133+
oracle
134+
MREnclave
135+
Gramine
136+
//TODO: check
137+
permissioning
138+
Permissioning
139+
arithmetics
140+
webservers
141+
Javascript
142+
Dockerizable
143+
Dockerize
144+
Dockerhub
145+
dockerized
146+
keystore
147+
Webpack
148+
json
149+
polyfills
150+
Buildx
151+
hardcoding
152+
npm
153+
Arweave
154+
cryptocurrency
155+
cryptocurrencies
156+
crypto
157+
onchain
158+
offchain
159+
//TODO: check
160+
mainchain
161+
Sidechain
162+
Bellecour
163+
Mainnet
164+
Testnet
165+
Metamask
166+
Binance
167+
Coinbase
168+
Uniswap
169+
Szabo
170+
presale
171+
presigned
172+
untrusted
173+
dev
174+
cryptocurrecny
175+
Unmatching
176+
incentivized
177+
Whitepaper
178+
deserialization
179+
enclaveChallenge
180+
Borsh
181+
Arbitrum
182+
Stargate
183+
Github
184+
subgraphs
185+
hackathons
186+
tokenization
187+
chipset
188+
auditable
189+
Composable
190+
Activable
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Terms to reject - currently empty
2+
# Add terms here that should always be flagged as errors

.github/workflows/vale.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Documentation Quality
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
vale:
8+
name: Vale Documentation Quality Check
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Run Vale
16+
# Vale runs spell checking and basic grammar validation
17+
# - reporter: github-pr-check provides concise feedback in PR comments
18+
# - fail_on_error: false prevents workflow failures on minor issues
19+
# - filter_mode: added only checks files changed in the PR
20+
# - vale_flags: sets minimum alert level to suggestions only
21+
uses: errata-ai/[email protected]
22+
with:
23+
files: src/
24+
reporter: github-pr-check
25+
fail_on_error: false
26+
filter_mode: added
27+
vale_flags: '--minAlertLevel=suggestion'

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ components.d.ts
1212

1313
#mac
1414
.DS_Store
15+
16+
#vale
17+
.github/styles/*
18+
!.github/styles/config/vocabularies/
19+
vale-report.txt

.vale.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
StylesPath = .github/styles
2+
MinAlertLevel = suggestion
3+
Packages = Google
4+
5+
# Define the Technical vocabulary for custom terminology
6+
Vocab = Technical
7+
8+
[formats]
9+
md = markdown
10+
11+
[*.md]
12+
BasedOnStyles = Vale, Google
13+
IgnorePatterns = README.md

.vitepress/sidebar.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,23 +110,23 @@ export function getSidebar() {
110110
link: '/get-started/protocol/proof-of-contribution',
111111
},
112112
{
113-
text: '💸 Pay Per Task Model',
113+
text: 'Pay Per Task Model',
114114
link: '/get-started/protocol/pay-per-task',
115115
},
116116
{
117-
text: 'iExec DOracle',
118-
link: '/get-started/protocol/iexec-doracle',
117+
text: 'Oracle',
118+
link: '/get-started/protocol/oracle',
119119
},
120120
{
121-
text: '⚙️ Workers & Workerpools',
121+
text: 'Workers & Workerpools',
122122
collapsed: true,
123123
items: [
124124
{
125-
text: '🚀 Worker Quick Start',
125+
text: 'Worker Quick Start',
126126
link: '/get-started/protocol/worker/quick-start',
127127
},
128128
{
129-
text: '🔒 Manage Workerpool Access',
129+
text: 'Manage Workerpool Access',
130130
link: '/get-started/protocol/worker/manage-access',
131131
},
132132
],

README.md

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,66 @@
44

55
- **Node.js**: Version 22 or higher
66
- **npm**: Comes bundled with Node.js
7+
- **Vale** (optional): For documentation linting and quality checks
78

89
## ⚙️ Configuration
910

11+
### Documentation Quality with Vale
12+
13+
We use [Vale](https://vale.sh/) to maintain high-quality documentation
14+
standards. Vale checks your writing for clarity, consistency, and adherence to
15+
our style guidelines, helping us maintain a coherent tone of voice, accurate
16+
terminology, and overall editorial quality across the project.
17+
18+
#### Installing Vale
19+
20+
**macOS:**
21+
22+
```bash
23+
brew install Vale/tap/vale
24+
```
25+
26+
**Linux (Snap):**
27+
28+
```bash
29+
snap install vale
30+
```
31+
32+
**Windows:**
33+
34+
```bash
35+
choco install vale
36+
```
37+
38+
#### Running Vale Locally
39+
40+
```bash
41+
# Download and install external configuration sources
42+
vale sync
43+
44+
# Check all documentation files
45+
vale src/
46+
47+
# Check specific files
48+
vale src/get-started/helloWorld/1-overview.md
49+
50+
# Get detailed output
51+
vale --output=line src/
52+
53+
# Generate comprehensive report with statistics
54+
vale --output=line src/ > vale-report.txt 2>&1
55+
```
56+
57+
#### Vale Rules
58+
59+
Our Vale configuration uses the Google & Vale writing style guide, which helps
60+
ensure:
61+
62+
- Clear and concise language
63+
- Consistent terminology
64+
- Professional tone
65+
- Accessibility best practices
66+
1067
### Environment Variables (Optional)
1168

1269
Some features of the application require environment variables. This
@@ -138,6 +195,8 @@ Fork this repository and ensure you're working on the `main` branch:
138195
> you're satisfied with the preview
139196
> - All pull requests are reviewed by our team before being merged
140197
> - Feel free to ask questions in the pull request if you need clarification
198+
> - **Documentation Quality**: Vale will automatically check your documentation
199+
> for style and clarity
141200
142201
### Some conventions
143202

@@ -191,5 +250,4 @@ for input parameters:
191250
- Give recap of Workerpool address fo chains
192251
- Talk about ENS on Bellecour(it's not supported on arbitrum)
193252
- Rework Advanced iApp building guides. (from "old" protocol doc)
194-
- Rework src\get-started\protocol\iexec-doracle.md (transfer to guide or
195-
rewrite)
253+
- Rework src\get-started\protocol\oracle.md (transfer to guide or rewrite)

src/get-started/helloWorld.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Hello World Tutorial
33
description:
44
Kickstart your Web3 journey with iExec. In just 30 minutes, learn how to build
5-
privacy-focused dApps, protect sensitive data, and manage data access.
5+
privacy-focused DApp, protect sensitive data, and manage data access.
66
---
77

88
<script setup>
@@ -12,7 +12,7 @@ import ChainSelector from '@/components/ChainSelector.vue'
1212

1313
# 👋 Welcome to iExec
1414

15-
> Reading time 🕒 2 mins
15+
> Reading time 🕒 2 min
1616
1717
<div class="mb-0 p-6 bg-[var(--vp-c-bg-soft)] rounded-lg border border-[var(--vp-c-divider)]">
1818
<div class="flex">
@@ -23,7 +23,7 @@ import ChainSelector from '@/components/ChainSelector.vue'
2323

2424
<div class="bg-gradient-to-r from-[#fcd15a] to-[#ffad4d] rounded-[6px] px-8 pb-4 text-gray-800 max-w-3xl mx-auto mb-6">
2525
<h2 class="text-2xl font-bold mt-0 border-none!">Start Your Web3 Privacy Journey</h2>
26-
<p>And learn how to build Privacy-preserving decentralized applications (dApps) with iExec in this interactive guide.</p>
26+
<p>And learn how to build Privacy-preserving decentralized applications (DApp) with iExec in this interactive guide.</p>
2727
<div class="mt-6 flex items-center gap-4">
2828
<span class="bg-gray-900 text-white px-4 py-2 rounded-full font-medium">☕ 30 minutes journey</span>
2929
<p>Perfect for hackathons 😊</p>

0 commit comments

Comments
 (0)