All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
- Added examples on how to use blocks:
blocks_example.py
- In
blocks.py
:- Added
add_icon()
method to include either anemoji
orexternal
icon to a Notion rich object. - Support to new Notion blocks:
callout
- Added
- In
notion_example.py
added how to constructcallout
blocks. - In
dropbox_sdk.py
added thecreate_folder()
method to create a folder
inside Dropbox.
- In
dropbox_sdk.py
:- The
view_files()
method.
- The
- Fixed
upload_all_files()
method fromDropboxClient
class in
dropbox_sdk.py
to support more file extensions. - In
blocks.py
,add_children()
method now checks if parent block
support appending children blocks.
- First major version because, why not? :)
- Support to new Notion blocks:
embed
video
file
pdf
bookmark
equation
breadcrumb
notion.py
is now callednotion_example.py
.dropbox_api.py
is now calleddropbox_sdk.py
.markdown.py
is now calledmarkdown_parser.py
.
markdown.py
to isolate all markdown parsing functionalities in a single file.dropbox_api.py
to upload files to Dropbox and retrieve raw shared links
to be used as embedded into Notion.example_files
folder with sample images to be uploaded to Dropbox.
- Updates in
blocks.py
:- Minor text modifications.
- Added more blocks.
- Updates in
notion.py
:- Included example to know how to upload images to Dropbox and create
Notion image blocks from Dropbox URLs. - Updated method names to comply with modifications in
blocks.py
.
- Included example to know how to upload images to Dropbox and create
- In
secrets_template.py
Deleted IMGUR tokens to Dropbox app token.
- Updates in
blocks.py
:- Updated the
_clean_markdown()
to exclude comas next to delimiters.
- Updated the
- Updates in
notion.py
:- Do not use \ to separate a string into multiple lines. It will result in
multiple spaces in the Notion block.
- Do not use \ to separate a string into multiple lines. It will result in
- Updates in
blocks.py
:- Updated the
_clean_markdown()
method to usemarkdown_delimiter
list by adding extra spaces. Previously, it usedclean_delimiter
list. _add_block_format()
method now acceptsblock_type
adnblock_field
parameters to support any Notion block.
- Updated the
- Updates in
blocks.py
:- Deleted
clean_delimiter
variable list, which was the same as
markdown_delimiter
but with added spaces for each element.
- Deleted
-
Added
formated_notion_text_example.py
file to see how a Notion block
with annotations is formated. -
Updates in
blocks.py
:- Added the following methods to start Mardown notation support:
_clean_markdown()
_markdown_splitter()
_add_block_format()
_markdown_notation()
- Added
add_text_to_block()
method to add text object to a Notion
block. - Added
append_text_to_block()
method to append text object to a
Notion block.
- Added the following methods to start Mardown notation support:
-
Updates in
blocks.py
:markdown_to_notion()
method can create paragraph Notion blocks with
annotations. Future versions will add annotations to more blocks.- The methods to create Notion blocks (
image()
,to_do()
,heading()
andparagraph()
) now use the new methodadd_text_to_block()
to add
text object to a block.
-
Now
notion.py
shows how to use markdown notation in a string for a Notion
block.
- Added initial files to start working