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

Conversion from old system to new #37

Closed
dcroce opened this issue Oct 26, 2018 · 6 comments
Closed

Conversion from old system to new #37

dcroce opened this issue Oct 26, 2018 · 6 comments

Comments

@dcroce
Copy link

dcroce commented Oct 26, 2018

@choldgraf

As we were talking about, I'd like to do a conversion to the new textbook system. I'd guess it's similar to the previous system of forking and then merging with our current repository, but just wanted to check with you if there was anything else I should be aware of?

Thanks,
Dominic

@choldgraf
Copy link
Collaborator

yeah that's pretty much all the same. The only differences are:

  1. There are some different fields in _config.yml
  2. The table of contents is now only in _data/toc.yml instead of being in SUMMARY.md and being converted
  3. The book contents now live in contents/ rather than notebooks/
  4. The outputs now go to _build/ rather than _ch

Those are the main differences I can think of but in general the process should be the same

@dcroce
Copy link
Author

dcroce commented Oct 28, 2018

I did most of the merging in a personal repo to get things up to speed. I am running into an error when I try to make book as follows:

screen shot 2018-10-28 at 4 43 58 pm

Can you take a look? It seems like my toc.yml might be of the wrong format but I can't quite identify the error. The repo is here

@choldgraf
Copy link
Collaborator

Hmm - can you double check that the whitespace all lines up properly (e.g. all the words within a page have to start at the same indentation etc). It might be yaml formatting problem

@dcroce
Copy link
Author

dcroce commented Oct 29, 2018

It was a formatting issue. Thanks!

I am now getting the book to build, but when I make serve locally or try to host online the book does not show up as I am getting a 404 Site not found. Interestingly the local host forwards to the url I set the book to build to as opposed to a local host. Any ideas?

@choldgraf
Copy link
Collaborator

I bet it's because of the auto-forwarding of /. For some reason that plugin redirects you to the URL of the site instead of localhost. Can you try replacing the URL of the site with the localhost version?

@choldgraf
Copy link
Collaborator

I'm gonna close this one because I think that prob140/textbook#2 will resolve this problem...I'd love a pair of eyes on that PR if you've got a moment!

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

2 participants