-
Notifications
You must be signed in to change notification settings - Fork 28
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
autodoc feature mixes up descriptions #17
Comments
Hi @ostueker which version do you use ? |
Hi @stefraynaud, |
I've workaround it by putting documentation on extra, cleaner definitions, for example: !.. |c_esc| replace:: actual c_esc description...
! ...
character(len=1), parameter :: c_end = 'm', c_esc = achar(27)
character(len=2), parameter :: c_start = c_esc // '['
! ...
private :: c_end ! |c_end|
private :: c_esc ! |c_esc|
private :: c_start ! |c_start|
! ... |
Thank you Stephane, that commit seems to fix the issue. However I noticed that sphinx-fortran now needs sphinx >= 1.8 as with 1.7.5 (in my previous env) I got the following error:
But with Sphinx v1.8.2 it works. |
Oliver, can you check that it works for you now? |
Thank you, @stefraynaud ! It now works with both sphinx 1.7.5 and 1.8.2 (I haven't tried any other versions). |
I'm currently working on some instructional material on using Sphinx for Fortran projects and I noticed
that the autodoc feature mixes up the descriptions of parameters.
E.g. when I have the following Fortran code:
you can see here that the description of
nd
is just gone and the one ofrij
shows up next toj
.Code is at https://github.com/ostueker/Example_Fortran (file
src/sub_calc_distance.f90
).Any idea if maybe I am doing something wrong?
The text was updated successfully, but these errors were encountered: