Note: for company private content repos, please replace the https://github.com/sagelabs/content URL with your company’s private content repo URL.
- First, clone the content repo: https://github.com/sagelabs/content
- Now, install generator-enki which is a tool that renders an insight template for you quickly and easily.
- To install, navigate to https://github.com/enkidevs/generator-enki and follow the ReadMe.
git pull
to update the content repo’s latest changes before each session.
- Navigate to https://github.com/sagelabs/content
- Find the relevant topic and subtopic folder.
- Create files or edit existing files and make pull requests on a new branch directly on the GitHub content repo.
- Open the file you’d like to edit (either locally or on GitHub).
- Edit and make relevant changes
- Make a pull request on a new branch with your changes.
- A reviewer will review your PR and approve merge when ready.
All insights should follow the Insight Guidelines.
Locally:
- Navigate to the content repo on your local machine.
- Navigate to the subtopic folder where you want to create the insight.
- In Terminal, type
yo enki:insight
- Follow instructions in Terminal to create your insight template.
- The insight file will be created, you can now edit this file in your text editor.
- Make a pull request when you’ve finished creating the insight.
On GitHub/web (not recommended):
- Navigate to the content repo on GitHub
- Navigate to the subtopic where you want to create the insight
- Create a new file, using the insight title as the filename (replacing spaces with ‘-’), and
.md
for the extension (for example Creating An Insight For Enki’s file would be namedcreating-an-insight-for-enki.md
) - Copy the insight template (+Github Insight Template)
- Create your insight based on the insight template.
- Create your pull request on a new branch when you’ve finished.
Locally:
- Navigate to the content repo on your local machine.
- Navigate to the subtopic folder where you want to create the game.
- In Terminal, type
yo enki:insight
- Follow instructions in Terminal to create your game template.
- The game file will be created, you can now edit this file in your text editor.
- Make a pull request when you’ve finished creating the game.
On GitHub/web (not recommended):
- Navigate to the content repo on GitHub
- Navigate to the subtopic where you want to create the game
- Create a new file, using the insight title as the filename (replacing spaces with ‘-’), and
.md
for the extension (for example Creating A Game For Enki’s file would be namedcreating-a-game-for-enki.md
) - Copy the game template (+Game Templates)
- Create your game based on the game template.
- Create your pull request on a new branch when you’ve finished.
- When you’ve submit your insight or changed an insight, a bot will comment on your PR with links to preview your changes or newly created insight.
- You can test the visual of the insight, the revision questions, game, or any other element of the insight from these links.
- In addition, automated checks will validate the format of your insight below the comments.
- To review content changes or new content, view the open pull requests on the content repo.
- Check the preview links added by the enki-hq bot to preview the insights.
- If everything is okay, merge.
- Otherwise, edit the insight directly or leave comments on the pull request for the contributor.
- Images on Enki are supported only in SVG format
- Use the https://enkidevs.github.io/svgomg/ tool to upload your SVG
- Once uploaded, navigate to ‘Enki Image Code’:
- Paste the code displayed into your insight to insert your image.
- Preview the insight after submitting your pull request to check the image addition worked.
- Navigate to the root folder of the content repo.
- In Terminal, type
yo enki:topic
- Follow the instructions in Terminal to create your topic.
- Navigate to the Topic folder that your Subtopic belongs to.
- For example, if you are creating ‘React’ navigate to ‘Javascript’.
- In Terminal, type
yo enki:subtopic
- Follow the instructions in Terminal to create your subtopic.