File tree 7 files changed +1926
-942
lines changed
7 files changed +1926
-942
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ # Enabled permissions on GITHUB_TOKEN
9
+ permissions :
10
+ # To be able to push to the repo
11
+ contents : write
12
+ # To update the pr description with canary info
13
+ pull-requests : write
14
+ # For pr-check to create a status
15
+ statuses : write
16
+ # Needed to create PR statuses/checks
17
+ checks : write
18
+ # To post comments on PRs
19
+ issues : write
20
+ # Astro deploy
21
+ pages : write
22
+ id-token : write
23
+
24
+ jobs :
25
+ build :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v3
29
+ - uses : ./.github/actions/install-deps
30
+ - name : Install, build, and upload your site
31
+ uses : withastro/action@v2
32
+ with :
33
+ path : packages/docs
34
+ node-version : 18
35
+ package-manager :
[email protected]
36
+
37
+ deploy :
38
+ needs : build
39
+ runs-on : ubuntu-latest
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
43
+ steps :
44
+ - name : Deploy to GitHub Pages
45
+ id : deployment
46
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 7
7
"node" : " >=18"
8
8
},
9
9
"scripts" : {
10
- "build" : " turbo run build" ,
10
+ "build" : " turbo run build --filter=!docs " ,
11
11
"dev" : " turbo run dev" ,
12
12
"lint" : " turbo run lint" ,
13
13
"test" : " turbo run test -- --watch=false" ,
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ import starlight from "@astrojs/starlight";
3
3
import starlightTypeDoc , { typeDocSidebarGroup } from "starlight-typedoc" ;
4
4
import react from "@astrojs/react" ;
5
5
import path from "path" ;
6
- import { NodeGlobalsPolyfillPlugin } from "@esbuild-plugins/node-globals-polyfill" ;
7
6
8
7
export default defineConfig ( {
8
+ site : "https://jimp-dev.github.io" ,
9
+ base : "jimp" ,
9
10
integrations : [
10
11
react ( ) ,
11
12
starlight ( {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @jimp/docs" ,
3
3
"private" : true ,
4
- "type" : " module" ,
5
4
"version" : " 1.0.2" ,
5
+ "type" : " module" ,
6
6
"scripts" : {
7
7
"dev" : " astro dev" ,
8
8
"start" : " astro dev" ,
9
- "build-website " : " rm -rf dist && astro check && astro build" ,
9
+ "build" : " rm -rf dist && astro check && astro build" ,
10
10
"preview" : " astro preview" ,
11
11
"astro" : " astro"
12
12
},
13
13
"dependencies" : {
14
- "@astrojs/check" : " ^0.5.10 " ,
15
- "@astrojs/react" : " ^3.1.0 " ,
16
- "@astrojs/starlight" : " ^0.21.2 " ,
14
+ "@astrojs/check" : " ^0.9.3 " ,
15
+ "@astrojs/react" : " ^3.6.2 " ,
16
+ "@astrojs/starlight" : " ^0.26.1 " ,
17
17
"@esbuild-plugins/node-globals-polyfill" : " ^0.2.3" ,
18
18
"@jimp/core" : " workspace:*" ,
19
19
"@jimp/plugin-print" : " workspace:*" ,
20
- "astro" : " ^4.3.5 " ,
20
+ "astro" : " ^4.15.1 " ,
21
21
"eslint" : " ^8.57.0" ,
22
22
"jimp" : " workspace:*" ,
23
23
"react" : " ^18.2.0" ,
24
24
"react-dom" : " ^18.2.0" ,
25
25
"sharp" : " ^0.32.5" ,
26
- "starlight-typedoc" : " ^0.10 .0" ,
27
- "typedoc" : " ^0.25.12 " ,
28
- "typedoc-plugin-markdown" : " next " ,
26
+ "starlight-typedoc" : " ^0.15 .0" ,
27
+ "typedoc" : " ^0.26.6 " ,
28
+ "typedoc-plugin-markdown" : " 4.2.6 " ,
29
29
"typedoc-plugin-zod" : " ^1.1.2" ,
30
30
"typescript" : " ^5.4.3"
31
31
},
32
32
"devDependencies" : {
33
33
"@types/react" : " ^18.2.73"
34
- },
35
- "publishConfig" : {
36
- "access" : " public"
37
- },
38
- "sideEffects" : false
34
+ }
39
35
}
Original file line number Diff line number Diff line change @@ -5,13 +5,12 @@ export function load(app) {
5
5
const needsUpdate = new Set ( ) ;
6
6
7
7
const commentMap = new Map ( ) ;
8
- const needComment = new Set ( ) ;
9
8
10
9
let jimpClass ;
11
10
let options ;
12
11
13
12
app . converter . on ( Converter . EVENT_CREATE_SIGNATURE , onCreateDeclaration ) ;
14
- app . converter . on ( Converter . EVENT_CREATE_DECLARATION , ( c , r ) => {
13
+ app . converter . on ( Converter . EVENT_CREATE_DECLARATION , ( _ , r ) => {
15
14
if ( r . name === "JimpConstructorOptions" ) {
16
15
options = r ;
17
16
}
@@ -64,7 +63,7 @@ export function load(app) {
64
63
}
65
64
}
66
65
67
- app . converter . on ( Converter . EVENT_END , ( context ) => {
66
+ app . converter . on ( Converter . EVENT_END , ( ) => {
68
67
for ( const refOrig of needsUpdate ) {
69
68
const i = fullSignaturePath . get ( refOrig . name ) ;
70
69
Original file line number Diff line number Diff line change 1
- import {
2
- Converter ,
3
- ReflectionKind ,
4
- ReferenceType ,
5
- TypeScript ,
6
- Comment ,
7
- } from "typedoc" ;
1
+ import { Converter , TypeScript , Comment } from "typedoc" ;
8
2
9
3
function sourceKey ( source ) {
10
4
return source . fileName + ":" + source . line + ":" + source . character ;
@@ -38,7 +32,7 @@ export function load(app) {
38
32
toUpdate . set ( key , options ) ;
39
33
} ) ;
40
34
41
- function onCreateDeclaration ( context , refl ) {
35
+ function onCreateDeclaration ( _ , refl ) {
42
36
console . log ( refl . name ) ;
43
37
if ( refl . name . endsWith ( "Options" ) ) {
44
38
const declaration = refl . project
You can’t perform that action at this time.
0 commit comments