How do I integrate GitHub repositories into my lab's IDL content?

Using GitHub integration in a Lab Profile allows you to manage your lab content in a combination of markdown files, screenshots, and video files inside of a GitHub repository. GitHub has native support for multiple authors, revision control, offline editing, and more. Integrating a lab with GitHub will move all content management (including editing) for that lab into GitHub, and your lab will automatically be updated in LOD as you update your content in GitHub. At a minimum you will need a Markdown document, based on our template, in GitHub and, optionally, screenshots in a screens folder and videos in a videos folder. To get started you can either export the content from a current lab profile and import that into a GitHub repository, or you can create a new GitHub repository. Next you will need an existing Lab Profile with the checkbox Has IDL Content selected. Finally, to integrate a lab with the repository, follow these steps:

  1. Edit the Lab Profile and on the Cloud tab, click Configure GitHub Repository.
  2. The Configure GitHub Repository dialog with Login with GitHub link will open. Click Login with GitHub.
    1. If you are already logged into GitHub, you will be presented with a list of your repositories.
    2. If you are not logged in you will be prompted for your GitHub credentials and then presented with a list of your repositories.
    3. If you do not have an account, there is an option to create one; however, as mentioned earlier, you will need to load your markdown files into your repository before continuing with this process.
  3. Click Select next to the repository with the markdown file in it (if no markdown files are present in the repository, you will be prompted to select another).
    1. To preview a repository before selecting it, click on the name of the repository.
  4. Once selected, the repository will open and the .md files in it will be displayed. Click Select next to the .md file that will be used.
    1. To preview a .md before selecting it, click on the name of .md file.
  5. Click OK.
  6. Refresh your browser and then ensure Enabled is selected on the Cloud
  7. Click Save on the Lab Profile.

At this point the lab will be integrated with GitHub and the IDL content will import. If you have a valid email address set up in GitHub for notifications, you will receive an email notifying you of success or failure.

Once a lab is integrated with GitHub, if you are in LOD and want to change the lab content, you can click on the GitHub repository link on the Cloud tab. This will bring you to GitHub and the file. You can also change the lab content directly in GitHub without using the LOD UI. In either case, LOD will automatically synchronize any changes you make as they are committed into your GitHub repository. These changes will be immediately available to users who launch that lab, or upon refresh for users who already have the lab launched.

When a Lab Profile is integrated with GitHub, the IDL Studio options are disabled. If you remove the integration with GitHub, the IDL content will remain but is now treated as regular IDL content managed with the IDL Studio as described in our other documentation.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk