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

Cannot use site.github namespace for local development #1

Open
aliuk2012 opened this issue May 4, 2015 · 3 comments
Open

Cannot use site.github namespace for local development #1

aliuk2012 opened this issue May 4, 2015 · 3 comments
Assignees

Comments

@aliuk2012
Copy link
Contributor

Having spoken to GitHub support team, there does not appear to be an easy way to use site.github namespace when developing locally.

There are some options to try implement it and make it easier to develope the frontend/layouts of the templates when developing locally:

  1. Use JavaScript to call GitHub API but I believe there is a limit on the number of requests that can be made. Also it would mean the user would have to have JavaScript enabled and does appear to be a good option.
  2. Create a secondary config file which we can call before building the pages. It would mean that we might have to push the changes to the Github to get the value we want to use and then we create it in config file.

I'm going to implement it as part of option 2. as it seems to be a the easiest way to be able to use site.github namespace in the templates.

@cadorn
Copy link
Member

cadorn commented May 4, 2015

@aliuk2012 Create the config script to run prior and I will look into making it generic so anyone can publish their own copy. I have the pieces to be able to do this lightweight just about done. They are simple to understand and get started with now.

@aliuk2012
Copy link
Contributor Author

Thanks @cadorn , will do. I've got it working and will be pushing some changes later this evening I have it working just by running bundle exec jekyll serve --config _config.yml,_config-dev.yml

with _config-dev.yml being the secondary config name that defines what site.github is. I was wondering about using ruby to generate this file but quickly found that the site.github namespace is not the same as the data returned from the usual GitHub API

@aliuk2012
Copy link
Contributor Author

Still need to grab the list of public repo, organisation members and contributors

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

No branches or pull requests

2 participants