Skip to content
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

See if I can get byte fields to link to their descriptions. #37

Open
brunchboy opened this issue Feb 13, 2021 · 1 comment
Open

See if I can get byte fields to link to their descriptions. #37

brunchboy opened this issue Feb 13, 2021 · 1 comment

Comments

@brunchboy
Copy link
Member

In theory, bytefield-svg supports this, via (wrap link …). And it almost works, but seems to run into browser bugs. Safari does nothing when you click on the link, Firefox and Chrome do scroll to it, but the content is hidden underneath Antora’s top nav content. According to the Antora devs, that is likely because the fragment jumper, which intercepts fragment clicks, is not seeing it.

In all cases, right-clicking to open in a new window works fine.

The Antora folks suggest trying with a version of my UI which has the fragment jumper removed might be interesting.

Are you building your own UI? Basically delete src/js/03-fragment-jumper.js

So, if I get a chance, try that and let them know what is different.

To see this problem in the current state of the docs, the CDJ status packet byte ba (labeled el) is currently trying to link to the paragraph describing it.

@moemoeq
Copy link

moemoeq commented Sep 4, 2021

how about insert css like this?
I did a simple test on devtool and kinda works
It is not the best solution that satisfies everything, but it seems to work as wants.
However, I did not check all cases, may need to adjust the scope.
[id]::before { content: ''; display: block; height: 110px; margin-top: -110px; visibility: hidden; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants