<div dir="ltr">OK, I think this will work:<div><br></div><div>* set baseurl in _config.yml to the repo name (/nipy-jekyll), since github has no flexibility.</div><div>* locally, launch with --baseurl="/" (this is a semi-standard, from what I see while searching)</div><div>* for <a href="http://circle.ci">circle.ci</a>, write a small bash script that creates the <a href="http://circle.ci">circle.ci</a> base url from environment variables, and dumps it to a custom config.yml file. Then call that shell script from circle.yml, and launch Jekyll with that config file from circle.yml.</div><div><br></div><div>That should be pretty simple to set up in all cases, keep things very clean in the templates (just use the baseurl on all urls, as is currently done).</div><div><br></div><div>I'm heading out for the night, but may have time to try this in a branch later tonight or tomorrow.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 23, 2015 at 2:46 PM, Ben Cipollini <span dir="ltr"><<a href="mailto:bcipolli@ucsd.edu" target="_blank">bcipolli@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If it's just a matter of configuring a variable like the base url of the website, then I say no--no problem.<div><br></div><div>If we have to work around it by manipulating URLs in funky ways inside templates... then I say, probably.</div><div><br></div><div>I don't find this to be a Jekyll issue as much as how the different publishing sources expose Jekyll config. If they simply set the baseurl properly for ya, this would all be so simple! That's exactly what that config variable is there for... and Vanessa's using it quite properly in all the template code.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Ben</div><div><br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 23, 2015 at 2:43 PM, Matthew Brett <span dir="ltr"><<a href="mailto:matthew.brett@gmail.com" target="_blank">matthew.brett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span><br>
On Sun, Aug 23, 2015 at 10:40 PM, Ben Cipollini <<a href="mailto:bcipolli@ucsd.edu" target="_blank">bcipolli@ucsd.edu</a>> wrote:<br>
> Hi Vanessa,<br>
><br>
> Another solution is simply to send Jekyll the proper baseurl in all cases.<br>
> In my eyes, that's the simplest and intended solution. I just can't<br>
> understand why it's so hard to do easily, or at all.<br>
><br>
> The relative paths thing is another solution, but I feel that's a<br>
> workaround--Jekyll has the baseurl defined and configurable, it's clearly<br>
> part of the software design.<br>
><br>
> Hope we find an elegant solution soon :)<br>
> Ben<br>
<br>
</span>Forgive my anxiety, but this conversation worries me.  It seems to me,<br>
that if we are having to do some serious custom configuration to make<br>
a jekyll site work, it goes rather a long way to defeating the purpose<br>
of jekyll as compared to - say - sphinx - in that it makes the site<br>
more difficult and fragile to maintain.   Is that worry reasonable do<br>
you think?<br>
<div><div><br>
Cheers,<br>
<br>
Matthew<br>
_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>