mirror of
https://github.com/boostorg/boostlook.git
synced 2026-01-19 16:12:14 +00:00
Compare commits
1 Commits
develop_ti
...
feature/bo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1975b6e8ee |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1 @@
|
||||
doc/html
|
||||
.DS_Store
|
||||
|
||||
Binary file not shown.
1330
boostlook.css
1330
boostlook.css
File diff suppressed because it is too large
Load Diff
11
boostlook.rb
11
boostlook.rb
@@ -3,21 +3,13 @@ Asciidoctor::Extensions.register do
|
||||
process do |doc, output|
|
||||
output = output.sub(/(<body[^>]*>)/, '\1<div class="boostlook">')
|
||||
output = output.sub('</body>', '</div></body>')
|
||||
# Comment out toggle button - TOC should always be visible
|
||||
# output = output.sub(/(<body.*?<div[^>]*id="toc"[^>]*>)/m, '\1<button id="toggle-toc" title="Show Table of Contents" aria-expanded="false" aria-controls="toc">☰</button>')
|
||||
output = output.sub(/(<body.*?<div[^>]*id="toc"[^>]*>)/m, '\1<button id="toggle-toc" title="Show Table of Contents" aria-expanded="false" aria-controls="toc">☰</button>')
|
||||
output = output.sub(/(<body.*?<div[^>]*id="footer"[^>]*>)/m, '</div>\1')
|
||||
|
||||
script_tag = <<~SCRIPT
|
||||
<script>
|
||||
(function() {
|
||||
const html = document.documentElement;
|
||||
// Always show TOC - no toggle functionality needed
|
||||
html.classList.add('toc-visible');
|
||||
html.classList.add('toc-pinned');
|
||||
html.classList.remove('toc-hidden');
|
||||
|
||||
// Comment out toggle functionality since TOC should always be visible
|
||||
/*
|
||||
const isPinned = localStorage.getItem('tocPinned') === 'true';
|
||||
|
||||
html.classList.add('toc-hidden');
|
||||
@@ -64,7 +56,6 @@ Asciidoctor::Extensions.register do
|
||||
|
||||
updateTocVisibility(isPinned);
|
||||
});
|
||||
*/
|
||||
})();
|
||||
</script>
|
||||
SCRIPT
|
||||
|
||||
1981
boostlook_old.css
Normal file
1981
boostlook_old.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
notosans.woff2
BIN
notosans.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user