Skip to content

Commit c5b8697

Browse files
committed
docs: enforce doc-nav centering on all pages
Made-with: Cursor
1 parent 310631e commit c5b8697

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/_includes/page-nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="doc-nav" style="margin-top:2.5rem; border-top:1px solid #d0d7de; padding-top:1.5rem;">
1+
<div class="doc-nav" style="margin-top:2.5rem; border-top:1px solid #d0d7de; padding-top:1.5rem; text-align:center;">
22
<a href="{{ '/' | relative_url }}">Home</a>
33
<a href="{{ '/ARCHITECTURE.html' | relative_url }}">Architecture</a>
44
<a href="{{ '/DEVELOPER_GUIDE.html' | relative_url }}">Developer Guide</a>

docs/_layouts/default.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,12 @@
214214
display: flex;
215215
flex-wrap: wrap;
216216
justify-content: center;
217+
align-items: center;
217218
gap: 8px;
218-
margin: 2rem 0 1rem;
219+
margin: 1rem auto 1.5rem;
220+
padding: 0;
221+
width: 100%;
222+
text-align: center;
219223
}
220224
.doc-nav a {
221225
background: #f0f2f5;
@@ -227,6 +231,7 @@
227231
color: #0969da !important;
228232
text-decoration: none !important;
229233
transition: background 0.15s, border-color 0.15s;
234+
white-space: nowrap;
230235
}
231236
.doc-nav a:hover {
232237
background: #e6edf3;

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ docker run --rm -v $(pwd)/data:/data subenum -w /data/wordlist.txt example.com
9696

9797
---
9898

99+
<div style="text-align:center">
100+
99101
## Documentation
100102

103+
</div>
104+
101105
<div class="doc-nav">
102106
<a href="ARCHITECTURE.html">Architecture</a>
103107
<a href="DEVELOPER_GUIDE.html">Developer Guide</a>

0 commit comments

Comments
 (0)