|
|
1 week ago | |
|---|---|---|
| .. | ||
| src | 727764f364 rewrite scss | 1 month ago |
| .gitignore | 8411984321 refs 120355: enable attachment refs routes | 3 years ago |
| README.md | 114944ee67 https://github.com/weseek/growi -> https://github.com/growilabs/growi | 6 months ago |
| package.json | f6daa5b62f replace shx rm with rimraf | 1 week ago |
| tsconfig.json | b406a3ecaf typecheck with tsgo | 2 months ago |
| turbo.json | 74abcc7367 tidy up turbo.json | 1 year ago |
| vite.client.config.ts | 61b0bf7ab1 add cssFileName for vite v5 style | 1 week ago |
| vite.server.config.ts | c8c16ff51d configure biome for remark-attachment-refs package | 10 months ago |
| vitest.config.ts | 635bebea84 fix tests for useSWRxRef useSWRxRefs | 7 months ago |
$ref tag$ref(file.txt)
$ref(file.txt, page=/somewhere/page)
$ref(5f17286fd7fbb1104fdbd111, page=/somewhere/page)
file : File name of reference file (default: the first argument)id : Attachment ID of reference file (default: the first argument)page : Target page path of reference file (default: current page)$refs tag$refs(/somewhere/page, regexp=/^file.*\.txt$/)
page : Target page path to search attachments (default: the first argument || current page)prefix : Page prefix to search attachmentsdepth : page depth to search attachmentsregexp : Regular Expression to retrieveformat : File format filtering$refimg tag$refimg(pict.png, width=50%, alt=Pic)
$refimg(5f17286fd7fbb1104fdbd111, width=50%, alt=Pic)
file : File name of reference file (default: the first argument)id : Attachment ID of reference file (default: the first argument)width : widthheight : heightmax-width : max-widthmax-height : max-heightalt : alt text$refsimg tag$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)
$refsimg(prefix=/somewhere, grid=autofill, grid-gap=1px)
page : Target page path to search attachments (default: the first argument || current page)prefix : Page prefix to search attachmentsdepth : page depth to search attachmentsregexp : Regular Expression to retrieveformat : File format filteringwidth : width
width=200px, width=50%height : height
height=100pxmax-width : max-width
max-width=200px, max-width=50%max-height : max-height
max-height=100pxdisplay : display property for image (use display: block when undefined)
grid option is set.grid : Grid layout settings
autofill : Grid layout with auto filling with 64px tracksautofill-xs : Grid layout with auto filling with 32px tracksautofill-sm : Grid layout with auto filling with 48px tracksautofill-md : Grid layout with auto filling with 64px tracksautofill-lg : Grid layout with auto filling with 128px tracksautofill-xl : Grid layout with auto filling with 192px trackscol-2 : Grid layout with 2 columnscol-3 : Grid layout with 3 columnscol-4 : Grid layout with 4 columnscol-5 : Grid layout with 5 columnscol-6 : Grid layout with 6 columnsgrid-gap : Grid gap
grid-gap=1px
$gallery tagShort-hand for $refsimg(grid=col4, grid-gap=1px).
$gallery(prefix=/somewhere/page)
See the options of refsimg
format option

