Re: [sphinx-users] Sphinx autodoc - Trim module name option

2020-11-25 Thread Daniel Scott
On Wed, Jul 1, 2020, 1:33 AM Han Lazarus wrote: > Hi there, > > I have tried using sphinx autodoc with Django projects. > Because of how users need to add settings / structure the path for the > Django project to be imported correctly, the directory to the path that is > inserted is just above al

Re: [sphinx-users] Sphinx autodoc - Trim module name option

2020-07-02 Thread Han Lazarus
Cool! I'll take a look at those test cases and try writing it into a PR! On Thu, Jul 2, 2020 at 11:00 AM Komiya Takeshi wrote: > Hi, > > Good challenge. It seems your patch is good enough. > > >I suspect the additional package is safer but I started out by trying to > understand where the module

Re: [sphinx-users] Sphinx autodoc - Trim module name option

2020-07-02 Thread Komiya Takeshi
Hi, Good challenge. It seems your patch is good enough. >I suspect the additional package is safer but I started out by trying to >understand where the module name is getting created in autodoc, and haven't >figured out how to access the module name from nodes yet. Pointers welcome. The `desc_

[sphinx-users] Sphinx autodoc - Trim module name option

2020-07-01 Thread Han Lazarus
Hi there, I have tried using sphinx autodoc with Django projects. Because of how users need to add settings / structure the path for the Django project to be imported correctly, the directory to the path that is inserted is just above all the project code. Then all generated documentation i