A simple boiler plate repo to stores all the code snippets and display it as an iframe. For now just tested javascript and with Dracula theme. Update template.html
file to change the base content of the website. Under the hood it uses highlight.js with line-number plugin and dracula theme. Use github action and update the gh-page.
- Clone this repo
- Create a file in
src
folder - Commit or Push ( if you are using local )
- That will create a html file with exact name in the
dist
folder using github action.
To customize the code that's in the source folder, create a file with the same name with .config.json
ext.
sample-file.js => sample-file.config.json
{
"highlightLines": [1,2,3],
"lineNumberStartAt": 10
}
Remove the
sample-file.js
andsample-file.config.json