0.1.5 • Published 6 years ago

@kodapan/koda v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Koda

A library to embed front-end demos.

Installing

You can either install Koda by running yarn (recommended)

yarn add @kodapan/koda

or use npm

npm install @kodapan/koda

Basic usage

You will need to include the koda.css and koda.js files.

<link rel="stylesheet" href="koda.css">
<script src="koda.js"></script>

Koda is using Prism to style and highlight the code, why you will need to include the Prism theme of your choice that should be used to highlight the code.

<link href="themes/prism.css" rel="stylesheet">

Next you need to set up the code in HTML.

<div class="koda" data-selected="js" data-height="250px">
  <code class="language-html" data-code="demo.html"></code>
  <code class="language-css" data-code="demo.css"></code>
  <code class="language-js" data-code="demo.js"></code>
</div>

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • CodePen for the original concept
  • Cody for the idea to roll our own
0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago