diff --git a/CHANGELOG.pod6 b/CHANGELOG.pod6 index 30b07f9..969a04f 100644 --- a/CHANGELOG.pod6 +++ b/CHANGELOG.pod6 @@ -1,6 +1,8 @@ =TITLE CHANGES =head1 Upcoming +=head1 0.1.17 +=item * update dependencies =head1 0.1.15 =item * update dependencies =item * =Mermaid, =picture support diff --git a/README.md b/README.md index 4810f9a..06af51d 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Here is demo page from `pub` directory. You can edit pub/\*.pod6 files and see changes after save. -All features like `=Diagram`, `=Image` , `=toc` for [Podlite editor](https://github.com/podlite/podlite-desktop) is available for podlite-web too: +All features like `=Mermaid`, `=picture` , `=toc` for [Podlite editor](https://github.com/podlite/podlite-desktop) are available for podlite-web as well: ![Podlite editor Screenshot](./assets/podlite-editor.png) ### using Docker diff --git a/package.json b/package.json index 97a1743..e404be9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "podlite-web", "description": "A minimal, lightweight starter for creating static blogs/sites using nexjs and Podlite markup language", - "version": "0.1.16", + "version": "0.1.17", "private": true, "scripts": { "next_dev": "next dev", @@ -15,7 +15,7 @@ "ci": "rimraf node_modules && yarn", "clean": "rimraf 'built/!(.gitignore)' 'public/assets/!(.gitignore)' .next out 'public/!(.gitignore)' site", "process": "yarn clean && mkdir -p built && ts-node -P tsconfig-node.json bin/makeDataSource.ts", - "dev": "npx nodemon --watch ./examples --watch ./pub -e pod6 --exec 'yarn clean && yarn process && next dev'", + "dev": "npx nodemon --watch ${POSTS_PATH:-t} --watch ./examples --watch ./pub -e pod6 --exec 'yarn clean && yarn process && next dev'", "format": "npx prettier --write '**/*.{js,jsx,ts,tsx,json,md,mjs}'" }, "dependencies": { @@ -24,8 +24,8 @@ "react-dom": "17.0.2" }, "devDependencies": { - "@podlite/schema": "^0.0.16", - "@podlite/to-jsx": "^0.0.20", + "@podlite/schema": "^0.0.17", + "@podlite/to-jsx": "^0.0.21", "@types/jest": "^27.5.1", "@types/node": "17.0.17", "@types/react": "17.0.39", diff --git a/src/node-utils.ts b/src/node-utils.ts index 6cde920..9df5a9c 100644 --- a/src/node-utils.ts +++ b/src/node-utils.ts @@ -110,9 +110,9 @@ export function parseFiles(path: string) { file: f, } }) - // console.warn( - // ` pages: ${pages.length} articles: ${articles.length}, notes: ${notes.length} from ${f}` - // ) + console.warn( + ` pages: ${pages.length} articles: ${articles.length}, notes: ${notes.length} from ${f}` + ) return [...pages, ...articles, ...notes].map(item => { return { ...item, file: f } }) diff --git a/yarn.lock b/yarn.lock index 3e81aaa..6e0b498 100644 --- a/yarn.lock +++ b/yarn.lock @@ -948,6 +948,22 @@ __metadata: languageName: node linkType: hard +"@podlite/diagram@npm:^0.0.21": + version: 0.0.21 + resolution: "@podlite/diagram@npm:0.0.21" + dependencies: + "@podlite/schema": 0.0.17 + mermaid: 8.12.1 + react-is: ^17.0.2 + peerDependencies: + mermaid: "*" + react: "^16.0.0 || ^17.0.0 " + react-dom: ^16.0.0 || ^17.0.0 + react-is: "*" + checksum: 47bdd433e808dca701852ffc050dd6a64711df8db56e7b9bf21835a5fd90c669f0d9686acc8052602cf1da6cfbbe04123b3592d71124e7a5d58266a0e8ffa194 + languageName: node + linkType: hard + "@podlite/image@npm:^0.0.15": version: 0.0.15 resolution: "@podlite/image@npm:0.0.15" @@ -960,6 +976,36 @@ __metadata: languageName: node linkType: hard +"@podlite/image@npm:^0.0.16": + version: 0.0.16 + resolution: "@podlite/image@npm:0.0.16" + dependencies: + "@podlite/schema": ^0.0.17 + peerDependencies: + react: "^16.0.0 || ^17.0.0 " + react-dom: ^16.0.0 || ^17.0.0 + checksum: bd0034c5f06f106cf39303abcc7cb23ae9b086fd82fdd10396bb81e2a5f3723cb9d4dfd856a8c1cbaf1c6ebedb34c92dc24ab41387325d814694daa19cc6fdd8 + languageName: node + linkType: hard + +"@podlite/markdown@npm:0.0.10": + version: 0.0.10 + resolution: "@podlite/markdown@npm:0.0.10" + dependencies: + "@podlite/schema": 0.0.17 + react: "^16.0.0 || ^17.0.0 " + react-dom: ^16.0.0 || ^17.0.0 + react-is: ^17.0.0 + remark-gfm: ^3.0.1 + remark-parse: ^10.0.1 + unified: ^10.1.2 + peerDependencies: + react: "^16.0.0 || ^17.0.0 " + react-dom: ^16.0.0 || ^17.0.0 + checksum: 5f42082887db1fb84cfea95f9cacf92df2d77f2453799a1d6d64a710a05dc041f7e4b5bc75ad210f35c2f9f96b8e0f186d91a53b130b4a1c8ca9cb334fbf65fe + languageName: node + linkType: hard + "@podlite/markdown@npm:0.0.9": version: 0.0.9 resolution: "@podlite/markdown@npm:0.0.9" @@ -990,20 +1036,47 @@ __metadata: languageName: node linkType: hard -"@podlite/to-jsx@npm:^0.0.20": - version: 0.0.20 - resolution: "@podlite/to-jsx@npm:0.0.20" +"@podlite/schema@npm:0.0.17, @podlite/schema@npm:^0.0.17": + version: 0.0.17 + resolution: "@podlite/schema@npm:0.0.17" dependencies: - "@podlite/diagram": ^0.0.20 - "@podlite/schema": 0.0.16 - podlite: 0.0.29 + ajv: ^7.2.3 + events: ^3.1.0 + json-pointer: ^0.6.1 + nanoid: 3.1.30 + checksum: b59506f203f656f4dc60dea1910470c0d4073f3992b856b25e10aa3ad8f7eb8b5ae97c12ca3801c87924ed8482758a13c8d96b06eafcc0be6ab19712a8d888d0 + languageName: node + linkType: hard + +"@podlite/to-jsx@npm:^0.0.21": + version: 0.0.21 + resolution: "@podlite/to-jsx@npm:0.0.21" + dependencies: + "@podlite/diagram": ^0.0.21 + "@podlite/schema": 0.0.17 + podlite: 0.0.30 react-is: ^17.0.0 peerDependencies: "@podlite/diagram": "*" "@podlite/schema": "*" react: "^16.0.0 || ^17.0.0 " react-dom: ^16.0.0 || ^17.0.0 - checksum: 963a8bfd5d19f69dffdb0edc99f296ebbd40fb8ce920acbe0c9a357b7c7de07ec6ac31f2e3424018dd9796191f68d0b5583921292b7d8234809aabcb9bf9829c + checksum: 553cd72690a5eeaaf43fff915e193bda7bd09c8cda554fa2fe954327f9c6f0fa1d28fa211b4622baf94b5848b44828ade21e398a8d2c9a2d498001fd25de691b + languageName: node + linkType: hard + +"@podlite/toc@npm:0.0.10": + version: 0.0.10 + resolution: "@podlite/toc@npm:0.0.10" + dependencies: + "@podlite/schema": 0.0.17 + react: "^16.0.0 || ^17.0.0 " + react-dom: ^16.0.0 || ^17.0.0 + react-is: ^17.0.0 + peerDependencies: + react: "^16.0.0 || ^17.0.0 " + react-dom: ^16.0.0 || ^17.0.0 + checksum: 84bb73e4f362295a26bd7a98e0f23c29f2dc66c43203a5a59e5eb1132de59f0d827a3471fe9dda0c21db4662ccb8a6dab1c92ec824fc995889dda1eba06a32a0 languageName: node linkType: hard @@ -7075,8 +7148,8 @@ __metadata: version: 0.0.0-use.local resolution: "podlite-web@workspace:." dependencies: - "@podlite/schema": ^0.0.16 - "@podlite/to-jsx": ^0.0.20 + "@podlite/schema": ^0.0.17 + "@podlite/to-jsx": ^0.0.21 "@types/jest": ^27.5.1 "@types/node": 17.0.17 "@types/react": 17.0.39 @@ -7108,7 +7181,24 @@ __metadata: languageName: unknown linkType: soft -"podlite@npm:0.0.29, podlite@npm:^0.0.29": +"podlite@npm:0.0.30": + version: 0.0.30 + resolution: "podlite@npm:0.0.30" + dependencies: + "@podlite/diagram": ^0.0.21 + "@podlite/image": ^0.0.16 + "@podlite/markdown": 0.0.10 + "@podlite/schema": ^0.0.17 + "@podlite/toc": 0.0.10 + nanoid: 3.1.30 + peerDependencies: + react: ^16.0.0 || ^17.0.0 + react-dom: ^16.0.0 || ^17.0.0 + checksum: 2cad5c6e0c29d323099efdd5bbd5cd95045e915ca9056df461534417f69a4f753bdcd743b938fb973e35658b1460a9952c6c9669f63b466e986f5d3e5c342df9 + languageName: node + linkType: hard + +"podlite@npm:^0.0.29": version: 0.0.29 resolution: "podlite@npm:0.0.29" dependencies: