Closed Zileus closed 12 years ago
The style should be copied automaticatly. Which version are you using?
As I can see, I use this version for o-blog:
Do not export TOC. Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
commit 1ba0d1e69f118b8edbc33a6aec590448bf310f37 1 parent c5cdb7f063 Sébastien Gross authored 5 days ago
For org-mode, its laste committed version on github..
Regards
Can you please patch o-blog.el
with:
@@ -325,6 +325,10 @@ defined, or interactivelly called with `prefix-arg'.
(ob-write-index)
(let ((syncf (if (functionp 'dired-do-sync)
'dired-do-sync 'copy-directory)))
+ (message "Running %s \"%s/%s\" \"%s\""
+ syncf (ob:blog-template-dir BLOG)
+ (ob:blog-style-dir BLOG)
+ (ob:blog-publish-dir BLOG))
(funcall syncf (format "%s/%s"
(ob:blog-template-dir BLOG)
(ob:blog-style-dir BLOG))
and eval-defun
once it's patched.
Now you should have in the *Messages*
buffer:
Running dired-do-sync "/path/to/o-blog/templates/style" "out"
if you have dired-sync (https://github.com/renard/dired-sync) installed
Or
Running copy-directory "/path/to/o-blog/templates/style" "out"
otherwise.
OK I have this in my Message buffer :
Running copy-directory "/path/to/o-blog/templates/style" "out"
But maybe it souhle be "out/style" as the second parameter? Or maybe the solution is to remove "./style/" in all path for style scripts?
Regards!
Strange.
Try with
(message "Running %s \"%s/%s\" \"%s\" (%s)"
syncf (ob:blog-template-dir BLOG)
(ob:blog-style-dir BLOG)
(ob:blog-publish-dir BLOG)
default-directory)
that's it! From "Message" buffer
Running copy-directory "/home/basile/.emacs.d/o-blog/templates/style" "out" (/home/basile/.emacs.d/o-blog/example/)
I will try also dired-sync if it's needed.....
yep you should then got the style directory in
/home/basile/.emacs.d/o-blog/example/out
.
the "style" directory is not copied the directories "bootstrap", "Font-Awesome", "js" , "less" are copied in the "out" directory
your html files need this directory hierarchy: /out/ +-/style/ +-/bootsrap +-/Font-Awesome +-/less +-/js
Here I have this /out/ +-/bootsrap +-/Font-Awesome +-/less +-/js
In the generated html file all javascript are described script src=".*/style/js/less-1.2.2.min.js*" type="text/javascript
The Elisp code copy what the "style" directory contains not the directory "style" itself...
Regards,
Basile
The site hierarchy is:
/out/
+-/style/
+-/bootstrap
+-/Font-Awesome
+-/less
+-/js
+- HTML FILES
I don't understand why you do have stars un javascript paths.
Have you try the debug like described: http://renard.github.com/o-blog/bug-report.html ?
Regards
Ho sorry I put some Github Flavored Markdown in the path to make the path in bold format.... anyway, I run the bug-report but everything was alright, as you say it:
If anything runs fine emacs would exit normally.
I will try the direc-sync if you want but I will prefer not to use it...
Personnaly I think the problem comes from commit ff60680 .... I think we should revert those modifications, don't you?
The reason of this commit is to use dired-do-sync
(then use rsync
) to save time when copying the style directory.
If dired-do-sync
is not found, then a classical copy-directory
is used.
I am very surprised by the behavior on your configuration.
Try to make sure /home/basile/.emacs.d/o-blog/example/out
exists and is empty.
Then run
(let ((default-directory "/home/basile/.emacs.d/o-blog/example/"))
(copy-directory "/home/basile/.emacs.d/o-blog/templates/style" "out"))
And see if the style
directory is fully copied into the out
one.
I think I will copy the style directory the first time i use O-Blog... simpliest and less time consuming! Anyway thanks for your help!
Anyway you can use o-blog-after-publish-hook
to copy the files.
HI,
Do I forgot somenthing if I need to copy the directory "style" manually after publishing the blog from the sampl.org file?
Thanks!
Basile