docusaurus-plugin-glossary 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +10 -9
- /package/{lib → dist}/client/index.js +0 -0
- /package/{lib → dist}/components/GlossaryPage.js +0 -0
- /package/{lib → dist}/components/GlossaryPage.module.css +0 -0
- /package/{lib → dist}/components/GlossaryPage.test.js +0 -0
- /package/{lib → dist}/index.js +0 -0
- /package/{lib → dist}/remark/glossary-terms.js +0 -0
- /package/{lib → dist}/theme/GlossaryTerm/index.js +0 -0
- /package/{lib → dist}/theme/GlossaryTerm/index.test.js +0 -0
- /package/{lib → dist}/theme/GlossaryTerm/styles.module.css +0 -0
package/README.md
CHANGED
|
@@ -496,7 +496,7 @@ principles to provide a simple and consistent interface.
|
|
|
496
496
|
|
|
497
497
|
## Development
|
|
498
498
|
|
|
499
|
-
This project is written in TypeScript and compiles to JavaScript. The source files are in `src/` and the compiled output goes to `
|
|
499
|
+
This project is written in TypeScript and compiles to JavaScript. The source files are in `src/` and the compiled output goes to `dist/`.
|
|
500
500
|
|
|
501
501
|
### File Structure
|
|
502
502
|
|
|
@@ -517,7 +517,7 @@ docusaurus-plugin-glossary/
|
|
|
517
517
|
│ ├── index.js # Term component
|
|
518
518
|
│ ├── styles.module.css
|
|
519
519
|
│ └── index.test.js
|
|
520
|
-
├──
|
|
520
|
+
├── dist/ # Compiled output (generated by build)
|
|
521
521
|
│ ├── index.js # Main plugin file (compiled from src/index.ts)
|
|
522
522
|
│ ├── client/ # Copied from src/client/
|
|
523
523
|
│ ├── components/ # Copied from src/components/
|
|
@@ -543,8 +543,8 @@ npm run build
|
|
|
543
543
|
```
|
|
544
544
|
|
|
545
545
|
This will:
|
|
546
|
-
1. Compile TypeScript (`src/index.ts`) to JavaScript (`
|
|
547
|
-
2. Copy JavaScript, CSS, and test files from `src/` to `
|
|
546
|
+
1. Compile TypeScript (`src/index.ts`) to JavaScript (`dist/index.js`)
|
|
547
|
+
2. Copy JavaScript, CSS, and test files from `src/` to `dist/`
|
|
548
548
|
|
|
549
549
|
For development, use:
|
|
550
550
|
|
|
@@ -628,5 +628,5 @@ Built for Docusaurus v3.x
|
|
|
628
628
|
|
|
629
629
|
- **Language**: TypeScript (main plugin) + JavaScript (components)
|
|
630
630
|
- **Build System**: TypeScript compiler + custom build scripts
|
|
631
|
-
- **Package Entry Point**: `
|
|
631
|
+
- **Package Entry Point**: `dist/index.js` (compiled from `src/index.ts`)
|
|
632
632
|
- **Exports**: Main plugin, remark plugin via package.json exports field
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-plugin-glossary",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "A Docusaurus plugin for creating and managing glossary terms with auto-generated pages and inline tooltips",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "dist/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"import": "./
|
|
10
|
-
"require": "./
|
|
11
|
-
"default": "./
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
12
|
},
|
|
13
13
|
"./remark/glossary-terms": {
|
|
14
|
-
"import": "./
|
|
15
|
-
"require": "./
|
|
16
|
-
"default": "./
|
|
14
|
+
"import": "./dist/remark/glossary-terms.js",
|
|
15
|
+
"require": "./dist/remark/glossary-terms.js",
|
|
16
|
+
"default": "./dist/remark/glossary-terms.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
|
-
"
|
|
20
|
+
"dist/",
|
|
21
21
|
"README.md",
|
|
22
22
|
"LICENSE"
|
|
23
23
|
],
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@babel/preset-env": "^7.28.5",
|
|
73
73
|
"@babel/preset-react": "^7.28.5",
|
|
74
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
74
75
|
"@docusaurus/tsconfig": "^3.9.2",
|
|
75
76
|
"@docusaurus/types": "^3.9.2",
|
|
76
77
|
"@testing-library/jest-dom": "^6.9.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|