Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aahnik opened this issue Feb 15, 2021 · 4 comments · May be fixed by #76
Open

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

aahnik opened this issue Feb 15, 2021 · 4 comments · May be fixed by #76
Labels
enhancement New feature or request

Comments

@aahnik
Copy link
Contributor

aahnik commented Feb 15, 2021

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:

- index.html
- images
- css
- js
- pages
@leoncvlt leoncvlt added the enhancement New feature or request label Feb 15, 2021
@aahnik

This comment has been minimized.

@aahnik
Copy link
Contributor Author

aahnik commented Mar 26, 2021

@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)

How to use ?

  1. Use loconotion normally.

  2. Move inside the output folder (a subfolder inside dist)

  3. If you run ls you should see lots of css,js,woff files and also the html files

  4. Now run locorg.py from inside this directory (like python /path/to/locorg.py)

  5. You get a clean output

  6. Html files do not break (as they are updated)

Before:

image

After:

image

@aahnik
Copy link
Contributor Author

aahnik commented Mar 26, 2021

@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:

image

@aahnik
Copy link
Contributor Author

aahnik commented Mar 26, 2021

fixed the #46 font issue in locorg.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants