Skip to content

Commit edcf24e

Browse files
committed
refactor: enhance documentation clarity and styling, focusing on swarms explanation and content link customization guide
1 parent 0efc1ed commit edcf24e

File tree

3 files changed

+46
-9
lines changed

3 files changed

+46
-9
lines changed

src/content/docs/getting-started/understanding-torus.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ Swarms are subgraphs, and can form at any position in the hypergraph.
1616
The Torus hypergraph emerges from and aligns back to the <span title={DEFINITIONS.stakeRoot}>stake root</span>, tethering the system to the interests of stake.
1717
Torus aligns towards the central point of stake, while stake is decentralized, representing the system as a whole, effectively aligning it to itself.
1818

19-
Swarms form bottom-up around <span title={DEFINITIONS.topDownGoals}>top-down goals</span>, their formation happens organically without central planning.
19+
Swarms form bottom-up around top-down goals, their formation happens organically without central planning.
2020
Swarms operate as <span title={DEFINITIONS.selfAssemblingMultiScaleCompetencyArchitecture}>self-assembling multi-scale competency architectures</span>,
2121
collectively navigating towards complex goals with full autonomy at every level and open competition at every edge.
2222

2323
The permission & delegation system enables agents to <span title={DEFINITIONS.granularSpecialization}>granularily
2424
specialize</span> while remaining aligned across levels.
25-
Swarms collectively explore a problem space and engage in an open-ended process of <span title={DEFINITIONS.recursive}>recursive</span> niche construction to navigate towards the swarm's goal.
25+
Swarms collectively explore a problem space and engage in an open-ended process of <span title={DEFINITIONS.recursive}>recursive</span> niche
26+
construction to navigate towards the swarm's goal.
2627

2728

2829
#### v0.5

src/content/docs/index.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ Connect with the Torus community:
3838

3939
## Choose Your Path
4040

41-
This documentation is structured linearly, but you're free to explore it your way.
41+
This guide adapts to your style, whether you prefer theory first or hands‑on learning.
4242

43-
You can start with <RedText variant="light">Understanding the concepts</RedText> or skip ahead to <RedText variant="light">How it works</RedText>.
44-
If you choose <RedText variant="light">Understanding the concepts</RedText>, and then getting stuff done,
45-
just follow the guide step-by-step using the <RedText variant="light">Next button below</RedText>.
43+
- Understanding the Concepts: Explore the key ideas, definitions, and background.
44+
- [How-to guides](https://docs.torus.network/how-to-guides/table-of-contents): Jump straight into practical steps and examples.
45+
46+
If you’d like a step-by‑step walkthrough, start with <RedText variant="light">Understanding the Concepts</RedText> and use the <RedText variant="light">Next</RedText> button at the bottom of each page to proceed.

src/tailwind.css

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@ details details .large {
2828
color: inherit !important; /* Remove test color */
2929
}
3030

31+
/*
32+
CONTENT LINK STYLING CUSTOMIZATION GUIDE:
33+
This section controls the blue color for content links while preserving
34+
navigation elements in their original colors.
35+
36+
To customize content link colors:
37+
- Change #3b82f6 (blue-500) for normal link color
38+
- Change #2563eb (blue-600) for hover link color
39+
- Add more selectors to include additional link types
40+
- Add more exclusions to prevent styling specific elements
41+
42+
Navigation elements excluded:
43+
- Sidebar navigation
44+
- Page navigation (prev/next buttons)
45+
- Header navigation
46+
- Any nav-specific elements
47+
*/
48+
3149
/* Make content hyperlinks blue, but keep navigation original colors */
3250
@layer components {
3351
/* Only make content area links blue */
@@ -54,8 +72,9 @@ details details .large {
5472
}
5573
}
5674

57-
/* Explicitly keep sidebar navigation in original colors */
75+
/* Explicitly keep navigation elements in original colors */
5876
@layer components {
77+
/* Sidebar navigation */
5978
nav a,
6079
nav .large,
6180
[data-starlight-sidebar] a,
@@ -65,16 +84,32 @@ details details .large {
6584
details summary,
6685
details summary .large,
6786
.sidebar a,
68-
.sidebar .large {
87+
.sidebar .large,
88+
/* Page navigation (prev/next buttons) */
89+
.pagination a,
90+
[data-pagination] a,
91+
.pagination-links a,
92+
.sl-flex a[rel="prev"],
93+
.sl-flex a[rel="next"],
94+
footer a,
95+
.starlight-aside .pagination a {
6996
color: inherit !important;
7097
text-decoration: none !important;
7198
}
7299

100+
/* Hover states for navigation elements */
73101
nav a:hover,
74102
[data-starlight-sidebar] a:hover,
75103
nav[aria-labelledby="starlight__sidebar-navigation"] a:hover,
76104
details summary:hover,
77-
.sidebar a:hover {
105+
.sidebar a:hover,
106+
.pagination a:hover,
107+
[data-pagination] a:hover,
108+
.pagination-links a:hover,
109+
.sl-flex a[rel="prev"]:hover,
110+
.sl-flex a[rel="next"]:hover,
111+
footer a:hover,
112+
.starlight-aside .pagination a:hover {
78113
color: inherit !important;
79114
text-decoration: none !important;
80115
}

0 commit comments

Comments
 (0)