Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samelhusseini/gitbook-plugin-pxt
https://github.com/samelhusseini/gitbook-plugin-pxt
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/samelhusseini/gitbook-plugin-pxt
- Owner: samelhusseini
- License: mit
- Created: 2017-03-08T17:25:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T17:44:58.000Z (almost 8 years ago)
- Last Synced: 2024-11-11T06:53:41.482Z (about 2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Gitbooks plugin for PXT
==============### How to use it?
Add the below to your `book.json` file, then run `gitbook install` :
```json
{
"plugins": [
"pxt@git+https://github.com/samelhusseini/gitbook-plugin-pxt.git"
]
}
```To select a different base site, add this in your `book.json` :
```json
{
"pluginsConfig": {
"pxt": {
"base": "pxt.microbit.org"
}
}
}
```You can now add PXT based simulator to your book using this tag:
```markdown
{% sim %}
input.onButtonPressed(Button.A, () => {
basic.showString("Hello!")
})
{% endsim %}
``````markdown
{% docs %}
``blocks
input.onButtonPressed(Button.A, () => {
basic.showString("Hello!")
})
``
{% enddocs %}
```## License
MIT