On 3/5/19 7:10 AM, Maros Lipai wrote:
Hi,
I think it would be great to have the link to the NOCHUNKS versions of
the book in the Read Online section. I suggest to add:
"Stable LFS (single page)" linked to /lfs/view/stable-nochunks/ right
under the link "Stable LFS" on the /lfs/read.html page.
"Stable LFS systemd (single page)" linked
to /lfs/view/stable-systemd-nochunks/ right under the link "Stable LFS
systemd" on the /lfs/read.html page.
/lfs/view/stable-nochunks/ and /lfs/view/stable-systemd-nochunks/ first
need to be created.
Also I think it would be great to have a click-to-copy feature in the
html versions of the book. I created a bookmarklet for this but I think
this funcionality should be part of the book itself.
https://www.reddit.com/r/linuxfromscratch/comments/awk8o0/bookmarklet_for_clicktocopy_commands_from_lfs/
<https://www.reddit.com/r/linuxfromscratch/comments/awk8o0/bookmarklet_for_clicktocopy_commands_from_lfs/>
>
The books are generated nightly from xml. Adding something like that
would be non-trivial.
>
The easiest way for you to do what you want is to just download the
chunked html tarball and access the pages from your local host.
Which of the two suggestions is non-trivial? There has to be a misunderstanding
since I don't think that adding a link to
http://www.linuxfromscratch.org/lfs/downloads/stable/LFS-BOOK-8.4-NOCHUNKS.html
somwhere here http://www.linuxfromscratch.org/lfs/read.html is anything but
super-trivial task.
To the second suggestion: the same way as the default stylesheet is added into
the header of the html document you can add script tag containing something
like:
document.querySelectorAll('.userinput,.root,.screen').forEach(function(e){
e.addEventListener('click', function(){
if (this.className === 'screen' && this.children.length > 0 &&
this.children[0].className === 'computeroutput'){
return;
}
var range = document.createRange();
range.selectNodeContents(this);
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand('copy');
});
});
Thanks.Maros
--
http://lists.linuxfromscratch.org/listinfo/website
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page