Skip to content

Commit 9b80081

Browse files
authored
Merge pull request #2 from podlite/202402-fix-detect-changes
[202402] Fix detect changes
2 parents ff7f5da + 4c5cf6b commit 9b80081

7 files changed

Lines changed: 29 additions & 22 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.15
5+
=item * fix detect changes at index page
46
=head1 0.1.14
57
=item * C<=toc>, C<=markdown> are now standard blocks
68
=item * update dependencies

README.md

Lines changed: 2 additions & 2 deletions
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 `=Diagram`, `=Image` , `=toc` for [Podlite editor](https://github.com/podlite/podlite-desktop) is available for podlite-web too:
3333
![Podlite editor Screenshot](./assets/podlite-editor.png)
3434

3535
### using Docker
@@ -113,7 +113,7 @@ yarn
113113
yarn export-zip > file.zip
114114
```
115115

116-
Explore `examples` dir for get more pod6 insights.
116+
Explore `examples` dir for get more Podlite insights.
117117

118118
thank you!
119119

bin/makeDataSource.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ let notPages = allItemForPublish
109109
.filter(a => !!a.pubdate)
110110
.filter(a => !isDateInFuture(a.pubdate))
111111

112+
console.log(JSON.stringify(notPages, null, 2))
112113
let Pages = allItemForPublish.filter(a => a.publishUrl).filter(a => !(a.pubdate && isDateInFuture(a.pubdate)))
113114

114115
const notPagesWithPublishAttrs = addUrl(notPages)
@@ -210,11 +211,6 @@ const getStateVersion = (allREcords: typeof allRecords): string => {
210211
)
211212
}
212213

213-
const controlJson = {
214-
stateVersion: getStateVersion(allRecords),
215-
nextPublishTime: nextPublishTime,
216-
}
217-
218214
// try to get index.from already exists records
219215
const indexFilePath = `${POSTS_PATH}/${INDEX_PATH}`
220216
const collectlinksMap = makeLinksMap(allRecords)
@@ -288,6 +284,22 @@ const siteData: SiteInfo = {
288284
redirects,
289285
}
290286

287+
const controlJson = {
288+
stateVersion: getStateVersion([
289+
...allRecords,
290+
{
291+
node: indexPageTree,
292+
pubdate: '',
293+
file: '',
294+
title: '',
295+
type: '',
296+
publishUrl: '',
297+
sources: [''],
298+
},
299+
]),
300+
nextPublishTime: nextPublishTime,
301+
}
302+
291303
export type DataFeedContent = typeof dataJson
292304
const dataJson = {
293305
all: allRecords,

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = withPlugins([
3737
filename: './static/assets/[name]-[contenthash].[ext]',
3838
},
3939
})
40-
config.resolve.symlinks = false
40+
config.resolve.symlinks = false
4141
return config
4242
},
4343
},

package.json

Lines changed: 1 addition & 1 deletion
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.14",
4+
"version": "0.1.15",
55
"private": true,
66
"scripts": {
77
"next_dev": "next dev",

pub/index.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ This is a logo of L<podlite|https://github.com/podlite> project.
101101
102102
=end code
103103
=Image logo.png
104-
This is a logo of L<podlite|https://github.com/podlite> project.
104+
This is a logo of L<Podlite|https://github.com/podlite> project.
105105
106-
You can try Podlite here: L<Podlite online| https://pod6.in>.
106+
You can try Podlite here: L<https://pod6.in>.
107107
108108
Source of this page you can found L<here| https://github.com/podlite/podlite-web/blob/master/pub/index.pod6>
109109

yarn.lock

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,17 +2037,10 @@ __metadata:
20372037
languageName: node
20382038
linkType: hard
20392039

2040-
"caniuse-lite@npm:^1.0.30001283":
2041-
version: 1.0.30001312
2042-
resolution: "caniuse-lite@npm:1.0.30001312"
2043-
checksum: 753fb9ea1e02e999430b323a71b5acab5120f3b5fc0161b01669f54a3ef5c5296240b6ae9b79b12a3742e3aed216aa9ee3d5398a23c16d08625ccd376b79545d
2044-
languageName: node
2045-
linkType: hard
2046-
2047-
"caniuse-lite@npm:^1.0.30001332":
2048-
version: 1.0.30001344
2049-
resolution: "caniuse-lite@npm:1.0.30001344"
2050-
checksum: 9dba66f796dc98632dced4c5d487d0fad219e137a27c634eec68520f2e598a613e3371b9207e15a078689a629128eca898793e37fc98841821ab481bddad51b9
2040+
"caniuse-lite@npm:^1.0.30001283, caniuse-lite@npm:^1.0.30001332":
2041+
version: 1.0.30001587
2042+
resolution: "caniuse-lite@npm:1.0.30001587"
2043+
checksum: fb50aa9beaaae42f9feae92ce038f6ff71e97510f024ef1bef2666f3adcfd36d6c59e5675442e5fe795575193f71bc826cb7721d4b0f6d763e82d193bea57863
20512044
languageName: node
20522045
linkType: hard
20532046

0 commit comments

Comments
 (0)