Skip to content

Commit b71303b

Browse files
authored
Merge pull request #17 from solid-process/chore/docs-overview
Add navigation and separators to overview docs
2 parents e8d58bf + 3087dcb commit b71303b

11 files changed

+119
-1
lines changed

.claude/CLAUDE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@ Both `README.md` and `docs/REFERENCE.md` use back-to-top navigation after each m
1818
1. Add `<p align="right"><a href="#table-of-contents">⬆️ &nbsp;back to top</a></p>` before the `---` that closes the section
1919
2. Update the Table of Contents with the new entry
2020

21+
### Overview File Structure
22+
23+
Each file in `docs/overview/` follows this layout:
24+
25+
1. **Header nav**`<small>` block with `` `Previous` `` and `` `Next` `` links
26+
2. **`---`** separator
27+
3. **Content** — starts with a `#` title
28+
4. **`---`** separator
29+
5. **Footer nav**`<small>` block with the same `` `Previous` ``/`` `Next` `` links as the header
30+
31+
Navigation chain: `010_KEY_CONCEPTS``020_BASIC_USAGE` → … → `100_PORTS_AND_ADAPTERS`. The first file's `Previous` links to `../README.md#further-reading`; the last file's `Next` links to `../REFERENCE.md`.
32+
33+
When adding a new overview file:
34+
35+
1. Follow the numbered naming convention (e.g., `110_NEW_TOPIC.md`)
36+
2. Add header and footer nav blocks with `---` separators
37+
3. Update the `Previous`/`Next` links in the adjacent files to include the new file
38+
2139
## Common Commands
2240

