added automatic detection of css files#152
Open
bradley-erickson wants to merge 1 commit intoplotly:masterfrom
Open
added automatic detection of css files#152bradley-erickson wants to merge 1 commit intoplotly:masterfrom
bradley-erickson wants to merge 1 commit intoplotly:masterfrom
Conversation
…add their files to the project folder
emptynonsens
suggested changes
Mar 21, 2024
emptynonsens
left a comment
There was a problem hiding this comment.
Working automatic css detection. One remark to README, so the information exists.
| - The Dash team uses these types of integration tests extensively. Browse the Dash component code on GitHub for more examples of testing (e.g. https://github.com/plotly/dash-core-components) | ||
| - Add custom styles to your component by putting your custom CSS files into your distribution folder (`{{cookiecutter.project_shortname}}`). | ||
| - Make sure that they are referenced in `MANIFEST.in` so that they get properly included when you're ready to publish your component. | ||
| - Make sure the stylesheets are added to the `_css_dist` dict in `{{cookiecutter.project_shortname}}/__init__.py` so dash will serve them automatically when the component suite is requested. |
There was a problem hiding this comment.
This info might come in handy:
- styles from the distribution folder are automatically referenced in 'MANIFEST.in' and the _css_dist dictionary in {{cookiecutter.project_shortname}}/init.py. If a custom reference is needed, make an analogous reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds automatic detection of css files in the distribution folder
{{cookiecutter.project_shortname}}. The codes adds all*.cssfiles to theMANIFEST.infile. Additionally, the code walks over the distribution folder to find each*.cssfile and append it to the_css_distlist in{{cookiecutter.project_shortname}}/__init__.py