Skip to content

Commit e61671e

Browse files
authored
Merge pull request #3 from podlite/202402-fix-toc
[202402] Update toc
2 parents 7d2c6e8 + b9344e1 commit e61671e

5 files changed

Lines changed: 110 additions & 18 deletions

File tree

CHANGELOG.pod6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
=TITLE CHANGES
22
33
=head1 Upcoming
4+
=head1 0.1.17
5+
=item * update dependencies
46
=head1 0.1.15
57
=item * update dependencies
68
=item * =Mermaid, =picture support

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Here is demo page from `pub` directory.
2929

3030
You can edit pub/\*.pod6 files and see changes after save.
3131

32-
All features like `=Diagram`, `=Image` , `=toc` for [Podlite editor](https://github.com/podlite/podlite-desktop) is available for podlite-web too:
32+
All features like `=Mermaid`, `=picture` , `=toc` for [Podlite editor](https://github.com/podlite/podlite-desktop) are available for podlite-web as well:
3333
![Podlite editor Screenshot](./assets/podlite-editor.png)
3434

3535
### using Docker

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "podlite-web",
33
"description": "A minimal, lightweight starter for creating static blogs/sites using nexjs and Podlite markup language",
4-
"version": "0.1.16",
4+
"version": "0.1.17",
55
"private": true,
66
"scripts": {
77
"next_dev": "next dev",
@@ -15,7 +15,7 @@
1515
"ci": "rimraf node_modules && yarn",
1616
"clean": "rimraf 'built/!(.gitignore)' 'public/assets/!(.gitignore)' .next out 'public/!(.gitignore)' site",
1717
"process": "yarn clean && mkdir -p built && ts-node -P tsconfig-node.json bin/makeDataSource.ts",
18-
"dev": "npx nodemon --watch ./examples --watch ./pub -e pod6 --exec 'yarn clean && yarn process && next dev'",
18+
"dev": "npx nodemon --watch ${POSTS_PATH:-t} --watch ./examples --watch ./pub -e pod6 --exec 'yarn clean && yarn process && next dev'",
1919
"format": "npx prettier --write '**/*.{js,jsx,ts,tsx,json,md,mjs}'"
2020
},
2121
"dependencies": {
@@ -24,8 +24,8 @@
2424
"react-dom": "17.0.2"
2525
},
2626
"devDependencies": {
27-
"@podlite/schema": "^0.0.16",
28-
"@podlite/to-jsx": "^0.0.20",
27+
"@podlite/schema": "^0.0.17",
28+
"@podlite/to-jsx": "^0.0.21",
2929
"@types/jest": "^27.5.1",
3030
"@types/node": "17.0.17",
3131
"@types/react": "17.0.39",

src/node-utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ export function parseFiles(path: string) {
110110
file: f,
111111
}
112112
})
113-
// console.warn(
114-
// ` pages: ${pages.length} articles: ${articles.length}, notes: ${notes.length} from ${f}`
115-
// )
113+
console.warn(
114+
` pages: ${pages.length} articles: ${articles.length}, notes: ${notes.length} from ${f}`
115+
)
116116
return [...pages, ...articles, ...notes].map(item => {
117117
return { ...item, file: f }
118118
})

yarn.lock

Lines changed: 100 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,22 @@ __metadata:
948948
languageName: node
949949
linkType: hard
950950

951+
"@podlite/diagram@npm:^0.0.21":
952+
version: 0.0.21
953+
resolution: "@podlite/diagram@npm:0.0.21"
954+
dependencies:
955+
"@podlite/schema": 0.0.17
956+
mermaid: 8.12.1
957+
react-is: ^17.0.2
958+
peerDependencies:
959+
mermaid: "*"
960+
react: "^16.0.0 || ^17.0.0 "
961+
react-dom: ^16.0.0 || ^17.0.0
962+
react-is: "*"
963+
checksum: 47bdd433e808dca701852ffc050dd6a64711df8db56e7b9bf21835a5fd90c669f0d9686acc8052602cf1da6cfbbe04123b3592d71124e7a5d58266a0e8ffa194
964+
languageName: node
965+
linkType: hard
966+
951967
"@podlite/image@npm:^0.0.15":
952968
version: 0.0.15
953969
resolution: "@podlite/image@npm:0.0.15"
@@ -960,6 +976,36 @@ __metadata:
960976
languageName: node
961977
linkType: hard
962978

979+
"@podlite/image@npm:^0.0.16":
980+
version: 0.0.16
981+
resolution: "@podlite/image@npm:0.0.16"
982+
dependencies:
983+
"@podlite/schema": ^0.0.17
984+
peerDependencies:
985+
react: "^16.0.0 || ^17.0.0 "
986+
react-dom: ^16.0.0 || ^17.0.0
987+
checksum: bd0034c5f06f106cf39303abcc7cb23ae9b086fd82fdd10396bb81e2a5f3723cb9d4dfd856a8c1cbaf1c6ebedb34c92dc24ab41387325d814694daa19cc6fdd8
988+
languageName: node
989+
linkType: hard
990+
991+
"@podlite/markdown@npm:0.0.10":
992+
version: 0.0.10
993+
resolution: "@podlite/markdown@npm:0.0.10"
994+
dependencies:
995+
"@podlite/schema": 0.0.17
996+
react: "^16.0.0 || ^17.0.0 "
997+
react-dom: ^16.0.0 || ^17.0.0
998+
react-is: ^17.0.0
999+
remark-gfm: ^3.0.1
1000+
remark-parse: ^10.0.1
1001+
unified: ^10.1.2
1002+
peerDependencies:
1003+
react: "^16.0.0 || ^17.0.0 "
1004+
react-dom: ^16.0.0 || ^17.0.0
1005+
checksum: 5f42082887db1fb84cfea95f9cacf92df2d77f2453799a1d6d64a710a05dc041f7e4b5bc75ad210f35c2f9f96b8e0f186d91a53b130b4a1c8ca9cb334fbf65fe
1006+
languageName: node
1007+
linkType: hard
1008+
9631009
"@podlite/markdown@npm:0.0.9":
9641010
version: 0.0.9
9651011
resolution: "@podlite/markdown@npm:0.0.9"
@@ -990,20 +1036,47 @@ __metadata:
9901036
languageName: node
9911037
linkType: hard
9921038

993-
"@podlite/to-jsx@npm:^0.0.20":
994-
version: 0.0.20
995-
resolution: "@podlite/to-jsx@npm:0.0.20"
1039+
"@podlite/schema@npm:0.0.17, @podlite/schema@npm:^0.0.17":
1040+
version: 0.0.17
1041+
resolution: "@podlite/schema@npm:0.0.17"
9961042
dependencies:
997-
"@podlite/diagram": ^0.0.20
998-
"@podlite/schema": 0.0.16
999-
podlite: 0.0.29
1043+
ajv: ^7.2.3
1044+
events: ^3.1.0
1045+
json-pointer: ^0.6.1
1046+
nanoid: 3.1.30
1047+
checksum: b59506f203f656f4dc60dea1910470c0d4073f3992b856b25e10aa3ad8f7eb8b5ae97c12ca3801c87924ed8482758a13c8d96b06eafcc0be6ab19712a8d888d0
1048+
languageName: node
1049+
linkType: hard
1050+
1051+
"@podlite/to-jsx@npm:^0.0.21":
1052+
version: 0.0.21
1053+
resolution: "@podlite/to-jsx@npm:0.0.21"
1054+
dependencies:
1055+
"@podlite/diagram": ^0.0.21
1056+
"@podlite/schema": 0.0.17
1057+
podlite: 0.0.30
10001058
react-is: ^17.0.0
10011059
peerDependencies:
10021060
"@podlite/diagram": "*"
10031061
"@podlite/schema": "*"
10041062
react: "^16.0.0 || ^17.0.0 "
10051063
react-dom: ^16.0.0 || ^17.0.0
1006-
checksum: 963a8bfd5d19f69dffdb0edc99f296ebbd40fb8ce920acbe0c9a357b7c7de07ec6ac31f2e3424018dd9796191f68d0b5583921292b7d8234809aabcb9bf9829c
1064+
checksum: 553cd72690a5eeaaf43fff915e193bda7bd09c8cda554fa2fe954327f9c6f0fa1d28fa211b4622baf94b5848b44828ade21e398a8d2c9a2d498001fd25de691b
1065+
languageName: node
1066+
linkType: hard
1067+
1068+
"@podlite/toc@npm:0.0.10":
1069+
version: 0.0.10
1070+
resolution: "@podlite/toc@npm:0.0.10"
1071+
dependencies:
1072+
"@podlite/schema": 0.0.17
1073+
react: "^16.0.0 || ^17.0.0 "
1074+
react-dom: ^16.0.0 || ^17.0.0
1075+
react-is: ^17.0.0
1076+
peerDependencies:
1077+
react: "^16.0.0 || ^17.0.0 "
1078+
react-dom: ^16.0.0 || ^17.0.0
1079+
checksum: 84bb73e4f362295a26bd7a98e0f23c29f2dc66c43203a5a59e5eb1132de59f0d827a3471fe9dda0c21db4662ccb8a6dab1c92ec824fc995889dda1eba06a32a0
10071080
languageName: node
10081081
linkType: hard
10091082

@@ -7075,8 +7148,8 @@ __metadata:
70757148
version: 0.0.0-use.local
70767149
resolution: "podlite-web@workspace:."
70777150
dependencies:
7078-
"@podlite/schema": ^0.0.16
7079-
"@podlite/to-jsx": ^0.0.20
7151+
"@podlite/schema": ^0.0.17
7152+
"@podlite/to-jsx": ^0.0.21
70807153
"@types/jest": ^27.5.1
70817154
"@types/node": 17.0.17
70827155
"@types/react": 17.0.39
@@ -7108,7 +7181,24 @@ __metadata:
71087181
languageName: unknown
71097182
linkType: soft
71107183

7111-
"podlite@npm:0.0.29, podlite@npm:^0.0.29":
7184+
"podlite@npm:0.0.30":
7185+
version: 0.0.30
7186+
resolution: "podlite@npm:0.0.30"
7187+
dependencies:
7188+
"@podlite/diagram": ^0.0.21
7189+
"@podlite/image": ^0.0.16
7190+
"@podlite/markdown": 0.0.10
7191+
"@podlite/schema": ^0.0.17
7192+
"@podlite/toc": 0.0.10
7193+
nanoid: 3.1.30
7194+
peerDependencies:
7195+
react: ^16.0.0 || ^17.0.0
7196+
react-dom: ^16.0.0 || ^17.0.0
7197+
checksum: 2cad5c6e0c29d323099efdd5bbd5cd95045e915ca9056df461534417f69a4f753bdcd743b938fb973e35658b1460a9952c6c9669f63b466e986f5d3e5c342df9
7198+
languageName: node
7199+
linkType: hard
7200+
7201+
"podlite@npm:^0.0.29":
71127202
version: 0.0.29
71137203
resolution: "podlite@npm:0.0.29"
71147204
dependencies:

0 commit comments

Comments
 (0)