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

fix(v2): use remark-admonitions separately in each plugin instead of in preset only #2642

Merged
merged 6 commits into from
Apr 24, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Apr 22, 2020

Motivation

This PR decouples admonitions from the classic theme and preset to resolve #2525.

Now admonitions is included for each of the two plugins separately (docs and blog), this produces some duplication of code, but the classic theme is not related with admonitions.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Admonitions should work as earlier, since the admonitions options in preset passed to each plugin.

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111 lex111 added the pr: bug fix This PR fixes a bug in a past release. label Apr 22, 2020
@lex111 lex111 added this to the v2.0.0-alpha.51 milestone Apr 22, 2020
@lex111 lex111 requested a review from yangshun April 22, 2020 14:06
@lex111 lex111 requested a review from wgao19 as a code owner April 22, 2020 14:06
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 22, 2020
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Apr 22, 2020

Deploy preview for docusaurus-2 ready!

Built with commit 67d7685

https://deploy-preview-2642--docusaurus-2.netlify.app

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just small suggestions. Otherwise LGTM. Thanks for doing this!

packages/docusaurus-plugin-content-docs/src/index.ts Outdated Show resolved Hide resolved
packages/docusaurus-plugin-content-docs/src/index.ts Outdated Show resolved Hide resolved
@lex111 lex111 force-pushed the lex111/decouple-admonitions branch from 2d3c192 to 67d7685 Compare April 22, 2020 19:32
@yangshun yangshun merged commit 9e1f816 into master Apr 24, 2020
@lex111 lex111 deleted the lex111/decouple-admonitions branch April 24, 2020 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v2] unable to use theme-classic without remark-admonitions
4 participants