mirror of
https://github.com/coredns/coredns.io.git
synced 2026-10-19 16:15:37 +00:00
linkify each section of the readme (#197)
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -26,5 +26,4 @@ sync:
|
||||
# Scan all markdown files for Corefile snippets and check validity github.com/miekg/corecheck
|
||||
.PHONY: test
|
||||
test:
|
||||
corecheck -exe $(PWD)/.coredns/coredns -dir content/blog
|
||||
corecheck -exe $(PWD)/.coredns/coredns -dir content/manual
|
||||
hugo server
|
||||
|
||||
@@ -195,7 +195,26 @@ h3 a, .h3 a,
|
||||
h4 a, .h4 a,
|
||||
h5 a, .h5 a,
|
||||
h6 a, .h6 a {
|
||||
color: inherit; }
|
||||
color: inherit;
|
||||
text-decoration: none; }
|
||||
|
||||
h1 a:hover, .h1 a:hover,
|
||||
h2 a:hover, .h2 a:hover,
|
||||
h3 a:hover, .h3 a:hover,
|
||||
h4 a:hover, .h4 a:hover,
|
||||
h5 a:hover, .h5 a:hover,
|
||||
h6 a:hover, .h6 a:hover {
|
||||
color: inherit;
|
||||
text-decoration: underline; }
|
||||
|
||||
h1 a:active, .h1 a:active,
|
||||
h2 a:active, .h2 a:active,
|
||||
h3 a:active, .h3 a:active,
|
||||
h4 a:active, .h4 a:active,
|
||||
h5 a:active, .h5 a:active,
|
||||
h6 a:active, .h6 a:active {
|
||||
color: inherit;
|
||||
text-decoration: underline; }
|
||||
|
||||
p + h2,
|
||||
p + h3,
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
$(document).ready(function() {
|
||||
$(':header[id]').each(function() {
|
||||
var anchor = document.createElement('a')
|
||||
anchor.href = '#' + this.id
|
||||
$(this).wrapInner(anchor)
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user