This is an archive of the discontinued LLVM Phabricator instance.

[Flang][Docs] Fix warnings when building docs.
ClosedPublic

Authored by sameeranjoshi on Nov 9 2020, 8:36 PM.

Details

Summary

Following warning were seen with recommonmark(0.5.0) and sphinx(1.8.5).
parser.py:75: UserWarning: Container node skipped: type=document warn("Container node skipped: type={0}".format(mdnode.t))

The warnings are due to an issue in recommonmark's(a python package) older versions.
A better solution is to use the latest version of recommonmark(>=0.6.0) to avoid
these issue in the first place.
This patch fixes the warnings for older versions.

Diff Detail

Event Timeline

sameeranjoshi created this revision.Nov 9 2020, 8:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2020, 8:36 PM
Herald added a subscriber: arphaman. · View Herald Transcript
sameeranjoshi requested review of this revision.Nov 9 2020, 8:36 PM
jdoerfert added inline comments.Nov 9 2020, 8:52 PM
flang/docs/index.md
50

Was this intended?

sameeranjoshi added inline comments.Nov 9 2020, 8:53 PM
flang/docs/index.md
50

It was other warning which comes from toctree.
I fixed it with this patch.

sameeranjoshi marked an inline comment as done.Nov 9 2020, 9:08 PM
This revision is now accepted and ready to land.Nov 10 2020, 7:22 AM
This revision was landed with ongoing or failed builds.Nov 10 2020, 8:55 AM
This revision was automatically updated to reflect the committed changes.