-
Notifications
You must be signed in to change notification settings - Fork 131
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
Issue with having ox-hugo installed on Spacemacs #82
Comments
Please see this example Org file: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/content-org/screenshot-subtree-export-example.org If the Org file is in It is the one I show in the first screenshot in the README. |
I've tried setting those variables at the top of my org file, but it still fails with the same error. |
Can you share your example file? Also try just running the examples in this repo: Clone this repo and run |
Ok :) . it's quite simple
|
Hmm.. the only thing that looks different is the use of ~ in paths. Once I get to a computer, I'll check if that's actually a problem, and if so, will fix that. In the meanwhile, 2 things:
|
Thanks! well this doesn't work either.
|
OK, did Also, please submit a detailed bug report as explained here: https://ox-hugo.scripter.co/doc/debug/ |
Also what command are you running to export? If you are doing subtree export ( What is the exact error? |
|
OK, that explains. You are not supposed to use that. I will make that function non-interactive. Use only one of the 3 export bindings here: https://ox-hugo.scripter.co/doc/usage/ See if that helps. If not, please report back. Also see my previous comment about subtree and file exports. |
oh, ok. hmm, but after I eval |
Let's see if your Org installation is in order. Please follow https://ox-hugo.scripter.co/doc/debug/ |
Also see if just plain |
and |
Hmm, that looks alright (though, did you manually copy stuff from your Messages buffer? If so, you were not supposed to do that.) You had to just M-x org-hugo-debug-info and paste here directly. If that's what you did, then something is different about your org setup.
|
Oh, ok. I'm not aware it copies to the clipboard :). Yeah, I think something is broken in spacemacs. Debug information for
|
org-hugo-default-section-directory | "post" |
org-hugo-use-code-for-kbd | nil |
org-hugo-preserve-filling | t |
org-hugo-delete-trailing-ws | t |
org-hugo-prefer-hyphen-in-tags | t |
org-hugo-allow-spaces-in-tags | t |
org-hugo-langs-no-descr-in-code-fences | nil |
org-hugo-auto-set-lastmod | nil |
org-hugo-front-matter-format | "toml" |
org-hugo-default-static-subdirectory-for-externals | "ox-hugo" |
org-hugo-external-file-extensions-allowed-for-copying | ("jpg" "jpeg" "tiff" "png" "svg" "pdf" "odt") |
org-hugo-front-matter-format | "toml" |
Doesn't that look better? :) I don't use Spacemacs. But looks like this is related: syl20bnr/spacemacs#6878 Do you want to try getting this to work for you, and report back? I can add it to the documentation for Spacemacs users. |
Yeah, it looks great! I'm trying to get it working. after I manually eval the |
I am now at my computer.. so can provide better help.
So even if the bindings do not show up in the exporter menu, you should be able to run above after doing (Sorry about earlier suggesting not to use M-x org-hugo-export-to-md; turns out that's what's called on doing So I exported this test case:
using +++
lastmod = 2017-09-28T09:44:06-04:00
weight = "auto"
draft = false
+++
## KV {#kv}
### WhiteDB {#whitedb}
test You should not need to manually eval |
So coming back to your issue at hand, I am not able to recreate this error:
|
That's weird. TBH I don't know when would emacs eval |
yes So try this from scratch (restart emacs if needed), and then:
Calling Well, if that didn't work then may be spacemacs changes how |
Even after I did |
I am now on gitter: https://gitter.im/KaushalModi/Lobby We can continue discussion there if you like. |
It only works if I manually eval those |
@amosbird I have submitted this PR syl20bnr/spacemacs#9705 on Spacemacs. Spacemacs makes things too complicated! The complicated |
@amosbird I was able to get (use-package ox-hugo
:ensure t ;Auto-install the package from Melpa
:after ox) to Verified to work on Spacemacs See https://ox-hugo.scripter.co/doc/usage/ (now updated with that). Update: Also add |
Hi, @kaushalmodi . Thank you for doing this. I'll try to figure out why it doesn't work in my local setup :) |
Hi, this project looks very promising. But I cannot find a way to set HUGO_BASE_DIR. The document only says
The text was updated successfully, but these errors were encountered: