-
Notifications
You must be signed in to change notification settings - Fork 7.1k
add headings to weights table. #6139
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
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
65736ae
added note
abhi-glitchhg b0cb6d7
"added headings"
abhi-glitchhg d4e5e0a
minor change
abhi-glitchhg ebc5412
Merge branch 'main' into docs
abhi-glitchhg 221ffe9
Merge branch 'main' into docs
abhi-glitchhg a89289a
Update conf.py
abhi-glitchhg a476b03
minor change
abhi-glitchhg bcfe9c8
changed the heading level,
abhi-glitchhg 296a338
Merge branch 'main' into docs
abhi-glitchhg 48a9d7d
minor change
abhi-glitchhg af7225e
linting
abhi-glitchhg c4152d0
remove duplicate titles.
abhi-glitchhg a3dd192
formatting
abhi-glitchhg 0d1db07
hierarchy by having flexible way of using header character
abhi-glitchhg cc5eca0
fix typo
abhi-glitchhg c0906a1
Merge branch 'main' into docs
abhi-glitchhg 47e26b3
Merge branch 'main' into docs
abhi-glitchhg 4d0cd07
as per Ren's suggestions combine nicolas' and my approach
abhi-glitchhg c928e9d
Merge branch 'docs' of https://github.com/abhi-glitchhg/vision into docs
abhi-glitchhg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC this is the same as before but instead of writing these lines in the
.rst
file (as preferred), we're now generating it here and writing it in the table files.Could you explain what the difference is, and why it "works"?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right!
So there was no title/headings in the generated table rst files, that is why we were getting results like below.
(notice the
<no title>
)So to solve this, we needed to add the titles in the generated table files and not manually write them in
models.rst
.And the descriptions for the tables should be written after the headings. So there was no choice but to add the description in the generated table rst.
So, I have shifted the title and description of tables from models.rst to generated table rst files. Otherwise, there is no difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NicolasHug, any updates on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @abhi-glitchhg , sorry for the late reply
I'm a little uncomfortable with this solution because it makes our solution slightly more complex and somewhat hides the structure of the
models.rst
file, which now also depends on the auto-generation code inconf.py
. On top of that it's not really clear why this works while the our original solution doesn't.It feels like we're patching a limitation of sphinx's search by working around it, without addressing the actual core of the issue. Did we figure out why writing the title within the file makes the search render better?
BTW, the search still looks like this:
which is better because we have the title, but it still looks broken. Considering how much time we have spent on this already (especially you!), I wonder if it's worth continuing trying to fix this. It seems to me like a benign issue to begin with.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah maybe!
Agree! Closing this pr as it doesn't properly solve the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe someone with a good understanding of the sphinx theme could have a look at this!
maybe @ain-soph (sorry for shameless tagging, i really liked how you modified the theme for your project) If you have spare time ;-;