docusaurus-live-brython 3.0.0-beta.4 → 3.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +9 -0
- package/README.md +12 -0
- package/lib/theme/CodeBlock/index.jsx +0 -2
- package/package.json +6 -4
- package/src/theme/CodeBlock/index.tsx +0 -6
package/.prettierrc
ADDED
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Docusaurus Live Codeblock for Python
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
> [!NOTE]\
|
|
4
7
|
> This theme works with Docusaurus v3+.
|
|
5
8
|
|
|
@@ -115,4 +118,13 @@ yarn link docusaurus-live-brython
|
|
|
115
118
|
Then start the website
|
|
116
119
|
```sh
|
|
117
120
|
yarn run start
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Publish
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
yarn run build
|
|
127
|
+
# when running inside wsl, use --auth=legacy
|
|
128
|
+
npm login --auth=legacy
|
|
129
|
+
npm publish --auth=legacy
|
|
118
130
|
```
|
|
@@ -2,8 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import CodeBlock from '@theme-init/CodeBlock';
|
|
3
3
|
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
|
4
4
|
import CodeEditor from '../CodeEditor';
|
|
5
|
-
// import Playground from '@theme-original/Playground';
|
|
6
|
-
// import ReactLiveScope from '@theme-original/ReactLiveScope';
|
|
7
5
|
import ScriptContext from '../CodeEditor/WithScript/Store';
|
|
8
6
|
const sanitizedTitle = (id) => {
|
|
9
7
|
if (!id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-live-brython",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.5",
|
|
4
4
|
"description": "Docusaurus live code block component for python.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./src/*": "./src/*"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "tsc --build && node ./bin/copyUntypedFiles.js",
|
|
20
|
+
"build": "tsc --build && node ./bin/copyUntypedFiles.js && prettier --config ./.prettierrc --write \"lib/theme/**/*.js\"",
|
|
21
21
|
"watch": "run-p -c copy:watch build:watch",
|
|
22
22
|
"build:watch": "tsc --build --watch",
|
|
23
23
|
"copy:watch": "node ./bin/copyUntypedFiles.js --watch"
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "git://github.com/lebalz/
|
|
28
|
+
"url": "git://github.com/lebalz/docusaurus-live-brython.git"
|
|
29
29
|
},
|
|
30
30
|
"author": "Balthasar Hofer <lebalz@outlook.com>",
|
|
31
|
-
"bugs": "https://github.com/lebalz/
|
|
31
|
+
"bugs": "https://github.com/lebalz/docusaurus-live-brython/issues",
|
|
32
|
+
"homepage": "https://lebalz.github.io/docusaurus-live-brython/",
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"ace-builds": "^1.4.12",
|
|
34
35
|
"clsx": "^2.1.1",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"concurrently": "^8.2.2",
|
|
56
57
|
"fs-extra": "^11.2.0",
|
|
57
58
|
"npm-run-all": "^4.1.5",
|
|
59
|
+
"prettier": "^3.2.5",
|
|
58
60
|
"prism-react-renderer": "^2.3.1",
|
|
59
61
|
"typescript": "^5.4.2"
|
|
60
62
|
},
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import CodeBlock, {type Props as CodeBlockType} from '@theme-init/CodeBlock';
|
|
3
|
-
import { default as ThemeCodeBlock } from '@theme-original/CodeBlock';
|
|
4
|
-
// import CodeBlock from '@theme-original/CodeBlock';
|
|
5
|
-
// import CodeBlockType from '@theme/CodeBlock';
|
|
6
3
|
// @ts-ignore
|
|
7
4
|
import type { WrapperProps } from '@docusaurus/types';
|
|
8
5
|
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
|
9
6
|
import CodeEditor from '../CodeEditor';
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
// import Playground from '@theme-original/Playground';
|
|
13
|
-
// import ReactLiveScope from '@theme-original/ReactLiveScope';
|
|
14
8
|
import ScriptContext from '../CodeEditor/WithScript/Store';
|
|
15
9
|
|
|
16
10
|
|