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
Allow :ref:
role to be used with definitions and fields
#10781
Conversation
431f682
to
9aa6f43
Compare
9aa6f43
to
0c87eb8
Compare
@AA-Turner Do you think you might have chance to review this? |
Please add a CHANGES entry, I will review shortly. A |
Since these nodes have a natural title, there is no reason not to support the :ref: role.
0c87eb8
to
b78e342
Compare
Done. |
:ref:
role to be used with definitions and fields
Thanks! A |
I believe this patch triggers With 5.1.1 our docs built with no warnings: https://github.com/axboe/fio/actions/runs/3106980788/jobs/5034529793
We have Is there a work-around to eliminate the warnings? |
@vincentkfu please open a new issue with a minimal reproducer (ideally a single A |
I think the best solution would be to restructure your documentation to avoid defining duplicate labels. Even before this patch, you still had duplicate labels, there was just no warning. Potentially you could just suppress the warning, e.g. using the I don't know if it was intentional that Sphinx does not warn on duplicate labels without titles, or if that was just accidental. |
Sphinx prints warnings when it encounters duplicate labels. In HOWTO.rst are labels for int, irange, and bool. We include HOWTO.rst in both fio_doc.rst and fio_man.rst. Since labels must be unique across all files, Sphinx prints warnings for these labels. For an unknown reason, Sphinx previously did not issue warnings for the duplicate labels mentioned above until 5.2.0. But Sphinx 5.2.1 is now installed for the macOS 11 image in GitHub Actions. So now we see Sphinx warnings when building documentation in GitHub Actions. Our CI treats Sphinx warnings as test failures. So our macOS builds are marked as failures. Resolve this problem by eliminating the separate fio_man.rst file and just building the manpage from the largely equivalent fio_doc.rst. Successful build with 5.1.1: https://github.com/axboe/fio/actions/runs/3106980788/jobs/5034529793 Failed build with 5.2.1: https://github.com/axboe/fio/actions/runs/3129974184/jobs/5079696775 Link: sphinx-doc/sphinx#10781 Link: sphinx-doc/sphinx#10870 Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Sphinx prints warnings when it encounters duplicate labels. In HOWTO.rst are labels for int, irange, and bool. We include HOWTO.rst in both fio_doc.rst and fio_man.rst. Since labels must be unique across all files, Sphinx prints warnings for these labels. For an unknown reason, Sphinx previously did not issue warnings for the duplicate labels mentioned above until 5.2.0. But Sphinx 5.2.1 is now installed for the macOS 11 image in GitHub Actions. So now we see Sphinx warnings when building documentation in GitHub Actions. Our CI treats Sphinx warnings as test failures. So our macOS builds are marked as failures. Resolve this problem by eliminating the separate fio_man.rst file and just building the manpage from the largely equivalent fio_doc.rst. Successful build with 5.1.1: https://github.com/axboe/fio/actions/runs/3106980788/jobs/5034529793 Failed build with 5.2.1: https://github.com/axboe/fio/actions/runs/3129974184/jobs/5079696775 Link: sphinx-doc/sphinx#10781 Link: sphinx-doc/sphinx#10870 Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Feature or Bugfix
Purpose
Since these nodes have a natural title, there is no reason not to
support the :ref: role.