Le jeudi 23 mai 2019 10:20:56 UTC+2, François GUÉRIN a écrit :
>
> Hi, 
>
> I've some questions about package names and the sphinx-apidoc utility.
>
> I've a django project strictured like this:
>
>
> project/
>   src/
>     manage.py
>     utils/
>       __init__.py
>       models.py
>       ...
>     directory/
>       __init__.py
>       models.py
>       ...
>     account/
>       __init__.py
>       models.py
>       ...
>   docs/
>     source/
>       conf.py
>       index.rst
>     build/
>       html/
>
> I'ld like to to generate my docs rst files with sphinx-apidoc
> $ cd docs
> $ sphinx-apidoc --force --separate -o ./source ./src
>
> If I do that, ALL .rst generated files are prefixed with "src.", which is 
> not what I wish...
>
> Then I try another method:
>
> for app in "account utils directory"; do
>   cd  docs
>   sphinx-apidoc --force --separate -o ./source ../src/${app}
> done
>
> This work with all packages, but the *utils packages is not prefixed at 
> all* : rst files are named :
>
> models.rst (nit utils.models.rst)
>
> Have you any ideas ?
> Thanks for your help !
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/fbae0534-5c7f-4941-906a-53065edd59df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to