acrylamid
acrylamid copied to clipboard
acrylamid does NOT respect OUTPUT_DIR = './' with WWW_ROOT with subdirectory
I have
WWW_ROOT = 'http://xavimat.github.io/piblog/'
and
OUTPUT_DIR = './'
(see https://github.com/xavimat/piblog/blob/gh-pages/conf.py) but acrylamid make a subdirectory /piblog/ in which I have all the contents, so it does not respect the OUTPUT_DIR variable.
No, that's the intended behavior. This way you can preview on "localhost:8000/" and browse "piblog/" and see that the generated content works properly. If you set OUTPUT_DIR = "foo/"
and WWW_ROOT = 'example.tld/bar'
, you have to rsync foo/bar myserver:~/bar/
.
rsync? That's my situation: I have a directory with contents '/home/xan/foo'. I want to generate contents in 'foo' and upload contents to github to http://xavimat.github.io/piblog/. How can I do?
I think with OUTPUT_DIR = "piblog/"
~> pwd
/home/foo/work
~> acrylamid init .
...
~> git init .
~> git add piblog/
you are able to publish your blog to a subdirectory on github.
I just need that
env.netloc = 'http://xavimat.github.io/piblog/'
and
OUTPUT_DIR = './'
Can I set that and not touch WWW_ROOT (equals to 'localhost:8000' for seeing it locally)?
All I put in '/home/foo/work' will be in http://xavimat.github.io/piblog/ not in http://xavimat.github.io/
Jekyll has the same problem: https://github.com/mojombo/jekyll/issues/332
This could be circumvent using this receipt:
- ~> git submodule add -f -b gh-pages https://github.com/xavimat/piblog.git sortida/piblog/
- In conf.py put: OUTPUT_DIR = './sortida/' and WWW_ROOT = 'http://xavimat.github.io/piblog/'
- acrylamid co
- ~> git add -A
- ~> git commit -m "..."
- ~> git push -u origin master
- ~> cd sortida/piblog
- ~> git add -A
- ~> git commit -m ".."
- ~> git push -u origin gh-pages
Jekyll has the same problem: mojombo/jekyll#332
Now I understand the real issue with GH pages. The main issue is that you can not publish the site without knowing the actual path (and domain). I'll try to document your workaround/or write a quick howto on GH pages (without CNAME).
Thank a lot, posativ, good documentation implies good use, even better than good code ;-) I don't know if you could close this issue. At your opinion, could you improve acrolamyd for fix this issue or it's a "documentation bug"?
I'll leave this issue open, maybe there's a reasonable workaround.