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

how to view updated minimal edition? #37

Open
Nikhil-Ramachandran opened this issue Apr 22, 2017 · 8 comments
Open

how to view updated minimal edition? #37

Nikhil-Ramachandran opened this issue Apr 22, 2017 · 8 comments

Comments

@Nikhil-Ramachandran
Copy link
Contributor

After pushing into GR8975 a set of new markdown entry files, how do I update the minimal edition site with these added entries? I tried cloning GR8975-edition, and then copying _texts/ folder from GR8975 into GR8975-edition, but could not do so.

@tcatapano
Copy link
Member

@nikhil: this should work. However, are you running the xslt stylesheet on the xml file you have changed. That is what generates the markdown files which get written to the _texts directory. The md files in _texts should not be edited manually. They should only be created by the entry-to-md.xsl stylesheet.

If you want to experiment with manually editing the md files, go ahead and fork the repository. This will create a copy under your account. After forking, go to the settings and select 'master' for Source in the GitHub pages section. Once you do this you should be able to see your fork rendered by Jekyll at https://[your_account_name].github.io/GR8975-edition/

@tcatapano
Copy link
Member

If you do want to run the entry-to-md.xsl stylesheet on your xml files to generate new md files in _texts, do this after the files are generated:

rm [path_to_GR8975-edition]/_texts/*.md
cp [path to GR8975]/_texts/*.md [path_to_GR8975-edition]/_texts
cd [path_to_GR8975-edition]/
git pull [to make sure you are up to date with the origin]
git add .
git commit -m 'message'
git push origin master

@Nikhil-Ramachandran
Copy link
Contributor Author

@tcatapano I was trying to see how the minimal edition looked after I added more entries (all markdown-ed using the stylesheet; the only time I had to manually change something in a couple of .md files was when there was a merge conflict). Thanks for posting the above snippet. I copied _texts/ from GR8975/ to GR8975-edition/ and finally pushed to GR8975-edition/ in the github-repository. Only that in the last step, when I pushed, I got the following error message. Not sure how to interpret this:

"remote: Permission to cu-mkp/GR8975-edition.git denied to Nikhil-Ramachandran.
fatal: unable to access 'https://github.com/cu-mkp/GR8975-edition.git/': The requested URL returned error: 403"

@Nikhil-Ramachandran
Copy link
Contributor Author

Perhaps I didn't initialize GR8975-edition/ in my local repository? I cloned, but did not initialize...?

@tcatapano
Copy link
Member

@Nikhil-Ramachandran: I hadnt granted the class write permissions to GR8975-edition. You should be able to push now. But please be careful that you are not overwriting other people's files.

@Nikhil-Ramachandran
Copy link
Contributor Author

@tcatapano Terry, just to be sure that I don't overwrite, the only commands I will run to see modified instances of the minimal edition will be the above snippet of code that you posted. Please let me know if that would work.

@tcatapano
Copy link
Member

@Nikhil-Ramachandran if you've only changed your xml files and run the stylesheet on only those , then those will be the only updates you'll be pushing to the repo, so it should be fine.

@Nikhil-Ramachandran
Copy link
Contributor Author

@tcatapano: yup, will only be changing my xml files.

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