You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by Dave <sn...@gmail.com> on 2014/03/08 17:04:06 UTC

Adding pages to the Usergrid website

Hi Tim,

I'm getting setup to make some changes to the wonderful website that you
(and others) put together. I followed the instructions to build the
web-site locally, which are here:

    http://svn.apache.org/repos/asf/incubator/usergrid/site/README.md

I was able to run the site locally via the run.sh command.

Next, I tried to add my new page. I added a new Markdown page at
content/docs/contribute-code.md and a reference to it in
layouts/default.html. When I view site, I see my reference to my new page
but when I click on the link I get a 404 error.

Odd thing is, this URL gives a 404:

    http://0.0.0.0:3000/docs/contribute-code

But this URL works:

    http://0.0.0.0:3000/docs/contribute-code/index.html

Any idea what I might be doing wrong and why Webrick is not serving up my
index.html page?

Thanks,
- Dave

Re: Adding pages to the Usergrid website

Posted by Dave <sn...@gmail.com>.
Thanks Tim. I finally figured that out yesterday and forgot to mention it
here.

- Dave



On Mon, Mar 17, 2014 at 9:34 PM, tim.anglade@gmail.com <
tim.anglade@gmail.com> wrote:

> So I know you got through this Dave but for others finding this thread I
> think the thing you were missing there was to keep a / at the end of your
> URLs while testing. The built-in web server in nanoc doesn't automatically
> alias http://0.0.0.0:3000/docs/contribute-code to
> http://0.0.0.0:3000/docs/contribute-code/. In production the Apache web
> server correctly aliases stuff like
> https://usergrid.incubator.apache.org/docs/contribute-code to the proper
> route via a 301 redirect.
>
>
>
> On Sat, Mar 8, 2014 at 8:04 AM, Dave <sn...@gmail.com> wrote:
>
>> Hi Tim,
>>
>> I'm getting setup to make some changes to the wonderful website that you
>> (and others) put together. I followed the instructions to build the
>> web-site locally, which are here:
>>
>>     http://svn.apache.org/repos/asf/incubator/usergrid/site/README.md
>>
>> I was able to run the site locally via the run.sh command.
>>
>> Next, I tried to add my new page. I added a new Markdown page at
>> content/docs/contribute-code.md and a reference to it in
>> layouts/default.html. When I view site, I see my reference to my new page
>> but when I click on the link I get a 404 error.
>>
>> Odd thing is, this URL gives a 404:
>>
>>     http://0.0.0.0:3000/docs/contribute-code
>>
>> But this URL works:
>>
>>     http://0.0.0.0:3000/docs/contribute-code/index.html
>>
>> Any idea what I might be doing wrong and why Webrick is not serving up my
>> index.html page?
>>
>> Thanks,
>> - Dave
>>
>
>

Re: Adding pages to the Usergrid website

Posted by "tim.anglade@gmail.com" <ti...@gmail.com>.
So I know you got through this Dave but for others finding this thread I
think the thing you were missing there was to keep a / at the end of your
URLs while testing. The built-in web server in nanoc doesn't automatically
alias http://0.0.0.0:3000/docs/contribute-code to
http://0.0.0.0:3000/docs/contribute-code/. In production the Apache web
server correctly aliases stuff like
https://usergrid.incubator.apache.org/docs/contribute-code to the proper
route via a 301 redirect.


On Sat, Mar 8, 2014 at 8:04 AM, Dave <sn...@gmail.com> wrote:

> Hi Tim,
>
> I'm getting setup to make some changes to the wonderful website that you
> (and others) put together. I followed the instructions to build the
> web-site locally, which are here:
>
>     http://svn.apache.org/repos/asf/incubator/usergrid/site/README.md
>
> I was able to run the site locally via the run.sh command.
>
> Next, I tried to add my new page. I added a new Markdown page at
> content/docs/contribute-code.md and a reference to it in
> layouts/default.html. When I view site, I see my reference to my new page
> but when I click on the link I get a 404 error.
>
> Odd thing is, this URL gives a 404:
>
>     http://0.0.0.0:3000/docs/contribute-code
>
> But this URL works:
>
>     http://0.0.0.0:3000/docs/contribute-code/index.html
>
> Any idea what I might be doing wrong and why Webrick is not serving up my
> index.html page?
>
> Thanks,
> - Dave
>