Skip to content

Commit 5f84bb3

Browse files
committed
corrected home page and dependencies
1 parent 530f717 commit 5f84bb3

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspython-interpreter",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "JSPython is a javascript implementation of Python language that runs within web browser or NodeJS environment",
55
"keywords": [
66
"python",
@@ -33,14 +33,13 @@
3333
"bugs": {
3434
"url": "https://github.com/jspython-dev/jspython/issues"
3535
},
36-
"homepage": "https://github.com/jspython-dev/jspython#readme",
37-
"dependencies": {
38-
"@docusaurus/init": "^2.0.0-alpha.39"
39-
},
36+
"homepage": "https://jspython.dev",
37+
"dependencies": { },
4038
"devDependencies": {
4139
"@types/jest": "^24.0.22",
4240
"ace-builds": "^1.4.7",
4341
"docusaurus-init": "^1.14.1",
42+
"@docusaurus/init": "^2.0.0-alpha.39",
4443
"jest": "^24.9.0",
4544
"rollup": "^1.26.3",
4645
"rollup-plugin-copy": "^3.1.0",

src/interpreter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function range(start: number, stop: number = NaN, step: number = 1): number[] {
2121

2222
const INITIAL_SCOPE = {
2323
jsPython(): string {
24-
return ["JSPython v0.1.3", "(c) FalconSoft Ltd"].join('\n')
24+
return ["JSPython v0.1.4", "(c) FalconSoft Ltd"].join('\n')
2525
},
2626
dateTime: (str: number | string | any = null) => (str && str.length)
2727
? parseDatetimeOrNull(str) || new Date() : new Date(),

website/docs/jspython-dev-guide.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
---
22
id: jspython-dev-guide
33
title: JSPython Developer Guide
4+
description: A comprehensive JSPython developer guide
5+
keywords:
6+
- JSPython
7+
- Developer guide
48
---
59

6-
A core objective for JSPython is to bring Python language to the JavaScript infrastructure. So, any Python documentation should work within JSPython environment. We implemented any essential features in Python.
10+
A core objective for JSPython is to bring Python to the JavaScript infrastructure. So, any Python documentation should work within JSPython environment. We implemented most essential features in Python.
711

812
## Variables and object and arrays
913

10-
We do follow Python way of declaring and using variables. However, we create a JavaScript objects and running JavaScript engine lifecycle.
14+
We follow the Python way of declaring and using variables. However, we create JavaScript objects and run JavaScript engine lifecycles.
1115

1216
Create new object
1317

@@ -38,7 +42,7 @@ y = x.filter(r => r > 3).join(",")
3842

3943
## Working with dates
4044

41-
We supply built-in function `dateTime([strDate])` that returns a JavaScript [`Date object`](https://www.w3schools.com/js/js_dates.asp). Along, with it, you can use any of their [date functions](https://www.w3schools.com/jsref/jsref_obj_date.asp).
45+
We supply built-in functions `dateTime([strDate])` that return JavaScript [`Date object`](https://www.w3schools.com/js/js_dates.asp). Along, with that, you can use any of their [date functions](https://www.w3schools.com/jsref/jsref_obj_date.asp).
4246

4347
```py
4448
today = dateTime() # now
@@ -51,7 +55,7 @@ Math.ceil(diffTime / 86400000)
5155

5256
## Functions
5357

54-
Function can be defined with `def` and `async def` or it can be as anonymous arrow `=>` function. All type of functions can return a value by specifying `return` keyword or as a last statement in a code block. You can have nested functions as well.
58+
Functions can be defined with `def` and `async def` or with an arrow `=>`. All types of functions can return a value by specifying `return` keyword or as a last statement in a code block. You can have nested functions as well.
5559

5660
### Functions defines as `def func1():`
5761

website/docs/jspython-interpreter.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
id: jspython-interpreter
33
title: How to run JSPython interpreter
44
sidebar_label: JSPython interpreter
5+
description: How to run JSPython interpreter guide
6+
keywords:
7+
- Interpreter
8+
- JSPython
59
---
610

711
## Install JS Python Interpreter

website/docs/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
id: readme
33
title: JSPython
44
sidebar_label: Introduction
5+
keyword: JSPython
56
---
67

78
JSPython is a javascript implementation of Python language that runs within web browser or NodeJS environment. It does not transpile/compile your code into JavaScript, instead, it provides an interactive interpreter that reads Python code and carries out their instructions. With JSPython you should be able to safely use or interact any JavaScript libraries or API with a nice Python language.

website/src/pages/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const features = [
1919
imageUrl: 'img/feature1.svg',
2020
description: (
2121
<>
22-
JSPython is a javascript implementation of Python language with no dependencies.
22+
JSPython is a JavaScript implementation of Python with no dependencies.
2323
So, you can freely run it on your browser or NodeJS
2424
</>
2525
),
@@ -35,7 +35,7 @@ const features = [
3535
),
3636
},
3737
{
38-
title: <>Rapid application development</>,
38+
title: <>Rapid Application Development</>,
3939
imageUrl: 'img/feature3.svg',
4040
description: (
4141
<>
@@ -66,8 +66,8 @@ function Home() {
6666
const {siteConfig = {}} = context;
6767
return (
6868
<Layout
69-
title={`Hello from ${siteConfig.title}`}
70-
description="Description will go into a meta tag in <head />">
69+
title={`Welcome to ${siteConfig.title}`}
70+
description="JSPython is a javascript implementation of Python that runs within web browser or NodeJS environment <head />">
7171
<header className={classnames('hero hero--primary', styles.heroBanner)}>
7272
<div className="container">
7373
<h1 className="hero__title">{siteConfig.title}</h1>

0 commit comments

Comments
 (0)