Skip to content

Commit c9385b9

Browse files
committed
Update documentations.
Add background for sudoku demo for better style in dark mode. Fix a typo in the documentation. Remove the architecture ascii graph since it looks not good.
1 parent 551731a commit c9385b9

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

docs/examples/Sudoku.vue

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
flex-direction: column;
3939
align-items: center;
4040
padding: 20px;
41+
background-color: #f0f2f5;
4142
min-height: 100vh;
4243
box-sizing: border-box;
4344
}
@@ -116,7 +117,8 @@ h1 {
116117
/* 浅色背景宫 */
117118
.sudoku-grid > div:nth-child(-n + 3) span:nth-child(-n + 3),
118119
.sudoku-grid > div:nth-child(-n + 3) span:nth-child(n + 7),
119-
.sudoku-grid > div:nth-child(n + 4):nth-child(-n + 6)
120+
.sudoku-grid
121+
> div:nth-child(n + 4):nth-child(-n + 6)
120122
span:nth-child(n + 4):nth-child(-n + 6),
121123
.sudoku-grid > div:nth-child(n + 7) span:nth-child(-n + 3),
122124
.sudoku-grid > div:nth-child(n + 7) span:nth-child(n + 7) {
@@ -159,7 +161,9 @@ button {
159161
margin: 0 10px 20px;
160162
font-size: 1.1em;
161163
cursor: pointer;
162-
transition: background-color 0.3s ease, transform 0.2s ease;
164+
transition:
165+
background-color 0.3s ease,
166+
transform 0.2s ease;
163167
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
164168
}
165169
@@ -174,14 +178,26 @@ button:active {
174178
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
175179
}
176180
177-
button:nth-of-type(1) { background-color: #2ecc71; }
178-
button:nth-of-type(1):hover { background-color: #27ae60; }
181+
button:nth-of-type(1) {
182+
background-color: #2ecc71;
183+
}
184+
button:nth-of-type(1):hover {
185+
background-color: #27ae60;
186+
}
179187
180-
button:nth-of-type(2) { background-color: #f39c12; }
181-
button:nth-of-type(2):hover { background-color: #e67e22; }
188+
button:nth-of-type(2) {
189+
background-color: #f39c12;
190+
}
191+
button:nth-of-type(2):hover {
192+
background-color: #e67e22;
193+
}
182194
183-
button:nth-of-type(3) { background-color: #e74c3c; }
184-
button:nth-of-type(3):hover { background-color: #c0392b; }
195+
button:nth-of-type(3) {
196+
background-color: #e74c3c;
197+
}
198+
button:nth-of-type(3):hover {
199+
background-color: #c0392b;
200+
}
185201
186202
/* ----------------------------------------------
187203
Log 区域
@@ -196,7 +212,7 @@ h3 {
196212
textarea {
197213
width: 80%;
198214
max-width: 1000px;
199-
height: 150px;
215+
height: 450px;
200216
padding: 15px;
201217
border: 1px solid #ccc;
202218
border-radius: 8px;

docs/examples/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The classic example demonstrates double negation elimination using propositional
1111
- **Axiom 2**: (P → (Q → R)) → ((P → Q) → (P → R))
1212
- **Axiom 3**: (¬P → ¬Q) → (Q → P)
1313

14-
Given the premise !!X (double negation of X), we can derive X.
14+
Given the premise ¬¬X (double negation of X), we can derive X.
1515

1616
=== "Python"
1717

docs/index.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ A deductive system for logical inference, implemented in C++. The library provid
1212
- **WebAssembly**: Run inference in the browser or Node.js environments
1313
- **Type-Safe**: Strong typing support in TypeScript and Python
1414

15-
## Architecture
16-
17-
```
18-
┌────────────────────────────────────────────────────────────┐
19-
│ Application Layer │
20-
├────────────────────┬────────────────────┬──────────────────┤
21-
│ TypeScript (atsds) │ Python (apyds) │ C++ Direct │
22-
│ via WebAssembly │ via pybind11 │ │
23-
├────────────────────┴────────────────────┴──────────────────┤
24-
│ C++ Core Library │
25-
│ (include/ds/, src/) │
26-
└────────────────────────────────────────────────────────────┘
27-
```
28-
2915
## Quick Links
3016

3117
- **[Installation](getting-started/installation.md)** - Install DS for your preferred language

0 commit comments

Comments
 (0)