Skip to content

Commit 515e806

Browse files
authored
Add back-to-the-top link to readme (#2707)
1 parent 6ac3c70 commit 515e806

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4582,3 +4582,5 @@ I hope you enjoy using `just` and find great success and satisfaction in all
45824582
your computational endeavors!
45834583

45844584
😸
4585+
4586+
[🔼 Back to the top!](#just)

crates/generate-book/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ fn main() -> Result {
161161
for event in &mut chapter.events {
162162
if let Event::Start(Tag::Link(_, dest, _)) | Event::End(Tag::Link(_, dest, _)) = event {
163163
if let Some(anchor) = dest.clone().strip_prefix('#') {
164-
*dest = CowStr::Borrowed(&links[anchor]);
164+
if anchor != "just" {
165+
*dest = CowStr::Borrowed(&links[anchor]);
166+
}
165167
}
166168
}
167169
}

0 commit comments

Comments
 (0)