Skip to content

Commit

Permalink
Merge pull request #2 from podlite/202402-fix-detect-changes
Browse files Browse the repository at this point in the history
[202402] Fix detect changes
  • Loading branch information
zag authored Feb 17, 2024
2 parents ff7f5da + 4c5cf6b commit 9b80081
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 22 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.pod6
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
=TITLE CHANGES
=head1 Upcoming
=head1 0.1.15
=item * fix detect changes at index page
=head1 0.1.14
=item * C<=toc>, C<=markdown> are now standard blocks
=item * update dependencies
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `=Diagram`, `=Image` , `=toc` for [Podlite editor](https://github.com/podlite/podlite-desktop) is available for podlite-web too:
![Podlite editor Screenshot](./assets/podlite-editor.png)

### using Docker
Expand Down Expand Up @@ -113,7 +113,7 @@ yarn
yarn export-zip > file.zip
```

Explore `examples` dir for get more pod6 insights.
Explore `examples` dir for get more Podlite insights.

thank you!

Expand Down
22 changes: 17 additions & 5 deletions bin/makeDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ let notPages = allItemForPublish
.filter(a => !!a.pubdate)
.filter(a => !isDateInFuture(a.pubdate))

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

const notPagesWithPublishAttrs = addUrl(notPages)
Expand Down Expand Up @@ -210,11 +211,6 @@ const getStateVersion = (allREcords: typeof allRecords): string => {
)
}

const controlJson = {
stateVersion: getStateVersion(allRecords),
nextPublishTime: nextPublishTime,
}

// try to get index.from already exists records
const indexFilePath = `${POSTS_PATH}/${INDEX_PATH}`
const collectlinksMap = makeLinksMap(allRecords)
Expand Down Expand Up @@ -288,6 +284,22 @@ const siteData: SiteInfo = {
redirects,
}

const controlJson = {
stateVersion: getStateVersion([
...allRecords,
{
node: indexPageTree,
pubdate: '',
file: '',
title: '',
type: '',
publishUrl: '',
sources: [''],
},
]),
nextPublishTime: nextPublishTime,
}

export type DataFeedContent = typeof dataJson
const dataJson = {
all: allRecords,
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = withPlugins([
filename: './static/assets/[name]-[contenthash].[ext]',
},
})
config.resolve.symlinks = false
config.resolve.symlinks = false
return config
},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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.14",
"version": "0.1.15",
"private": true,
"scripts": {
"next_dev": "next dev",
Expand Down
4 changes: 2 additions & 2 deletions pub/index.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ This is a logo of L<podlite|https://github.com/podlite> project.
=end code
=Image logo.png
This is a logo of L<podlite|https://github.com/podlite> project.
This is a logo of L<Podlite|https://github.com/podlite> project.
You can try Podlite here: L<Podlite online| https://pod6.in>.
You can try Podlite here: L<https://pod6.in>.
Source of this page you can found L<here| https://github.com/podlite/podlite-web/blob/master/pub/index.pod6>
Expand Down
15 changes: 4 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2037,17 +2037,10 @@ __metadata:
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.30001283":
version: 1.0.30001312
resolution: "caniuse-lite@npm:1.0.30001312"
checksum: 753fb9ea1e02e999430b323a71b5acab5120f3b5fc0161b01669f54a3ef5c5296240b6ae9b79b12a3742e3aed216aa9ee3d5398a23c16d08625ccd376b79545d
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.30001332":
version: 1.0.30001344
resolution: "caniuse-lite@npm:1.0.30001344"
checksum: 9dba66f796dc98632dced4c5d487d0fad219e137a27c634eec68520f2e598a613e3371b9207e15a078689a629128eca898793e37fc98841821ab481bddad51b9
"caniuse-lite@npm:^1.0.30001283, caniuse-lite@npm:^1.0.30001332":
version: 1.0.30001587
resolution: "caniuse-lite@npm:1.0.30001587"
checksum: fb50aa9beaaae42f9feae92ce038f6ff71e97510f024ef1bef2666f3adcfd36d6c59e5675442e5fe795575193f71bc826cb7721d4b0f6d763e82d193bea57863
languageName: node
linkType: hard

Expand Down

0 comments on commit 9b80081

Please sign in to comment.