Commit graph

3 commits

Author SHA1 Message Date
Alex Krolick
f15ba1b2ac fix(codetabs): fix key warning (#1284)
- closes #1255
2019-03-17 21:53:58 -07:00
Joel Marcey
fdd5117300
Add copyright header to CodeTabsMarkdownBlock.js 2019-01-25 13:42:47 -08:00
Fienny Angelina
5ce85e5b5e feat: code block tab (#1063)
* Try to find a way to recognize the codeblock tabs, its title, and
where it ends
- I try using DOCUSAURUS_CODE_TABS to mark the start
- Use TAB_TITLE to mark the title of the tab
- END_TAB to mark the end of that tab
- END_DOCUSAURUS_CODE_TABS to mark the end of the whole code blocks
then parse using regex and render accordingly

* Added on click hook

* Added example on how to write it, how to use it, how it will look like can be reverted later

* Fix css error

* - Move addEventListener part to lib/static
- Remove comments

* Add documentation

* Remove examples

* Change syntax of the codetabs
2019-01-23 21:48:01 -08:00