-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a binder... and entirely too much else... #10
Merged
Merged
Changes from 25 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
f585e69
start binder
bollwyvl 343e72b
add serverextension for wasm serving
bollwyvl 872a3dd
ignoring more files, specify python version
bollwyvl ad7442e
rework with manager, expose plugin machinery, lazy load more
bollwyvl 1ddc7f2
contributing docs
bollwyvl 3c137d4
rework API, add bootstrap
bollwyvl 9c006f1
add link replacer, options to API, typings in folder
bollwyvl 0cf57cb
more docs
bollwyvl 6091df8
add anchor links, clean up bootstrap build
bollwyvl 2bbe34a
try more building
bollwyvl e2dd064
add legacy header link class
bollwyvl 8700c0c
handle plugins with multiple options
bollwyvl 7ca1f71
task lists
bollwyvl 5eee047
per-plugin options
bollwyvl 6db1e21
refactor builtins
bollwyvl b1b11ba
slim down CONTRIBUTING
bollwyvl cc9414d
add settings boilerplate
bollwyvl bb3a9ab
basic style, table
bollwyvl 9d7b9e4
add plugin disabling
bollwyvl cd98b74
use article/section instead of table
bollwyvl 32fa80e
some more style tweaks
bollwyvl 56c31b5
fix nav
bollwyvl cce39bd
fix rel
bollwyvl 96bff91
provide advanced settings escape hatch
bollwyvl dfb18aa
add default value to markdownit options
bollwyvl ed3e4c6
remove redundant link replacer, add main menu entries, some docs
bollwyvl 909c4d6
lab-compatible anchor slugs, docs, add toc to binder, linting, clean …
bollwyvl d05f347
add binder links
bollwyvl d999d7d
more badges
bollwyvl d57f382
unwrap docs links
bollwyvl 2333689
remove async from enabled check because cache
bollwyvl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: jupyterlab-markup | ||
|
||
channels: | ||
- conda-forge | ||
- nodefaults | ||
|
||
dependencies: | ||
- jupyterlab >=2,<3 | ||
- nodejs >=14,<15 | ||
- python >=3.7,<3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -eux | ||
|
||
python -m pip install -e . --no-deps --ignore-installed | ||
jupyter serverextension enable jupyterlab_markup --sys-prefix | ||
jlpm bootstrap | ||
jupyter labextension install $(npm pack) --no-build --debug | ||
jupyter lab build --debug --dev-build=False --minimize=False | ||
|
||
jupyter labextension list | ||
jupyter serverextension list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
__pycache__ | ||
.ipynb_checkpoints | ||
*.bundle.* | ||
lib/ | ||
node_modules/ | ||
*.egg-info/ | ||
.ipynb_checkpoints | ||
build/ | ||
demo/ | ||
dist/ | ||
lib/ | ||
node_modules/ | ||
untitled* | ||
Untitled* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
__pycache__/ | ||
*.egg-info/ | ||
build/ | ||
lib/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## Development | ||
|
||
For a development install (requires npm version 4 or later), do the following in the repository directory: | ||
|
||
```bash | ||
python -m pip install -e . | ||
jupyter serverextension enable jupyterlab_markup | ||
jlpm bootstrap | ||
jupyter labextension install . | ||
``` | ||
|
||
To rebuild the package and the JupyterLab app: | ||
|
||
```bash | ||
jlpm build | ||
jupyter lab build | ||
``` | ||
|
||
For live development | ||
|
||
```bash | ||
jlpm watch # will continue running | ||
jupyter lab watch # in another terminal, will continue running | ||
``` | ||
|
||
## Extending | ||
|
||
Additional [`markdown-it` plugins][plugins] | ||
can be added as small labextensions. After getting started with the [official cookiecutter][], | ||
your `plugin.ts` might look something like the the [builtins](./src/builtins/), | ||
which use the `simpleMarkdownItPlugin` boilerplate [wrapper](./src/utils.ts). | ||
|
||
[official cookiecutter]: https://github.com/jupyterlab/extension-cookiecutter-ts | ||
[plugins]: https://www.npmjs.com/search?q=keywords:markdown-it-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2020 Angus Hollands | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"NotebookApp": { | ||
"nbserver_extensions": { | ||
"jupyterlab_markup": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Table of Contents\n", | ||
"\n", | ||
"| plugin... | provides... |\n", | ||
"|----------------------------|-----------------------------------------|\n", | ||
"| `markdown-it-anchor` | header anchors |\n", | ||
"| `markdown-it-diagrams` | [diagrams](#diagrams) |\n", | ||
"| `markdown-it-deflist` | [definition lists](#definition-lists) |\n", | ||
"| `markdown-it-footnote` | [footnotes](#footnotes) |\n", | ||
"| `markdown-it-replace-link` | link replacement |\n", | ||
"| `markdown-it-task-lists` | [task lists](#task-lists) |" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Definition Lists\n", | ||
"\n", | ||
"\n", | ||
"Term 1\n", | ||
" ~ Definition 1\n", | ||
"\n", | ||
"Term 2\n", | ||
" ~ Definition 2a\n", | ||
" ~ Definition 2b" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Diagrams" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"### Mermaid" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"```mermaid \n", | ||
"graph TD;\n", | ||
" A-->B;\n", | ||
" A-->C;\n", | ||
" B-->D;\n", | ||
" C-->D;\n", | ||
"```" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"### svgbob" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"```bob \n", | ||
" .---.\n", | ||
" /-o-/--\n", | ||
" .-/ / /->\n", | ||
"( * \\/\n", | ||
" '-. \\\n", | ||
" \\ /\n", | ||
" '\n", | ||
"```" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Footnotes" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Here is a footnote reference,[^1] and another.[^longnote]\n", | ||
"\n", | ||
"[^1]: Here is the footnote.\n", | ||
"\n", | ||
"[^longnote]: Here's one with multiple blocks.\n", | ||
"\n", | ||
" Subsequent paragraphs are indented to show that they\n", | ||
"belong to the previous footnote." | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Task Lists\n", | ||
"\n", | ||
"- [x] done\n", | ||
"- [ ] not done" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.7.8" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be much easier once we can
pip install
labextensions!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for users, yes. contributors will need even more webpack stuff, and will have to track to a specific version of a jupyterlab-specific package. however, the dev docs for this repo will still be pretty simple, with the addition of
jupyter labextension build .
.