Hi limodou,
It seems that all which is needed to make "publish_string" in
mRestFileType.py work correctly is to change:
return publish_string(content, writer_name = 'html')
to
return publish_string(content, writer_name = 'html',
source_path=provideFileSourcePathincluding file )
EG
return publish_string(content, writer_name = 'html',
source_path=r'C:\Dev\twcb-doc\en\source\hs10.rst' )
Couldn't figure out how to get this, so I tested it by hard coding the
path to the file in question (i.e. the file containing an include
instruction).
Is this enough for you to change it?
Best regards
Werner