Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/help_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def extract_outline(text)
if line =~ /^(\#{2,3})\s+(.+)$/
level = $1.length
title = $2.strip
id = title.downcase.gsub(/[^a-z0-9\s-]/, " ").gsub(/\s+/, "-")
id = title.downcase.gsub(/'/, "").gsub(/[^\w\s-]/, "-").gsub(/[\s-]+/, "-").gsub(/^-|-$/, "")
headings << { level: level, title: title, id: id }
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/controllers/help_outline_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class extends Controller {
this.observer = new IntersectionObserver(
this.onIntersect.bind(this),
{
rootMargin: "0px 0px -80% 0px",
rootMargin: "0px 0px -90% 0px",
threshold: 0
}
)
Expand Down
2 changes: 1 addition & 1 deletion app/views/help/pages/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ from:committer[last_before:1m] -has:contributor # Inactive committers
(from:alvaro[body:patch] OR has:patch[from:alvaro]) first_after:1m
```

### Negation
### Selectors negation

You can negate selectors with dependent conditions:

Expand Down
Loading