Skip to content

add file organizer to organizer files in separate assets folder#76

Open
sunz1e wants to merge 3 commits intoleoncvlt:masterfrom
sunz1e:file-organizer
Open

add file organizer to organizer files in separate assets folder#76
sunz1e wants to merge 3 commits intoleoncvlt:masterfrom
sunz1e:file-organizer

Conversation

@sunz1e
Copy link
Contributor

@sunz1e sunz1e commented Aug 26, 2021

based on @aahnik 's script
https://gist.github.com/aahnik/2c18af0ee937bb2947873774f069adc4

Thanks @aahnik 🙂

Additions:
added utf8: I hope it should fix UnicodeDecodeError which @jamesdeluk faced
use os.path.sep instead of hardcoded separator: I hope it should run on windows as well now.

fixes #36
@leoncvlt

@yokharian
Copy link

I think it was easier to change the cache_file function of notionparser.py and extend the self.dist_folder variable since now there is no cache the program always does a download despite the file existing
in addition to the fact that the HTML tags do not refer to the new address, there has to be some kind of configuration on the server to redirect links with png extensions to the path /assets/sep/images/ which is not compatible with all static site providers, for example github pages I did not find it anywhere that supports this configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Putting different things in different folders. Images, css, js

3 participants