Comments (20)
@borekb this hasn't been implemented. I felt it's not needed because the sidebar already provides a ToC. On most pages, hitting Alt+R
will reveal the current entry in the sidebar surrounded by related entries for that page, which acts as a ToC.
I see how an extra ToC could be useful, though, having added many docs with lots of headings that aren't entries in the sidebar. So I'll reopen this.
from devdocs.
Hi, was this ever implemented? I get ToC on the about page , but nowhere else. Long pages with many headings are quite hard to navigate.
from devdocs.
I believe this is one of the critical features. It improves and unifies the overall reading experience. May I know if there are any blockers ? or it is not possible to add ? The issue had opened 8 years back.
from devdocs.
Few examples, where there's a sidebar on the left side and ToC on the right side.
https://getbootstrap.com/docs/5.1/getting-started/introduction/
https://docs.spring.io/spring-framework/docs/current/reference/html/core.html
https://tailwindcss.com/docs/configuration
from devdocs.
Hi,
why the offline version doesent contain the same navigation in the online website?
from devdocs.
@abdelouahabb Both versions are the same.
from devdocs.
@Thibaut I followed the exact steps, and i dont get the side navigation menu (Chromium and firefox, same result, opensuse)
from devdocs.
@abdelouahabb can you post a screenshot please
from devdocs.
@Thibaut I updated the comment with screenshot
from devdocs.
@abdelouahabb and on the same computer / browser, if you load devdocs.io
you see the sidebar?
from devdocs.
@Thibaut that's the same, since it is just the dns?
from devdocs.
Ok so both versions are the same. It's just that you're using a small computer so the mobile version kicks in. What computer / screen resolution are you using?
from devdocs.
@Thibaut i get:
screen.width: 1366
screen.height: 664
from devdocs.
@Thibaut I confirm that it is th css media
, i tried to access from windows (because i ran it from virtual machine, on opensuse) and now i get the TOC, thank you ^_^
from devdocs.
Could you send me the result of these two lines both in your VM and outside:
window.matchMedia('(max-device-height: 767px)').matches
window.matchMedia('(max-device-height: 767px) and (max-device-width: 1024px)').matches
from devdocs.
@Thibaut
Hi, and sorry for the delay, here is the result:
window.matchMedia('(max-device-height: 767px)').matches : true
window.matchMedia('(max-device-height: 767px) and (max-device-width: 1024px)').matches: false
from devdocs.
Any update on this ?
from devdocs.
I felt it's not needed because the sidebar already provides a ToC. On most pages, hitting Alt+R will reveal the current entry in the sidebar surrounded by related entries for that page, which acts as a ToC.
On the sidebar, the entries are the contents for the whole library. Having a ToC for the current page helps a lot. For example, consider this page — https://devdocs.io/django~4.0/topics/auth/default — it is very long, and keeping track of it while reading is hard.
Let me know if it will be implemented or at least point me in a direction on implementing this. We can add this as optional and disable it by default so that users can toggle from the preferences.
from devdocs.
I just poked around the code and I think the file where we would add the table of contents HTML is near the entry page render method.
We would need to find all the headings within content
arg and append newly generated HTML that links to each (assuming each heading has a unique id
attribute).
from devdocs.
This is a big downside of devdocs. Zeal on the other hand does have a table of contents which lists the sections in order whenever you open a page. The desktop application also supports multiple tabs but that's not as important as having a table of contents.
This is a dealbreaker for many people and it's a shame that it's been 10 years (almost to the day) since the issue was open and nothing has been done.
from devdocs.
Related Issues (20)
- Documentation versions report for January 2024 HOT 1
- Deprecation warning for `cache_format_version = 6.1` occurring
- go version HOT 1
- Update nim to 2.0.2 HOT 1
- Scroll Position Issue: Starting at Bottom of Page When Moving to Next Chapter/Subchapter HOT 2
- Icons not showing and offline data not working HOT 3
- Expand Kubernetes Documentation footprint
- Documentation versions report for February 2024 HOT 1
- [C++] (CppReference) HTML-Table-Listed-Items displayed wrong [without Line-Break]
- Go documentation is missing reference links
- Typescript 'Homepage' links are broken
- Add Microsoft Documentation
- Ansible/YAML docs are missing syntax highlighting HOT 2
- Include support for Expo documentation
- Documentation versions report for March 2024 HOT 1
- CMake: harvest definitions in modules
- Add Qwik.dev Docs
- Tailwind Colors should be in Grid Layout
- [C++] utility/optional/operator_bool page is missing completely
- PostgreSQL doc: some JSON functions can't be found
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 devdocs.