You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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.
The text was updated successfully, but these errors were encountered:
@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.
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
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:
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.
The text was updated successfully, but these errors were encountered: