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

Images and Font files do not belong in version control of core library #58

Open
catull opened this issue Mar 18, 2018 · 2 comments · May be fixed by #59
Open

Images and Font files do not belong in version control of core library #58

catull opened this issue Mar 18, 2018 · 2 comments · May be fixed by #59

Comments

@catull
Copy link
Contributor

catull commented Mar 18, 2018

All the image files are really not necessary in the the core library.
They have to be relocated to a DEMO project, such as Bootstrapping Ngx-Admin-Lte.

My usage of ngx-admin-lte for instance is practically image-less.

Also, there are two more issues I have with the core library.

  1. Why do we have a dependency on FontAwesome (in package.json) AND we keep a local copy in src/public/fonts AND also in docs/fonts ????
  2. Why do we check in docs files, which are clearly generated, but are not going to be used by the end user ?

Why can't the generated docs not be published to a companion web site, e.g. https://ngx-admin-lte.github.io/ ?

Both points are a waste of resources.

catull added a commit to catull/ngx-admin-lte that referenced this issue Mar 18, 2018
This PR addreses the issue TwanoO67#58.
It removes font files, the docs/ folder as well as image files.

This PR closes TwanoO67#58.
catull added a commit to catull/ngx-admin-lte that referenced this issue Mar 18, 2018
This PR addreses the issue TwanoO67#58.
It removes font files, the docs/ folder as well as image files.

This PR closes TwanoO67#58.
@catull catull linked a pull request Mar 18, 2018 that will close this issue
@TwanoO67
Copy link
Owner

  1. I agree that images can be provided in the demo project

2.The companion web site for the documentation is: https://twanoo67.github.io/ngx-admin-lte/

It is based on the gh-pages branch which is a subtree of the master branch (to ease maintainance).
As so it have is own dependencyes embedded as in github paged we have no access to node_modules.
It could be generated by a Continuous-Integration method, and push to the github-pages branch based on the master content.
But in the mean time, as we don't have that process now, it should stay here, to be abble to publish the doc.
Furthermore, in v2 the "docs" folder, is in the npmignore file, so it won't be a problem for the end user.

  1. the local copy of font awesome in src/public/fonts was here to fix the fonts import resolution, and ease the installation of assets. Maybe a new solution is possible since the APF format, but we have to be sure that all sub-imports of fonts by font-awesome are still well found.

@catull
Copy link
Contributor Author

catull commented Mar 19, 2018

All you need to do in the immediate future is to maintain a branch gh-pages with the docs/ checked in.
Of course, there needs to be a clever layout in index.html that can use the docs/.

This is easily done.

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 a pull request may close this issue.

2 participants