Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
642 views
in Technique[技术] by (71.8m points)

restructuredtext - Sphinx warning: "Duplicate substitution definition name" - where is the error?

When I build my Sphinx project I get a series of errors like this one -- three times:

content/swdocs.rsts:6: WARNING: Duplicate substitution definition name: "copy".

sdwocs.rsts contains common definitions. I include it in each ReStructuredText file in my doctree.

Many of the files in the doctree include additional RST files, but those files should not include swdocs.rsts, since they are effectively parts of a file that already includes it.

Something has gone wrong with this scheme -- presumably an included RST file that includes its own copy of swdocs.rsts -- but where? The message gives me no clue.

I've tried to find the error the hard way, by looking at every file where it could possibly be, and I've found nothing. Presumably something is wrong about my analysis of the problem, and it is hiding in some place or some form where it "could not possibly" be... but without a more informative message, I'm stuck.

How to get unstuck?

question from:https://stackoverflow.com/questions/65878326/sphinx-warning-duplicate-substitution-definition-name-where-is-the-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...