keras-team / keras-autodoc

Documentation autogeneration utilities.
Apache License 2.0
30 stars 22 forks source link

Fix support for variable-size indentation (e.g. 2-space indentation) #76

Closed fchollet closed 4 years ago

fchollet commented 4 years ago

I'm currently using keras-autodoc with tf.keras (2-space indented), but argument/attribute sections did not render properly. This fixes it.

gabrieldemarmiesse commented 4 years ago

Cool thanks a lot! Maybe we could have a minimal test?

Edit: I just saw your other message. I'll add tests if I find the time. I'm currently quite busy with TensorFlow Addons 😄

fchollet commented 4 years ago

In the end, I've decided to internalize my usage of keras-autodocs in a lightweight fork included in the keras-io codebase (<350 lines). The motivation being that:

So it was simpler to copy the part of the code we needed. Anyway, we can always refactor later.

gabrieldemarmiesse commented 4 years ago

Sure thing, that worked out pretty well, the website is great! :)