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
Copying HTML files to output without processing them #1046
Comments
Hi Marc! Very sorry for the delay in responding. Your question has been somewhat obsoleted by the release of Pelican 3.3, which removed As am aside, I've been using your Mac OS X tools for many, many years, so it's a pleasure to see your interest in Pelican. If there's anything further we do to assist, please don't hesitate to ask! 😺 |
Heh, small world, glad to hear my OS X packages were useful to you. Good to hear the new version has a new feature to handle this, I will try that. Many thanks! |
I just tried the STATIC_PATHS option, and while this does indeed no longer error out with directories, it seems to attempt to process the .html files in the directory, which I don't want:
|
Pelican supports HTML files as source input, along with Markdown, reST, and Asciidoc formats. I believe that particular error should be converted to a warning as of 35375b1, which was just merged and is not yet in a shipped release. But the larger question remains... Why do you have .html files in your source content? |
In my Am I using it wrong? |
As @wilbur-ma mentioned in #1157, try adding the following to your settings file:
|
That works, thanks! Perhaps as a feature request, it seems that this setting is global. It might be nice to be able to scope it to parts of the input tree, in case I ever want to have Pelican preprocess .html files in other parts of the source tree. Feel free to close this if you think such a feature would complicate matters too much. |
I can see how some folks might have a need for that. How do you think that might be implemented? And would that be something you would want to work on? |
Yes if I find some time and/or need this ability in the project I'm about to set up with Pelican, I'll try to add it. Perhaps by extending the system so it accepts an array or dictionary of source path match patterns and dictionaries as value for the |
Would setting |
I think I might have the same problem: http://stackoverflow.com/q/37104625/562769 - can anybody solve it? |
@MartinThoma move your |
@Scheirle I tried it and I got
|
@MartinThoma use Alternatively move all your articles in a sub folder and use |
This is solved by setting both I admit it's annoying, but at least this is no longer an issue. |
I'm sure this use case could be handled better, but there are at least avenues to achieve the desired result. Follow-up enhancements are of course welcome. |
Just ran into this issue. The fix in this thread worked, but I would think any static paths would be excluded (from pages and articles processing) by default. Being static and all. |
The documentation for FILES_TO_COPY says directories are allowed:
But when I try it, it errors out at that point:
The text was updated successfully, but these errors were encountered: