File tree 5 files changed +823
-185
lines changed
5 files changed +823
-185
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ React Tooltip is proud to be sponsored by [Frigade](https://frigade.com/?source=
72
72
<img alt =" Dopt " style =" height : 200px ; width : 200px ;" src =" docs/static/img/sponsors/dopt.png " />
73
73
</a >
74
74
75
+ ## Powered by
76
+
77
+ <p >
78
+ <a href =" https://www.digitalocean.com/?refcode=0813b3be1161&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge " >
79
+ <img src="https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.svg" width="201px">
80
+ </a >
81
+ </p >
82
+
75
83
## Usage
76
84
77
85
1 . Import the CSS file to set default styling.
@@ -135,14 +143,6 @@ Please check our [troubleshooting section](https://react-tooltip.com/docs/troubl
135
143
If you can't find your problem here, make sure there isn't [ an open issue] ( https://github.com/ReactTooltip/react-tooltip/issues ) already covering it.
136
144
If there isn't, feel free to [ submit a new issue] ( https://github.com/ReactTooltip/react-tooltip/issues/new/choose ) .
137
145
138
- ## Powered by
139
-
140
- <p >
141
- <a href =" https://www.digitalocean.com/?refcode=0813b3be1161&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge " >
142
- <img src="https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.svg" width="201px">
143
- </a >
144
- </p >
145
-
146
146
## Article
147
147
148
148
[ How I insert sass into react component] ( https://medium.com/@wwayne_me/how-i-insert-sass-into-my-npm-react-component-b46b9811c226#.gi4hxu44a )
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
presets : [ require . resolve ( '@docusaurus/core/lib/babel/preset' ) ] ,
3
- } ;
3
+ }
Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-extraneous-dependencies */
1
2
/* eslint-disable @typescript-eslint/no-var-requires */
2
3
/* eslint-disable max-len */
3
4
// @ts -check
4
5
// Note: type annotations allow type checking and IDEs autocompletion
5
6
6
7
const lightCodeTheme = require ( 'prism-react-renderer/themes/github' )
7
8
const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' )
9
+ const postcssPresetEnv = require ( 'postcss-preset-env' )
10
+
11
+ /** @return {import('@docusaurus/types').Plugin } */
12
+ function customPostCssPlugin ( ) {
13
+ return {
14
+ name : 'custom-postcss' ,
15
+ configurePostCss ( options ) {
16
+ // Append new PostCSS plugins here.
17
+ options . plugins . push ( postcssPresetEnv ) // allow newest CSS syntax
18
+ return options
19
+ } ,
20
+ }
21
+ }
8
22
9
23
/** @type {import('@docusaurus/types').Config } */
10
24
const config = {
@@ -29,6 +43,8 @@ const config = {
29
43
locales : [ 'en' ] ,
30
44
} ,
31
45
46
+ plugins : [ customPostCssPlugin ] ,
47
+
32
48
scripts : [
33
49
// {
34
50
// src: 'https://securepubads.g.doubleclick.net/tag/js/gpt.js',
Original file line number Diff line number Diff line change 15
15
"typecheck" : " tsc"
16
16
},
17
17
"dependencies" : {
18
- "@docusaurus/core" : " ^ 2.4.1 " ,
19
- "@docusaurus/preset-classic" : " ^ 2.4.1 " ,
18
+ "@docusaurus/core" : " 2.4.3 " ,
19
+ "@docusaurus/preset-classic" : " 2.4.3 " ,
20
20
"@mdx-js/react" : " 1.6.22" ,
21
21
"clsx" : " ^1.2.1" ,
22
22
"prism-react-renderer" : " ^1.3.5" ,
28
28
"devDependencies" : {
29
29
"@docusaurus/module-type-aliases" : " ^2.4.1" ,
30
30
"@tsconfig/docusaurus" : " ^1.0.5" ,
31
+ "postcss-preset-env" : " ^9.3.0" ,
31
32
"typescript" : " 4.9.5"
32
33
},
33
34
"browserslist" : {
You can’t perform that action at this time.
0 commit comments