Closed shackra closed 10 years ago
changing some files names to their original name makes nothing.
Here is the Backtrace:
Debugger entered--Lisp error: (void-function nil)
nil(nil "2014-10-04" "Acerca de")
op/get-org-file-options("~/.op-tmp/" ("/home/jorge/Documentos/elblog.deshackra.com/about.org" "/home/jorge/Documentos/elblog.deshackra.com/entradas/new-post.org" "/home/jorge/Documentos/elblog.deshackra.com/index.org"))
#[(org-file) "\306!r \206\f\307!\211q\210\310\f\235\"\211@B\f\235\203.\311
A\312
@\313\"\"\210\235\2039\314!\210) \206A\315\n!\207" [org-file visiting file-buffer pub-root-dir upd-list attr-cell find-buffer-visiting find-file op/get-org-file-options op/publish-modified-file plist-get :pub-dir op/handle-deleted-file kill-buffer file-attr-list del-list] 6]("/home/jorge/Documentos/elblog.deshackra.com/about.org")
mapc(#[(org-file) "\306!r \206\f\307!\211q\210\310\f\235\"\211@B\f\235\203.\311
A\312
@\313\"\"\210\235\2039\314!\210) \206A\315\n!\207" [org-file visiting file-buffer pub-root-dir upd-list attr-cell find-buffer-visiting find-file op/get-org-file-options op/publish-modified-file plist-get :pub-dir op/handle-deleted-file kill-buffer file-attr-list del-list] 6] ("/home/jorge/Documentos/elblog.deshackra.com/about.org" "/home/jorge/Documentos/elblog.deshackra.com/entradas/new-post.org" "/home/jorge/Documentos/elblog.deshackra.com/index.org"))
op/publish-changes(("/home/jorge/Documentos/elblog.deshackra.com/about.org" "/home/jorge/Documentos/elblog.deshackra.com/entradas/new-post.org" "/home/jorge/Documentos/elblog.deshackra.com/index.org") (:update ("/home/jorge/Documentos/elblog.deshackra.com/about.org" "/home/jorge/Documentos/elblog.deshackra.com/entradas/new-post.org" "/home/jorge/Documentos/elblog.deshackra.com/index.org") :delete nil) "~/.op-tmp/")
op/do-publication(t nil nil t t)
call-interactively(op/do-publication record nil)
command-execute(op/do-publication record)
execute-extended-command(nil "op/do-publication")
call-interactively(execute-extended-command nil nil)
any help?
I am not the owner of org-page. But I have used it for a while. I think you can try below steps.
1) fork this repository and check out : https://github.com/kelvinh/kelvinh.github.com 2) change the op/repository-directory to kelvinh.github.com I found the op/category-config-alist is optional, you can remove it from your configuration. (setf op/repository-directory "/home/jorge/Documentos/elblog.deshackra.com" op/site-domain "http://elblog.deshackra.com/" op/site-main-title "El blog de Shackra" op/site-sub-title "«No seas tan abierto de mente o tu cerebro se caerá» ~G.K. Chesterton" )
3) try to publish kelvinh.github.com.
If it works, you can add your files to kelvinh.github.com then try again.
Hope this will help.
@standino that was a great idea, I never though that!
Sadly, I'm still having the same problem ;(
Debugger entered--Lisp error: (void-function nil)
nil(nil "2012-11-27" "关于")
op/get-org-file-options("/tmp/pub" ("/tmp/kelvinh.github.com/about.org" "/tmp/kelvinh.github.com/blog/0day-hack-stack-overflow.org" "/tmp/kelvinh.github.com/blog/2011-07.org" "/tmp/kelvinh.github.com/blog/C++-template-meta-programming.org" "/tmp/kelvinh.github.com/blog/a-meaningful-bicycle-day.org" "/tmp/kelvinh.github.com/blog/add-swap-on-archlinux.org" "/tmp/kelvinh.github.com/blog/ajax-struts2-ognl-error.org" "/tmp/kelvinh.github.com/blog/archlinux-fcitx.org" "/tmp/kelvinh.github.com/blog/batch-delayed-expansion.org" "/tmp/kelvinh.github.com/blog/batch-path-expansion.org" "/tmp/kelvinh.github.com/blog/bicycle.org" "/tmp/kelvinh.github.com/blog/boost-bind-illustrated.org" "/tmp/kelvinh.github.com/blog/c++-pointer-to-member-function.org" "/tmp/kelvinh.github.com/blog/cnblogs-groundbreaking.org" "/tmp/kelvinh.github.com/blog/compile-emacs-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/decrypt-ssl-using-fiddler-and-wireshark.org" "/tmp/kelvinh.github.com/blog/dynamic-proxy.org" "/tmp/kelvinh.github.com/blog/emacs image support on windows.org" "/tmp/kelvinh.github.com/blog/emacs-context-menu-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-home-path-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-scheme-configuration.org" "/tmp/kelvinh.github.com/blog/favourite-c++-snippet.org" "/tmp/kelvinh.github.com/blog/firefox-add-customized-search-engine.org" "/tmp/kelvinh.github.com/blog/firefox-session-page-plugin.org" "/tmp/kelvinh.github.com/blog/fix httpd ssl security issue.org" "/tmp/kelvinh.github.com/blog/fix-archlinux-on-mac-air.org" "/tmp/kelvinh.github.com/blog/graduated-after-one-year.org" "/tmp/kelvinh.github.com/blog/grub2-doc-translation.org" "/tmp/kelvinh.github.com/blog/hhkb.org" "/tmp/kelvinh.github.com/blog/how-to-abuse-a-c++-compiler.org" "/tmp/kelvinh.github.com/blog/install archlinux on mac.org" "/tmp/kelvinh.github.com/blog/install-video-driver-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/installshield-visit-database.org" "/tmp/kelvinh.github.com/blog/jquery-reset-input.org" "/tmp/kelvinh.github.com/blog/member-access-operator-overloading.org" "/tmp/kelvinh.github.com/blog/memory-leak-of-incomplete-type.org" "/tmp/kelvinh.github.com/blog/modify-dual-system-boot-sequence.org" "/tmp/kelvinh.github.com/blog/montecarlo-and-pi.org" "/tmp/kelvinh.github.com/blog/monty-hall-problem.org" "/tmp/kelvinh.github.com/blog/operator-new-and-delete.org" "/tmp/kelvinh.github.com/blog/org-page-growth.org" "/tmp/kelvinh.github.com/blog/python-system-space.org" "/tmp/kelvinh.github.com/blog/remove youku ads.org" "/tmp/kelvinh.github.com/blog/rip.org" "/tmp/kelvinh.github.com/blog/shell-recursively-process-directories.org" "/tmp/kelvinh.github.com/blog/solve-winform-cross-thread-error.org" "/tmp/kelvinh.github.com/blog/struts2-json-error.org" "/tmp/kelvinh.github.com/blog/swing-grouplayout.org" "/tmp/kelvinh.github.com/blog/things-i-admired.org" "/tmp/kelvinh.github.com/blog/unicode-macros.org" ...))
#[(org-file) "\306!r \206\f\307!\211q\210\310\f\235\"\211@B\f\235\203.\311
A\312
@\313\"\"\210\235\2039\314!\210) \206A\315\n!\207" [org-file visiting file-buffer pub-root-dir upd-list attr-cell find-buffer-visiting find-file op/get-org-file-options op/publish-modified-file plist-get :pub-dir op/handle-deleted-file kill-buffer file-attr-list del-list] 6]("/tmp/kelvinh.github.com/about.org")
mapc(#[(org-file) "\306!r \206\f\307!\211q\210\310\f\235\"\211@B\f\235\203.\311
A\312
@\313\"\"\210\235\2039\314!\210) \206A\315\n!\207" [org-file visiting file-buffer pub-root-dir upd-list attr-cell find-buffer-visiting find-file op/get-org-file-options op/publish-modified-file plist-get :pub-dir op/handle-deleted-file kill-buffer file-attr-list del-list] 6] ("/tmp/kelvinh.github.com/about.org" "/tmp/kelvinh.github.com/blog/0day-hack-stack-overflow.org" "/tmp/kelvinh.github.com/blog/2011-07.org" "/tmp/kelvinh.github.com/blog/C++-template-meta-programming.org" "/tmp/kelvinh.github.com/blog/a-meaningful-bicycle-day.org" "/tmp/kelvinh.github.com/blog/add-swap-on-archlinux.org" "/tmp/kelvinh.github.com/blog/ajax-struts2-ognl-error.org" "/tmp/kelvinh.github.com/blog/archlinux-fcitx.org" "/tmp/kelvinh.github.com/blog/batch-delayed-expansion.org" "/tmp/kelvinh.github.com/blog/batch-path-expansion.org" "/tmp/kelvinh.github.com/blog/bicycle.org" "/tmp/kelvinh.github.com/blog/boost-bind-illustrated.org" "/tmp/kelvinh.github.com/blog/c++-pointer-to-member-function.org" "/tmp/kelvinh.github.com/blog/cnblogs-groundbreaking.org" "/tmp/kelvinh.github.com/blog/compile-emacs-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/decrypt-ssl-using-fiddler-and-wireshark.org" "/tmp/kelvinh.github.com/blog/dynamic-proxy.org" "/tmp/kelvinh.github.com/blog/emacs image support on windows.org" "/tmp/kelvinh.github.com/blog/emacs-context-menu-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-home-path-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-scheme-configuration.org" "/tmp/kelvinh.github.com/blog/favourite-c++-snippet.org" "/tmp/kelvinh.github.com/blog/firefox-add-customized-search-engine.org" "/tmp/kelvinh.github.com/blog/firefox-session-page-plugin.org" "/tmp/kelvinh.github.com/blog/fix httpd ssl security issue.org" "/tmp/kelvinh.github.com/blog/fix-archlinux-on-mac-air.org" "/tmp/kelvinh.github.com/blog/graduated-after-one-year.org" "/tmp/kelvinh.github.com/blog/grub2-doc-translation.org" "/tmp/kelvinh.github.com/blog/hhkb.org" "/tmp/kelvinh.github.com/blog/how-to-abuse-a-c++-compiler.org" "/tmp/kelvinh.github.com/blog/install archlinux on mac.org" "/tmp/kelvinh.github.com/blog/install-video-driver-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/installshield-visit-database.org" "/tmp/kelvinh.github.com/blog/jquery-reset-input.org" "/tmp/kelvinh.github.com/blog/member-access-operator-overloading.org" "/tmp/kelvinh.github.com/blog/memory-leak-of-incomplete-type.org" "/tmp/kelvinh.github.com/blog/modify-dual-system-boot-sequence.org" "/tmp/kelvinh.github.com/blog/montecarlo-and-pi.org" "/tmp/kelvinh.github.com/blog/monty-hall-problem.org" "/tmp/kelvinh.github.com/blog/operator-new-and-delete.org" "/tmp/kelvinh.github.com/blog/org-page-growth.org" "/tmp/kelvinh.github.com/blog/python-system-space.org" "/tmp/kelvinh.github.com/blog/remove youku ads.org" "/tmp/kelvinh.github.com/blog/rip.org" "/tmp/kelvinh.github.com/blog/shell-recursively-process-directories.org" "/tmp/kelvinh.github.com/blog/solve-winform-cross-thread-error.org" "/tmp/kelvinh.github.com/blog/struts2-json-error.org" "/tmp/kelvinh.github.com/blog/swing-grouplayout.org" "/tmp/kelvinh.github.com/blog/things-i-admired.org" "/tmp/kelvinh.github.com/blog/unicode-macros.org" ...))
op/publish-changes(("/tmp/kelvinh.github.com/about.org" "/tmp/kelvinh.github.com/blog/0day-hack-stack-overflow.org" "/tmp/kelvinh.github.com/blog/2011-07.org" "/tmp/kelvinh.github.com/blog/C++-template-meta-programming.org" "/tmp/kelvinh.github.com/blog/a-meaningful-bicycle-day.org" "/tmp/kelvinh.github.com/blog/add-swap-on-archlinux.org" "/tmp/kelvinh.github.com/blog/ajax-struts2-ognl-error.org" "/tmp/kelvinh.github.com/blog/archlinux-fcitx.org" "/tmp/kelvinh.github.com/blog/batch-delayed-expansion.org" "/tmp/kelvinh.github.com/blog/batch-path-expansion.org" "/tmp/kelvinh.github.com/blog/bicycle.org" "/tmp/kelvinh.github.com/blog/boost-bind-illustrated.org" "/tmp/kelvinh.github.com/blog/c++-pointer-to-member-function.org" "/tmp/kelvinh.github.com/blog/cnblogs-groundbreaking.org" "/tmp/kelvinh.github.com/blog/compile-emacs-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/decrypt-ssl-using-fiddler-and-wireshark.org" "/tmp/kelvinh.github.com/blog/dynamic-proxy.org" "/tmp/kelvinh.github.com/blog/emacs image support on windows.org" "/tmp/kelvinh.github.com/blog/emacs-context-menu-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-home-path-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-scheme-configuration.org" "/tmp/kelvinh.github.com/blog/favourite-c++-snippet.org" "/tmp/kelvinh.github.com/blog/firefox-add-customized-search-engine.org" "/tmp/kelvinh.github.com/blog/firefox-session-page-plugin.org" "/tmp/kelvinh.github.com/blog/fix httpd ssl security issue.org" "/tmp/kelvinh.github.com/blog/fix-archlinux-on-mac-air.org" "/tmp/kelvinh.github.com/blog/graduated-after-one-year.org" "/tmp/kelvinh.github.com/blog/grub2-doc-translation.org" "/tmp/kelvinh.github.com/blog/hhkb.org" "/tmp/kelvinh.github.com/blog/how-to-abuse-a-c++-compiler.org" "/tmp/kelvinh.github.com/blog/install archlinux on mac.org" "/tmp/kelvinh.github.com/blog/install-video-driver-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/installshield-visit-database.org" "/tmp/kelvinh.github.com/blog/jquery-reset-input.org" "/tmp/kelvinh.github.com/blog/member-access-operator-overloading.org" "/tmp/kelvinh.github.com/blog/memory-leak-of-incomplete-type.org" "/tmp/kelvinh.github.com/blog/modify-dual-system-boot-sequence.org" "/tmp/kelvinh.github.com/blog/montecarlo-and-pi.org" "/tmp/kelvinh.github.com/blog/monty-hall-problem.org" "/tmp/kelvinh.github.com/blog/operator-new-and-delete.org" "/tmp/kelvinh.github.com/blog/org-page-growth.org" "/tmp/kelvinh.github.com/blog/python-system-space.org" "/tmp/kelvinh.github.com/blog/remove youku ads.org" "/tmp/kelvinh.github.com/blog/rip.org" "/tmp/kelvinh.github.com/blog/shell-recursively-process-directories.org" "/tmp/kelvinh.github.com/blog/solve-winform-cross-thread-error.org" "/tmp/kelvinh.github.com/blog/struts2-json-error.org" "/tmp/kelvinh.github.com/blog/swing-grouplayout.org" "/tmp/kelvinh.github.com/blog/things-i-admired.org" "/tmp/kelvinh.github.com/blog/unicode-macros.org" ...) (:update ("/tmp/kelvinh.github.com/about.org" "/tmp/kelvinh.github.com/blog/0day-hack-stack-overflow.org" "/tmp/kelvinh.github.com/blog/2011-07.org" "/tmp/kelvinh.github.com/blog/C++-template-meta-programming.org" "/tmp/kelvinh.github.com/blog/a-meaningful-bicycle-day.org" "/tmp/kelvinh.github.com/blog/add-swap-on-archlinux.org" "/tmp/kelvinh.github.com/blog/ajax-struts2-ognl-error.org" "/tmp/kelvinh.github.com/blog/archlinux-fcitx.org" "/tmp/kelvinh.github.com/blog/batch-delayed-expansion.org" "/tmp/kelvinh.github.com/blog/batch-path-expansion.org" "/tmp/kelvinh.github.com/blog/bicycle.org" "/tmp/kelvinh.github.com/blog/boost-bind-illustrated.org" "/tmp/kelvinh.github.com/blog/c++-pointer-to-member-function.org" "/tmp/kelvinh.github.com/blog/cnblogs-groundbreaking.org" "/tmp/kelvinh.github.com/blog/compile-emacs-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/decrypt-ssl-using-fiddler-and-wireshark.org" "/tmp/kelvinh.github.com/blog/dynamic-proxy.org" "/tmp/kelvinh.github.com/blog/emacs image support on windows.org" "/tmp/kelvinh.github.com/blog/emacs-context-menu-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-home-path-on-windows.org" "/tmp/kelvinh.github.com/blog/emacs-scheme-configuration.org" "/tmp/kelvinh.github.com/blog/favourite-c++-snippet.org" "/tmp/kelvinh.github.com/blog/firefox-add-customized-search-engine.org" "/tmp/kelvinh.github.com/blog/firefox-session-page-plugin.org" "/tmp/kelvinh.github.com/blog/fix httpd ssl security issue.org" "/tmp/kelvinh.github.com/blog/fix-archlinux-on-mac-air.org" "/tmp/kelvinh.github.com/blog/graduated-after-one-year.org" "/tmp/kelvinh.github.com/blog/grub2-doc-translation.org" "/tmp/kelvinh.github.com/blog/hhkb.org" "/tmp/kelvinh.github.com/blog/how-to-abuse-a-c++-compiler.org" "/tmp/kelvinh.github.com/blog/install archlinux on mac.org" "/tmp/kelvinh.github.com/blog/install-video-driver-on-ubuntu.org" "/tmp/kelvinh.github.com/blog/installshield-visit-database.org" "/tmp/kelvinh.github.com/blog/jquery-reset-input.org" "/tmp/kelvinh.github.com/blog/member-access-operator-overloading.org" "/tmp/kelvinh.github.com/blog/memory-leak-of-incomplete-type.org" "/tmp/kelvinh.github.com/blog/modify-dual-system-boot-sequence.org" "/tmp/kelvinh.github.com/blog/montecarlo-and-pi.org" "/tmp/kelvinh.github.com/blog/monty-hall-problem.org" "/tmp/kelvinh.github.com/blog/operator-new-and-delete.org" "/tmp/kelvinh.github.com/blog/org-page-growth.org" "/tmp/kelvinh.github.com/blog/python-system-space.org" "/tmp/kelvinh.github.com/blog/remove youku ads.org" "/tmp/kelvinh.github.com/blog/rip.org" "/tmp/kelvinh.github.com/blog/shell-recursively-process-directories.org" "/tmp/kelvinh.github.com/blog/solve-winform-cross-thread-error.org" "/tmp/kelvinh.github.com/blog/struts2-json-error.org" "/tmp/kelvinh.github.com/blog/swing-grouplayout.org" "/tmp/kelvinh.github.com/blog/things-i-admired.org" "/tmp/kelvinh.github.com/blog/unicode-macros.org" ...) :delete nil) "/tmp/pub")
op/do-publication(t nil "/tmp/pub" nil nil)
call-interactively(op/do-publication record nil)
command-execute(op/do-publication record)
execute-extended-command(nil "op/do-publication")
call-interactively(execute-extended-command nil nil)
I better use another elisp library for this task...
@shackra sorry for the late response, we are now on a long holiday in China.
I cloned and debugged your blog, found that it is because the name in op/category-config-alist
, the following configuration will work:
(setf op/repository-directory "/home/jorge/Documentos/elblog.deshackra.com"
op/site-domain "http://elblog.deshackra.com/"
op/site-main-title "El blog de Shackra"
op/site-sub-title "«No seas tan abierto de mente o tu cerebro se caerá» ~G.K. Chesterton"
op/category-config-alist '(("blog" ;; <=======
:show-meta t
:show-comment: t
:uri-generator op/generate-uri
:uri-template "/entrada/%y/%m/%d/%t/"
:sort-by :date
:category-index t)
("index" ;; <=======
:show-meta nil
:show-comment nil
:uri-generator op/generate-uri
:uri-template "/"
:sort-by :date
:category-index nil)
("about" ;; <=======
:show-meta nil
:show-comment nil
:uri-generator op/generate-uri
:uri-template "/about/" ;; <=======
:sort-by :date
:category-index nil)
)
)
@kelvinh !!! I was sooooo worried you didn't reply! thanks, thank you very much!
I was looking to castilianize my blog, so I though that translating those names on op/category-config-alist
. But, for what op/category-config-alist
is useful? (there is not documentation about this variable!). Is there another way to translate those links names (I guess they have something to do with the links on the generated blog)?
In the mean time, I will delete my re-definition of op/category-config-alist
. And again, Thank you!
It works! :D http://shackra.bitbucket.org/
@shackra
op/category-config-alist
is designed for those people who want to customize their blog totally, but the default configuration is enough if you do not have special requirements.:uri-template
property you defined in the variable.I see, I see. This mean that we have hard coded categories in org-page? How can I define my own categories without messing with org-page?
Yeah, "about" and "index" are hard-coded by default, and other categories are decided by sub-directory names in op/repository-directory
. I noticed there is a sub-directory "entradas" in your repo, so there will be a category "entradas".
I have visited your blog, and noticed there are two hard-coded link issues, I am trying to fix them as org-page was designed for English only originally. :-)
Yes, I actually had problems trying to get rid of that category "entradas" since it means the same as "blog", I have noticed that even if you delete the index.html file, org-page do not regenerate it, even if you select to regenerate all files. I resolved this by deleting my repository and making it again.
The github link was resolved changing the configuration, but it should be nil
by default and shouldn't appear in index.html in such case!
closing!
I'm trying to migrate my static blog generated with Pelican to org-page. I have this setup:
Here is my blog's repository on Bitbucket: https://bitbucket.org/shackra/shackra.bitbucket.org/src
This gets printed in the Message buffer when running the
op/do-publication
command:And I'm not able to generate my blog.
Am I breaking something? Does org-page expects to find certain things in English?