Skip to content

Commit 0146b6c

Browse files
committed
rename path_to_posts
1 parent 9987615 commit 0146b6c

File tree

4 files changed

+91
-5
lines changed

4 files changed

+91
-5
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export_out(url,token_v2)
5555
### With token_v2 & url & Notion-py Block
5656
```Python
5757
from notion2jekyll import *
58-
client = NotionClient(token_v2=<your token_v2>)
58+
59+
token_v2 = #<your notion token_v2>
60+
url = #<your notion page url>
61+
62+
client = NotionClient(token_v2=token_v2)
5963
block = client.get_block(url)
6064

6165
export_in(block,client)
@@ -64,7 +68,7 @@ export_in(block,client)
6468

6569
## Aditional Info
6670

67-
- Exporter will make the md file and images in `./jekyllpost_output/` and `./jekyllpost_output/<your block title>/`
71+
- Exporter will make the md file and images in the folder named `posts` and `posts/<your block title>`
6872

6973
- The url should be the page that you want to export.
7074

_posts/2020-4-17-MphysPy.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
tags:
3+
- project
4+
layout: post
5+
---
6+
7+
8+
# Mphyspy
9+
10+
[https://img.shields.io/badge/pypi-v0.1.8.1-blue](https://img.shields.io/badge/pypi-v0.1.8.1-blue)
11+
12+
[https://img.shields.io/badge/license-MIT-green](https://img.shields.io/badge/license-MIT-green)
13+
14+
[![Run on Repl.it](https://repl.it/badge/github/eunchan1001/mphyspy)](https://repl.it/github/eunchan1001/mphyspy)
15+
16+
MphyPy is a Python3 library for calculating college level modern physics problems
17+
18+
## Requirements
19+
20+
To use mphyspy, these packages are required
21+
22+
- sympy
23+
24+
- numpy
25+
26+
27+
28+
## Documentation
29+
30+
# DOCUMENTATION
31+
32+
## Matrix
33+
34+
---
35+
36+
37+
38+
## Qmechenic
39+
40+
---
41+
42+
43+
44+
## Srelativity
45+
46+
---
47+
48+
49+
50+
[Documentation](DOCUMENTATION.md)
51+
52+
## Installation
53+
54+
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install mphyspy.
55+
56+
```Bash
57+
$pip install mphyspy
58+
```
59+
60+
## Usage
61+
62+
```Bash
63+
$python
64+
```
65+
66+
```Python
67+
>>>from mphyspy import *
68+
modules loaded successfully
69+
>>>ct.g
70+
2.002319
71+
```
72+
73+
## Contributing
74+
75+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
76+
77+
Please make sure to update tests as appropriate.
78+
79+
## License
80+
81+
[MIT](https://choosealicense.com/licenses/mit/)
82+

notion2jekyll/jekyll_exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def set_filename(block):
1818
return fname
1919

2020
def make_file(block):
21-
directory = './jekyllpost_output/'
21+
directory = './_posts/'
2222
if not(os.path.isdir(directory)):
2323
os.makedirs(os.path.join(directory))
2424
fname = set_filename(block)
@@ -76,7 +76,7 @@ def export_out(url,token):
7676
md = post_header(page,md)
7777
file.write(md)
7878
file.close
79-
print("Notion page is successfully exported to Jekyll post")
79+
print("\nNotion page is successfully exported to Jekyll post")
8080

8181
if __name__=="__main__":
8282
export_cli()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
readme = f.read()
77
setup(
88
name='notion2jekyll',
9-
version='0.1.5.2',
9+
version='0.1.5.3',
1010
description='Export notion page to jekyll post',
1111
long_description=readme,
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)