Skip to content

Commit d609988

Browse files
committed
remove js rendering
1 parent f3fb1f1 commit d609988

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/theme/book.js

-14
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,6 @@ $( document ).ready(function() {
5555
var page_wrapper = $("#page-wrapper");
5656
var content = $("#content");
5757

58-
59-
// Add anchors for all content headers
60-
content.find("h1, h2, h3, h4, h5").wrap(function(){
61-
var wrapper = $("<a class=\"header\">");
62-
var header_name = $(this).text().trim().replace(/\W/g, '-')
63-
wrapper.attr("name", header_name);
64-
// Add so that when you click the link actually shows up in the url bar...
65-
// Remove any existing anchor then append the new one
66-
// ensuring eg. no spaces are present within it ie. they become %20
67-
wrapper.attr("href", $(location).attr('href').split("#")[0] + "#" + header_name );
68-
return wrapper;
69-
});
70-
71-
7258
// Toggle sidebar
7359
$("#sidebar-toggle").click(function(event){
7460
if ( html.hasClass("sidebar-hidden") ) {

0 commit comments

Comments
 (0)