Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for broken mini-toc links #1543

Merged
merged 5 commits into from
Sep 24, 2021
Merged
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 content/rs/references/memtier-benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ You should expect to see an average throughput of:
- Around 160,000 ops/sec when testing without replication (i.e. Four master shards)
- Around 115,000 ops/sec when testing with enabled replication (i.e. Four master and 2 replica shards)

In both cases, the average latency should be below one millisecond.
In both cases, the average latency should be below one millisecond.
4 changes: 2 additions & 2 deletions layouts/partials/mini-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ <h4 class="text-muted">Contents</h4>
{{ $headerLevel := index (findRE "[1-3]" . 1) 0 }}
{{ $headerLevel := len (seq $headerLevel) }}

{{ $anchorIDraw := ($header | plainify | htmlEscape | replaceRE "[/-]" "") }}
{{ $anchorID := ($anchorIDraw | anchorize)}}
{{ $genAnchor := index (split (index (split $header "id=\"") 1) "\"") 0 }}
{{ $anchorID := $genAnchor }}

{{ if ne $i 0 }}
{{ $prevHeaderLevel := index (findRE "[1-3]" (index $headers (sub $i 1)) 1) 0 }}
Expand Down