kernc
kernc
An even better idea is to provide a basic set of easily overridable colors in [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) (e.g. in _pdoc/templates/colors.css_) like it's currently for highlighting color: https://github.com/pdoc3/pdoc/blob/cd84fb3b0c512a203742cfdfaa26ba6fb0e535aa/pdoc/templates/css.mako#L6-L8 https://github.com/pdoc3/pdoc/blob/cd84fb3b0c512a203742cfdfaa26ba6fb0e535aa/pdoc/templates/css.mako#L184-L186
@xcodz-dot it's not available yet. There's just [the idea](https://github.com/pdoc3/pdoc/issues/152#issuecomment-677903920) to separate colors hard-coded all over _css.mako_ into another file _colors.css_ (or maybe _theme.css_), with CSS variables defined on the _:root_...
[`pdoc.test.example_pkg`](https://pdoc3.github.io/pdoc/doc/pdoc/test/example_pkg/#pdoc.test.example_pkg.reST_directives) tries out some features, including admonitions. > i will also submit a PR for seperate `css.mako` with commandline option changes for selecting I'd rather first have a solid mechanism...
@jappi00 It's likewise not as grave as you're having it. See https://github.com/pdoc3/pdoc/issues/310. :sweat_smile: @xcodz-dot I'm not a huge fan of populous CLI switches that sooner or later nobody has proper...
Indeed, plugin support would be a heavy and questionably-worthwhile undertaking. At this stage still, extracting CSS colors into a separate overridable _colors.css_, [as above](https://github.com/pdoc3/pdoc/issues/152#issuecomment-785275318), seems the most reasonable course of...
It's non-amendable as nobody needed/proposed it yet. Seems reasonable. I think template tunables would allow for greater configurability (e.g. extension configs). A PR would be much appreciated. :+1:
Great! Sorry, I meant [config.mako](https://github.com/pdoc3/pdoc/blob/master/pdoc/templates/config.mako) template, which is consulted before rendering the real html/text/pdf templates. > users can also choose to leave out extensions, or are there any extensions that...
> exactly where the patterns for LaTeX maths are also registered. https://github.com/pdoc3/pdoc/blob/1709915249cdbdf9d79f08628a1ff08190678adf/pdoc/templates/html.mako#L17-L18 I must say, this looks one hella ugly piece of hack, sending values back and forth like insane....
https://github.com/pdoc3/pdoc/blob/2cce30a9b55eeeddc1ed826c8a2ada53777c3eea/pdoc/test/__init__.py#L546-L550 Would need to replace with another builtin/compiled module that contains methods (method descriptors). Some other errors are certainly not as clear. :confused: But the root cause is that our...
Since PR https://github.com/pdoc3/pdoc/pull/148, we parse signatures from builtins' docstrings, if available. https://github.com/pdoc3/pdoc/blob/bec63077a03b2136e6982825d327073ed76cc20a/pdoc/__init__.py#L1442-L1475 Do your built-in functions feature signatures like the example in https://github.com/pdoc3/pdoc/issues/237?