2341
```bash

docs/overview/010_KEY_CONCEPTS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# The Key Concepts
810

911
### What is a process?
@@ -42,3 +44,11 @@ For this reason, this abstraction embraces emerging design, allowing developers
4244
Using the emerging design concept, I invite you to embrace this development cycle, write the minimum necessary to implement processes and add more solid-process features based on actual needs.
4345

4446
<p align="right"><a href="#the-key-concepts">⬆️ &nbsp;back to top</a></p>
47+
48+
---
49+
50+
<small>
51+
52+
`Previous` [Table of Contents](../README.md#further-reading) | `Next` [Basic Usage](./020_BASIC_USAGE.md)
53+
54+
</small>

docs/overview/020_BASIC_USAGE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Basic Usage
810

911
Every process needs an `input` block (defining attributes) and a `call` method (returning Success or Failure).
@@ -60,3 +62,11 @@ For detailed explanations, examples, and advanced patterns, see:
6062
- [Your First Process](../REFERENCE.md#2-your-first-process) — step-by-step walkthrough
6163
- [Input Definition & Validation](../REFERENCE.md#3-input-definition--validation) — types, validations, and more
6264
- [Working with Results](../REFERENCE.md#5-working-with-results) — accessing values and checking status
65+
66+
---
67+
68+
<small>
69+
70+
`Previous` [Key Concepts](./010_KEY_CONCEPTS.md) | `Next` [Intermediate Usage](./030_INTERMEDIATE_USAGE.md)
71+
72+
</small>

docs/overview/030_INTERMEDIATE_USAGE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Intermediate Usage
810

911
The Steps DSL provides `Given`, `and_then`, `Continue`, and `and_expose` for expressing complex workflows clearly.
@@ -58,3 +60,11 @@ For detailed explanations, examples, and advanced patterns, see:
5860

5961
- [Steps DSL](../REFERENCE.md#7-steps-dsl) — complete DSL reference
6062
- [Transactions](../REFERENCE.md#8-transactions) — rollback strategies
63+
64+
---
65+
66+
<small>
67+
68+
`Previous` [Basic Usage](./020_BASIC_USAGE.md) | `Next` [Advanced Usage](./040_ADVANCED_USAGE.md)
69+
70+
</small>

docs/overview/040_ADVANCED_USAGE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Advanced Usage
810

911
Use dependencies for testability, input validation for data integrity, and process composition for complex workflows.
@@ -86,3 +88,11 @@ For detailed explanations, examples, and advanced patterns, see:
8688
- [Dependencies](../REFERENCE.md#9-dependencies) — injection patterns
8789
- [Process Composition](../REFERENCE.md#10-process-composition) — nesting processes
8890
- [Transactions](../REFERENCE.md#8-transactions) — rollback behavior
91+
92+
---
93+
94+
<small>
95+
96+
`Previous` [Intermediate Usage](./030_INTERMEDIATE_USAGE.md) | `Next` [Error Handling](./050_ERROR_HANDLING.md)
97+
98+
</small>

docs/overview/050_ERROR_HANDLING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Error Handling
810

911
Handle exceptions at the class level with `rescue_from` or at the method level with inline `rescue`.
@@ -87,3 +89,11 @@ end
8789
For detailed explanations, examples, and advanced patterns, see:
8890

8991
- [Error Handling](../REFERENCE.md#12-error-handling) — complete error handling guide
92+
93+
---
94+
95+
<small>
96+
97+
`Previous` [Advanced Usage](./040_ADVANCED_USAGE.md) | `Next` [Testing](./060_TESTING.md)
98+
99+
</small>

docs/overview/060_TESTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Testing
810

911
Test processes by asserting on outcomes and using dependency injection to isolate units.
@@ -92,3 +94,11 @@ end
9294
For detailed explanations, examples, and advanced patterns, see:
9395

9496
- [Testing](../REFERENCE.md#16-testing) — comprehensive testing patterns
97+
98+
---
99+
100+
<small>
101+
102+
`Previous` [Error Handling](./050_ERROR_HANDLING.md) | `Next` [Instrumentation](./070_INSTRUMENTATION.md)
103+
104+
</small>

docs/overview/070_INSTRUMENTATION.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Instrumentation
810

911
Enable the BasicLoggerListener to observe process execution, invaluable for debugging complex flows.
@@ -61,3 +63,11 @@ Backtrace:
6163
For detailed explanations, examples, and advanced patterns, see:
6264

6365
- [Instrumentation](../REFERENCE.md#13-instrumentation) — complete logging guide
66+
67+
---
68+
69+
<small>
70+
71+
`Previous` [Testing](./060_TESTING.md) | `Next` [Rails Integration](./080_RAILS_INTEGRATION.md)
72+
73+
</small>

docs/overview/080_RAILS_INTEGRATION.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Rails Integration
810

911
Solid::Process integrates naturally with Rails controllers, views, and the ActiveModel ecosystem.
@@ -86,3 +88,11 @@ For detailed explanations, examples, and advanced patterns, see:
8688

8789
- [Introduction](../REFERENCE.md#1-introduction) — installation and setup
8890
- [Pattern Matching](../REFERENCE.md#6-pattern-matching) — elegant result handling
91+
92+
---
93+
94+
<small>
95+
96+
`Previous` [Instrumentation](./070_INSTRUMENTATION.md) | `Next` [Internal Libraries](./090_INTERNAL_LIBRARIES.md)
97+
98+
</small>

docs/overview/090_INTERNAL_LIBRARIES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
</small>
66

7+
---
8+
79
# Internal Libraries
810

911
Solid::Process includes three internal libraries you can use independently: Model, Value, and Input.
@@ -95,3 +97,11 @@ end
9597
For detailed explanations, examples, and advanced patterns, see:
9698

9799
- [Internal Libraries](../REFERENCE.md#15-internal-libraries) — complete reference
100+
101+
---
102+
103+
<small>
104+
105+
`Previous` [Rails Integration](./080_RAILS_INTEGRATION.md) | `Next` [Ports and Adapters](./100_PORTS_AND_ADAPTERS.md)
106+
107+
</small>

0 commit comments

Comments
 (0)