-
Notifications
You must be signed in to change notification settings - Fork 956
WIP: New Feature: Navigation indication on the right TOC #506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I need to find a way to adjust the appropriate margin width for deeper TOC items. |
|
Can you offer a live preview? |
|
I took a look on https://airflow.apache.org/docs/apache-airflow/stable/installation.html |
|
Thank you for the tip, @narrenfrei! Understood. Maybe we can use the same technique. I'll investigate the Docsy implementation more. You can see the live preview here: https://deploy-preview-506--docsydocs.netlify.app/docs/getting-started/ |
|
Thanks for the preview. I think, I've already found a solution. But for this we would have to change the old CSS for specifying the old "standard alignment" of the nested lists (levels of TOC) and use the ul tags instead of the li tags to set the margin and padding. @LisaFC Would it be OK for you, to change the CSS a little bit? |
Sorry for my last post. But I thought a little bit more about the solution in my mind and it won't work for this issue. The possibilities I see now, (1) change the generated HTML code of the TOC a little bit, (2) tweak the JS or (3) a other CSS trick, I haven't in mind at the moment. |
|
I've been thinking about our problem again. At the moment I think that it will really be best or simplest to design the CSS similar to https://airflow.apache.org/docs/apache-airflow/stable/installation.html
|
|
Bumping this as it would be really useful, thanks! :) |
|
Hi, I have a PR that allows you to use a javascript-based ToC on the right
which has this feature: #1049
…On Fri, 29 Jul 2022, 18:05 Eduardo Mínguez, ***@***.***> wrote:
Bumping this as it would be really useful, thanks! :)
—
Reply to this email directly, view it on GitHub
<#506 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6AU3L46K5A643UWW3B2MLVWP6NDANCNFSM42TEFUXA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Resolves #349.
This PR implements the navigation indication on the right TOC like Apache Airflow Documentation.
Screen Recording
docsy-toc-highlight.mov
Current Issue
When the depth is more than 1, the left margin is not correct.
docsy-toc-highlight-issue.mov
Any feedback is welcome! 🙂