Open aahnik opened 3 years ago
i tried to solve this issue by making a script
the python script does the following:
a.js
was moved to js/a.js
then, in all the html files, replace a.js
with js/a.js
i expected it to work, but on opening the html files, the images/css/js are not loaded.
So, i tested my script on some other directory (with some files made up by me), it works there. but not in the loconotion.
something weird is happening, that i am not understanding
what mistake am i making ?
@leoncvlt
@leoncvlt, I made a script that does the job.
Link: https://gist.github.com/aahnik/2c18af0ee937bb2947873774f069adc4
(download it to any path of your choice. lets say /path/to/locorg.py
)
Use loconotion normally.
Move inside the output folder (a subfolder inside dist
)
If you run ls
you should see lots of css,js,woff files and also the html files
Now run locorg.py
from inside this directory (like python /path/to/locorg.py
)
You get a clean output
Html files do not break (as they are updated)
@leoncvlt, it would be great if you integrate my script into loconotion, and make it a default feature.
as many people are using github pages, all files in the root directory of the repo, look extremely clumsy.
after applying my script, everything gets organized like this:
When I run loconotion it produces everything in a subfolder of
dist
.If everything was organized, it would be great. Like the folder structure could be like this: