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

Support user-specified CSS #21

Merged
merged 3 commits into from
Jun 2, 2022
Merged

Support user-specified CSS #21

merged 3 commits into from
Jun 2, 2022

Conversation

dumbbell
Copy link
Collaborator

@dumbbell dumbbell commented Jun 2, 2022

In other words, the plugin now handles the stylesheet option in edoc_opts

Instead of patching the HTML files, the plugin creates its own stylesheet and passes it to EDoc using the stylesheet option. github-markdown.css and prism.css are imported from that generated CSS file.

If the user specified his own stylesheet, we can now import it from that generated CSS file. This allows the user to provide his own CSS rules and even override the other stylesheets we import.

Instead of patching the HTML files, the plugin creates its own
stylesheet and passes it to EDoc using the `stylesheet` option.
`github-markdown.css` and `prism.css` are imported from that generated
CSS file.

If the user specified his own stylesheet, we can now import it from that
generated CSS file. This allows the user to provide his own CSS rules
and even override the other stylesheets we import.
For whatever reason, `rebar3_format` completely bork the
`generate_wrapping_css/2` function.
@dumbbell dumbbell self-assigned this Jun 2, 2022
@dumbbell dumbbell added the enhancement New feature or request label Jun 2, 2022
@dumbbell dumbbell marked this pull request as ready for review June 2, 2022 14:52
@dumbbell dumbbell merged commit 377765a into main Jun 2, 2022
@dumbbell dumbbell deleted the support-user-specified-css branch June 2, 2022 14:53
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 this pull request may close these issues.

1 participant