Closed kiwichris closed 7 years ago
Old issue, but just getting around to these.
Technically speaking, the href
you have there is pointing to a resource, which is why it doesn't quite work for you.
I'd suggest two options:
href="#document-preface"
instead of href="index.html#document-preface"
perl -pe 's/href="index.html#/href="#/g' -i c_user.html
(make sure to backup first, I've given it a quick test, but it's not 💯 guarenteed!).
I have a sphinx generated single html file I am wanting to inline to a single html file. The document is called c_user (C User Manual) so if I:
I assumed I could rename the output given I am redirecting it to a file. Would having links as:
href="#document-preface"
Solve this?
I would prefer having:
x.html y.html
rather than:
x/index.html y/index.html
Thanks Chris