[Neuroimaging] Website Update

Ben Cipollini bcipolli at ucsd.edu
Sat Aug 22 19:59:05 CEST 2015

OK, I see the problem.

Our static files are served relative to the base directory, which is a
_config.yaml setting (overridable from the command-line).

If we set baseurl = "", then static files are referenced as relative URLs.
This works for pages served from the base directory (css/bootstrap.css
served from home.html will work), but needs a relative path change
(../css/bootstrap.css served for somedir/somefile.html).

If we set base_directory to "/", then everything works locally, because the
root url (/) points to the home directory of the webpage. It doesn't work
on circle.ci, because the root url does NOT point to the home directory of
the webpage (of course not; it points to circle.ci).

Now that I understand the problem, I'll look at the best way to do this.
Could simply be overriding baseurl to the proper thing in circle.ci (not
blank, but some deep path on the website), or embedding the proper relative
paths in the html when generating the pages.


On Sat, Aug 22, 2015 at 10:32 AM, Ben Cipollini <bcipolli at ucsd.edu> wrote:

> I'm trying to install Jekyll now, and will see if I can reproduce the
> problem. If so, I may have a few mins today to think about a solution.
> Vanessa, do you have a sense of why this is happening? Is the problem
> finding a solution to a problem you understand well, or is the problem
> investigating why this is happening to start with?
> Thanks!
> Ben
> On Fri, Aug 21, 2015 at 10:01 AM, vanessa sochat <vsochat at stanford.edu>
> wrote:
>> Hi Matthew,
>> I'm on board with Stefan's suggestion, I just stick to Poldracklab work
>> during the week and haven't done any new nipy site work. As I mentioned
>> earlier, I was hoping for some help with a more elegant solution to resolve
>> the current base url issue (please see my previous messages).  If there
>> aren't any ideas, I will likely implement a very un-elegant / harder to
>> change solution, just to get something working, and only after that does it
>> make sense to give a go at github pages deployment.
>> Best,
>> Vanessa
>> On Fri, Aug 21, 2015 at 9:55 AM, Matthew Brett <matthew.brett at gmail.com>
>> wrote:
>>> Hi Vanessa,
>>> Thanks again for doing this.
>>> Have you got a github-pages build of this somewhere?  Sorry if I
>>> missed it.  I tried building locally, but I'm not confident that I'm
>>> getting what you expect to see.
>>> It would be good to have the mission statement somewhere, if y'all agree.
>>> Do you have any thoughts on Stefan's suggestion?
>>> Cheers,
>>> Matthew
>>> _______________________________________________
>>> Neuroimaging mailing list
>>> Neuroimaging at python.org
>>> https://mail.python.org/mailman/listinfo/neuroimaging
>> --
>> Vanessa Villamia Sochat
>> Stanford University
>> (603) 321-0676
>> _______________________________________________
>> Neuroimaging mailing list
>> Neuroimaging at python.org
>> https://mail.python.org/mailman/listinfo/neuroimaging
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20150822/73855102/attachment.html>

More information about the Neuroimaging mailing list