--
You received this message because you are subscribed to the Google Groups "codelab-authors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codelab-autho...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/codelab-authors/1393684c-5163-4e8b-a7f8-322b36956efco%40googlegroups.com.
TL:DR
I have been successful in repeating hosting individual codelabs on GitHub, but using the site page in the tools repo does not generate proper links for hosting on GitHub
I am trying to figure out where codelabUrl is defined so it can automatically add the “pages/gituser/repo” to the codelabs url for the site landing page.
Hello Zarin,
First, thank you for your tutorial, it was very helpful to get me up and running as well. As for your suggestions I have been able to accomplish the same type of setup, using my own site page to link directly to the code labs that are generated from claat.
However, the main issue I have run into is using the Codelab site generator and hosting that on github. Site page as from the tools repo for Codelabs.
https://github.com/googlecodelabs/tools/blob/master/site/README.md
Using gulp to create this site will automatically create the site page with tiles for my different code labs, however, this is not working properly due to linking issues.
Site page example I am referring to: https://codelabs.developers.google.com/
Interestingly enough it does serve fine when I use a local HTTP server but fails on GitHub. With help from Marc, I have been able to get it to work by manually updating the default index.html for the site and adding “pages/gituser/repo” to all href links. This will update the URL for the site page and load all the proper scripts. However, I still have to update each link in the generated index.html, found in the dist folder, for each code lab when it is generated.
I think the last step is to find where the codelabs URL is defined.
Note using:
gulp dist
--codelabs-dir=codelabs
--base-url=https://github.company.com/pages/user
--codelabs-namespace=/pages/user
Does not seem to make a change in the output.
Any insight would be helpful. Once I figure it out I will post what I did.
Thanks
Sean