Skip to content

Commit b8bec8f

Browse files
committed
Version 0.0.15: improve the notebook component
1 parent ed89046 commit b8bec8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+802
-240
lines changed

README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Edit and run Python code in Vuejs 3
77
Based on [usepython](https://github.com/synw/usepython): the Python code runs in
88
a [Pyodide](https://github.com/pyodide/pyodide) service worker, leaving the main ui thread alone
99

10-
[Demo](https://synw.github.io/vuepython/) - [Example](example/)
10+
[Documentation](https://synw.github.io/vuepython/)
1111

1212
## Install
1313

@@ -69,27 +69,15 @@ the code block. [Themes preview](https://highlightjs.org/static/demo/)
6969

7070
## Css
7171

72-
The styling of the widgets is made with Tailwind css classes. If you don't have
73-
Tailwind installed import the necessary css manualy:
72+
Import the necessary css
7473

7574
```ts
76-
import "vuepython/twstyle.css"
77-
```
78-
79-
If you use Tailwind css add this to your *tailwind.config.js* file:
80-
81-
```js
82-
content: [
83-
// ...
84-
'./node_modules/vuepython/**/*.{vue,js,ts}',
85-
],
75+
import "vuepython/style.css"
8676
```
8777

8878
## Example
8979

90-
An [example](example/README.md) is available
91-
92-
Basic example code:
80+
Example code:
9381

9482
```vue
9583
<template>

docs/assets/_...all_-651ce884.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/code_block-c08e2817.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import{d as o,o as n,c as t,b as s,a as c,u as e,p as _,s as l}from"./index-aeae53b3.js";const r={class:"prosed"},p=s("h1",null,"Code block example",-1),m={class:"not-prose"},h=o({__name:"code_block",setup(d){const a=`first_name = "Bob"
2+
last_name = "Miller"
3+
name = f"{first_name} {last_name}"
4+
print("The name is", name)
5+
name`;return(i,f)=>(n(),t("div",r,[p,s("p",m,[c(e(l),{id:"1",code:a,py:e(_),namespace:"codeblock"},null,8,["py"])])]))}});export{h as default};

docs/assets/index-8668586b.css

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-aeae53b3.js

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index.79b6f725.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/assets/index.f30ba86e.css

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/assets/material-darker-1cc60fc0.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/notebook-acf45e16.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import{d as n,o,c as s,a as c,u as e,p as t,x as p}from"./index-aeae53b3.js";const r={class:"container mx-auto"},d=n({__name:"notebook",setup(l){const a=[`a=1
2+
b=2
3+
c=a+b
4+
c`,"c"];return(_,m)=>(o(),s("div",r,[c(e(p),{py:e(t),namespace:"example",cells:a},null,8,["py"])]))}});export{d as default};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
2+
Theme: StackOverflow Light
3+
Description: Light theme as used on stackoverflow.com
4+
Author: stackoverflow.com
5+
Maintainer: @Hirse
6+
Website: https://github.com/StackExchange/Stacks
7+
License: MIT
8+
Updated: 2021-05-15
9+
10+
Updated for @stackoverflow/stacks v0.64.0
11+
Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
12+
Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
13+
*/.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-attr,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-section,.hljs-selector-tag{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-number,.hljs-quote,.hljs-selector-id,.hljs-template-tag,.hljs-type{color:#b75501}.hljs-selector-class{color:#015692}.hljs-link,.hljs-regexp,.hljs-selector-attr,.hljs-string,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-literal,.hljs-title{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}

0 commit comments

Comments
 (0)