-
Notifications
You must be signed in to change notification settings - Fork 446
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
Include directive broken #932
Comments
I am hesitant to "fix" this since it's an incompatible change in behaviour (plus, it means bad things happen when you chain includes). I may document it instead. |
Current |
Consider this usecase: I have bunch of blogposts in one VCS tracked directory and stories are stored in multiple VCS tracked directories. Within one directory I need to keep the |
Since sphinx and docutils don't work the same as each other, I can only improve that slightly. Also, compatibility to older versions of Nikola is sort of more important. I am sorry that I can't magically fix it for you straight away, but indeed I can't. |
Not sure what to do about this one. Maybe discuss it in the mailing list, I guess. |
@ralsina any resolution on this one? IMO just documenting our behavior should suffice; any changes will break tons of blogs… On a side note: does docutils have any sort of “if nikola/if sphinx” facility? |
@Kwpolska I think documenting is enough, yes. I don't understand the question, tho. |
pseudocode: .. if:: nikola
Nikola-specific reST goes here, like the include directive with site-root-relative paths
.. if:: sphinx
Sphinx-specific reST goes here, like the include directive with input-file-relative paths (very unlikely to be a thing) |
Actually, sphinx has such a thing. I could add it to Nikola :-) |
Hi,
docutils says that include directive argument is the path to the file to be included, relative to the document containing the directive.
http://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment
Currently include directives fail because nikola attempts to look up referenced files from the current working directory.
How to reproduce:
.. include:: foo.rst
nikola build
The text was updated successfully, but these errors were encountered: