-
Notifications
You must be signed in to change notification settings - Fork 28
Enable Interlinks #161
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
Enable Interlinks #161
Conversation
|
|
|
@hamelsmu sorry for creating a merge conflict 😓. griffe now exposes |
|
@machow These pre-commit hooks are not smooth at all and really slow down development. I'm not sure it is the right approach and is very heavy handed. When I'm iterating on the pre-commit hooks themselves you have to do something like |
I have had great experience with ruff. It effectively replaces all of flake8, omitting the rules that clash with black. It is fast and it can fix many violations. |
I think rendering the parameter section as a table is convenient but it is not the best fit. As the parameter section contains definitions, it should map onto definition lists. In html, they become description lists. A minor inconvenience with this it that definitions lists are not part of any markdown flavor but are a pandoc extension and they must be enabled explicitly in the config file. i.e. And as html, they definitely require more css styling attention than tables but I think there is room for some good styling options. |
|
I've opened an issue specifically to track @has2k1 's point of rendering tables in a different style (description lists). This has come up a fair amount (e.g. from the shiny team), and is a bit different from the issue mentioned above (escaping inside a table; assuming you want it in table format). I want to streamline interlinks before conf, so can circle back and incorporate this PR into w/e is needed there! |
|
addresses #135 |
|
I think something weird happened with black formatting in this PR. AFAICT, baac169 applied black, but because |
|
I tweaked a bit, and tested on our docs and a bit on the ibis docs, and it seems to be working pretty well! |
Sorry this took so long, I was trying to figure out how to deal with the table rendering, as escaping things in tabulate can be quite hairy! To complicate things a bit further, when you define something with string
"foo | bar"that annotation element is of typestr, instead of typeexpressionso right now made a tradeoff that we can talk through.I also need to ask about how you want to go about tests on this. I see there are some tests already for interlinks, but it would be good to get a walk-through from you how you envision that working, since there is already some code there.