-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1553 from jadu/docs-pulsar-update
Fix pulsar css and js includes within documentation
- Loading branch information
Showing
17 changed files
with
104,232 additions
and
194 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import Layout from '@theme-original/Layout'; | ||
|
||
export default function LayoutWrapper(props) { | ||
return ( | ||
<> | ||
<div className="flash-container js-flash-container"></div> | ||
<Layout {...props} /> | ||
</> | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import siteConfig from '@generated/docusaurus.config'; | ||
export default function prismIncludeLanguages(PrismObject) { | ||
const { | ||
themeConfig: {prism}, | ||
} = siteConfig; | ||
const {additionalLanguages} = prism; | ||
// Prism components work on the Prism instance on the window, while prism- | ||
// react-renderer uses its own Prism instance. We temporarily mount the | ||
// instance onto window, import components to enhance it, then remove it to | ||
// avoid polluting global namespace. | ||
// You can mutate PrismObject: registering plugins, deleting languages... As | ||
// long as you don't re-assign it | ||
globalThis.Prism = PrismObject; | ||
additionalLanguages.forEach((lang) => { | ||
if (lang === 'php') { | ||
// eslint-disable-next-line global-require | ||
require('prismjs/components/prism-markup-templating.js'); | ||
} | ||
// eslint-disable-next-line global-require, import/no-dynamic-require | ||
require(`prismjs/components/prism-${lang}`); | ||
}); | ||
delete globalThis.Prism; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div className="btn__group dropdown"> | ||
<button aria-haspopup="true" aria-expanded="false" aria-controls="guid-1404002197" data-toggle="dropdown" className="btn dropdown__toggle">My Action <span className="caret"></span></button> | ||
<ul id="guid-1404002197" className="dropdown__menu pull-left"> | ||
<li><a href="#foo">Foo</a></li> | ||
<li><a href="#bar">Bar</a></li> | ||
</ul> | ||
</div> |
Oops, something went wrong.