Suppose that I want to print https://nim-lang.org/docs/os.html
On the left side you see all the links, but the only thing that I want to print is the text on the right. Is there a way to print it?
Assuming there's no existing mechanism to generate it, here's a workaround:
Install a browser extension like Stylus (chrome, firefox) that allows you to add custom CSS to any website
Create a new stylesheet for https://nim-lang.org/docs/* (click on the extension, click "Write new style for ...this URL", set "URLs starting with" to "https://nim-lang.org/docs/"
Add some CSS that only applies when printing, like:
@media print {
/* hide left hand menu */
#documentId > div > div:nth-child(2) > div.three.columns {
visibility: hidden;
max-width: 0;
}
/* hide edit and source links */
a.link-seesrc {
visibility: hidden;
}
}
Then when you print in the browser it will show without the menu and the links. You might want to add some more rules to make the content a little more compact but that should get you started