Skip to content
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

Page build fails but requires URL changes to pass #66

Closed
clemsos opened this issue Jan 2, 2017 · 4 comments
Closed

Page build fails but requires URL changes to pass #66

clemsos opened this issue Jan 2, 2017 · 4 comments

Comments

@clemsos
Copy link
Member

clemsos commented Jan 2, 2017

I just added new palmyra as a sponsor of the book but the site won't rebuild (see this commit b0ad5dc ).

Github has upgraded to Jekyll 3 since we made this website which does not support colon in URLs. When I try to build on my local install with the gh-pages I got this error

 Incremental build: disabled. Enable with --incremental
      Generating... 
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    The URL /book/opening:freedom/costs-of-openness/ is invalid because it contains a colon.

Changing the folder name will lead to dead linking, so I am not sure how to update this.
Ideas anyone ?
(and happy new year =)

@christopheradams
Copy link
Collaborator

There is a jekyll redirect plugin supported by Github pages.

I also recommend developing with the github-pages gem (using Bundler) rather than plain Jekyll so you get consistent builds locally and on GitHub.

@mlinksva
Copy link
Collaborator

mlinksva commented Jan 2, 2017

I've not tested but possible workaround in jekyll/jekyll#5284 (comment)

@clemsos
Copy link
Member Author

clemsos commented Jan 3, 2017

Thanks @mlinksva ! it works

@christopheradams yep, and also need to update my ghpages gem has I didn't update for last 6 months and versions have changed now

@mlinksva
Copy link
Collaborator

mlinksva commented Jan 3, 2017

The included https://rubygems.org/gems/jekyll-redirect-from only works if destination is on same site (from not to).

09c0447#diff-8b7db4d5cc4b8f6dc8feb7030baa2478 should make you update your pages gem if it is out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants