Comments (15)
The sidebar TOC is implemented here: c4571d4
As with the linked to distll.pub article, it's not fixed position (it scrolls off the screen). As discussed previously, fixed position is tricky w/r/t to figures that extend into the sidebar (quite common w/ distill).
If we wanted to make the TOC more accessible, we could do something similar to what we currently do for the navbar (show it as soon as the user begins scrolling up). Will leave this bug open as a reminder to consider doing this work.
from distill.
Is there any plan to implement fixed or sticky position TOC at the left gutter?
There are abundant examples of sticky sidebar TOC which does not scroll away outside the view. An option for fixed position TOC in the left-hand gutter had been mentioned in the v0.9 milestone. Therefore, I'm curious about the current progress in this issue.
I'm writing a book with Distill package (not Bookdown because Distill can handle citations much more beautifully). The user needs to access any section of the book chapter easily with the help of always viewable TOC at the left sidebar.
It will still take several more months to complete the book. So, I wish I have the option for such functionality before releasing the book.
Thanks
from distill.
If we wanted to make the TOC more accessible, we could do something similar to what we currently do for the navbar (show it as soon as the user begins scrolling up).
Great idea !!
from distill.
from distill.
@umarcor that is an aspirational TOC at the moment! I'm leaving the screenshot here, but it is not implemented currently.
from distill.
No current plans to do that (although I agree it's useful which is why we added it to the standard html_document format). The major issue is that we want to allow figures and tables to occupy the full width of the page which would conflict with a TOC in the gutter.
from distill.
I understand the issue of figures and tables occupying the full width. It's therefore not possible to include a TOC in the gutter.
Would an animated closable side navigation menu be a possibility? Something similar to https://www.w3schools.com/howto/howto_js_sidenav.asp Wich such menu, not visible by default, the content of the page will be displayed as usual. Of course, it would require to have a fixed toggle button.
from distill.
Something like that would certainly be a good way to address the issue.
from distill.
Regarding the horizontal layout, I wonder whether the width of the main body and the asides can be adjusted. Such modification would be independent from having a sidebar, but I think that both enhancements can fit well together, specially on wide screens. For example:
from distill.
Just found this issue as I'm working on my first distill site. It would be great if you could at least provide the option of moving the table of contents into the gutter, without applying fixed positioning (i.e., as if I placed the toc into an <aside>
block). In this way, the toc wouldn't interfere with any other materials placed into the gutter, but it would also not take up much of the beginning of the page as it currently does. It would scroll away, sure, but so does the current toc.
from distill.
Here is a screenshot from a recent Distill article with this kind of TOC:
from distill.
@apreshill, thanks a lot for letting us know. Those updates in v0.9 are awesome! Do we need to change anything in our config or build procedure for placing the TOC like you showed?
from distill.
I would also love this feature!
from distill.
Hi, thanks for this amazing package! I would also love this feature, is possible!
from distill.
Hi! Love Distill! Would really like to have the toc visible and accessible at all times for easy navigation in lengthy articles. Is it possible to have a setting so that it can be turned off to fix it at the top incase the article has tables and images that need to occupy the whole width?
from distill.
Related Issues (20)
- Upkeep for distill
- Check and add alt-text to pictures, plots, ... in website
- invalid byte sequence when deploying to github HOT 3
- RSS category-based feeds HOT 1
- Creative Commons Markdown Table Not Rendering Properly
- Warning due to deprecation of 'format' argument to 'as.character.POSIXlt()' HOT 2
- Description in _site.yaml causing Error "STRING_ELT() can only be applied to a 'character vector', not a 'list'" HOT 1
- How to add email and multiple affiliations to a single author? HOT 2
- Article description does not show up when adding posts HOT 1
- Improve alt-text for ORCiD icon HOT 3
- Add <hr> for screen reader accessibility HOT 1
- Space between lines in bulleted lists HOT 1
- Various minor accessibility issues
- Release distill 1.6
- Gallery outdated, remove Quarto pages HOT 1
- Javascript & D3 page error HOT 1
- Journal (site) title is incorrectly prepended to the article title in cititations.
- Has anyone used any alternative to Google analytics? HOT 2
- italicized species names in a Rmarkdown distill package
- Using a `distill` vignette on CRAN HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distill.