Skip to content
Snippets Groups Projects
Commit 0cfdaf75 authored by Ciro Santilli's avatar Ciro Santilli
Browse files

cant add toc, absolutely no markers

parent e7e9032f
No related branches found
No related tags found
No related merge requests found
...@@ -23,11 +23,12 @@ function multipage-fixup() ( ...@@ -23,11 +23,12 @@ function multipage-fixup() (
# https://github.com/owenh000/asciidoctor-multipage/issues/21 # https://github.com/owenh000/asciidoctor-multipage/issues/21
# https://github.com/owenh000/asciidoctor-multipage/issues/22 # https://github.com/owenh000/asciidoctor-multipage/issues/22
find "$1" -name '*.html' ! -name 'index.html' | xargs perl -lapi -e ' find "$1" -name '*.html' ! -name 'index.html' | xargs perl -lapi -e '
s/<h[2-6 id="]/<h2 id="/g; s/<h[2-6] id="]/<h2 id="/g;
s/href="README.html"/href="."/g; s/href="README.html"/href="index-split"/g;
s/(href="[^\/][^"]+).html"/\1"/g; s/(href="(?![^"]+:\/\/)[^"]+).html"/\1"/g;
s/(<div class="paragraph nav-footer">)/<h2>Table of contents<\/h2>\1/g;
' '
# Not possible, it is identical to other lists actually...
# s/(<div class="paragraph nav-footer">)/<h2>Table of contents<\/h2>\1/g;
) )
# GitHub pages. # GitHub pages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment