Skip to content

Commit

Permalink
Merge pull request #170 from thegalactiks/changeset-release/main
Browse files Browse the repository at this point in the history
[ci] release
  • Loading branch information
emmanuelgautier authored Feb 24, 2024
2 parents e77bc78 + 20cd3f9 commit 22b9419
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 14 deletions.
6 changes: 0 additions & 6 deletions .changeset/soft-mails-bake.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/adapters/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @galactiks/astro-integration

## 0.3.2

### Patch Changes

- Updated dependencies [[`7111a8e`](https://github.com/thegalactiks/explorer/commit/7111a8e0615cd4bc32758c0f82e4eb501a8f1a55)]:
- @galactiks/explorer@0.3.2

## 0.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galactiks/astro-integration",
"version": "0.3.1",
"version": "0.3.2",
"description": "Galactiks Astro integration",
"author": "thegalactiks",
"type": "module",
Expand Down
6 changes: 6 additions & 0 deletions packages/contentlayer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @galactiks/contentlayer

## 0.2.2

### Patch Changes

- [#169](https://github.com/thegalactiks/explorer/pull/169) [`7111a8e`](https://github.com/thegalactiks/explorer/commit/7111a8e0615cd4bc32758c0f82e4eb501a8f1a55) Thanks [@emmanuelgautier](https://github.com/emmanuelgautier)! - Index file should be considered as category listing page when the type is article

## 0.2.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/contentlayer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galactiks/contentlayer",
"version": "0.2.1",
"version": "0.2.2",
"description": "Galactiks contentlayer configurations",
"author": "galactiks",
"type": "module",
Expand Down
3 changes: 2 additions & 1 deletion packages/contentlayer/src/document-types/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ContentLayerPageFields } from '../fields/page.js';

export const PageDocumentType = defineDocumentType(() => ({
...ContentLayerPageFields,
filePathPattern: '{pages/**/*.md?(x),articles/**/index.md?(x),places/**/index.md?(x),products/**/index.md?(x)}',
filePathPattern:
'{pages/**/*.md?(x),articles/**/index.md?(x),places/**/index.md?(x),products/**/index.md?(x)}',
contentType: 'mdx',
}));
9 changes: 9 additions & 0 deletions packages/explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @galactiks/explorer

## 0.3.2

### Patch Changes

- [#169](https://github.com/thegalactiks/explorer/pull/169) [`7111a8e`](https://github.com/thegalactiks/explorer/commit/7111a8e0615cd4bc32758c0f82e4eb501a8f1a55) Thanks [@emmanuelgautier](https://github.com/emmanuelgautier)! - Index file should be considered as category listing page when the type is article

- Updated dependencies [[`7111a8e`](https://github.com/thegalactiks/explorer/commit/7111a8e0615cd4bc32758c0f82e4eb501a8f1a55)]:
- @galactiks/contentlayer@0.2.2

## 0.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galactiks/explorer",
"version": "0.3.1",
"version": "0.3.2",
"description": "Ensure Galactiks content model consistence, explore content built with ContentLayer and create dynamically missing pages and fields for SEO purposes",
"author": "thegalactiks",
"type": "module",
Expand Down
22 changes: 18 additions & 4 deletions packages/explorer/src/content/hydrate/listing-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ export const computeRemainingListingPages =
isInLanguage(_a, _d.inLanguage)
) === false
) {
debug('Creating parent page', _isPartOfIdentifier, acc.filter(_ => _.type === 'Page').map(_ => ({ type: _.type, identifier: _.identifier, inLanguage: _.inLanguage })));
debug(
'Creating parent page',
_isPartOfIdentifier,
acc
.filter((_) => _.type === 'Page')
.map((_) => ({
type: _.type,
identifier: _.identifier,
inLanguage: _.inLanguage,
}))
);

let translationOfWork: Id | undefined = undefined;
if (_d.translationOfWork && _d.translationOfWork['@id']) {
Expand Down Expand Up @@ -83,9 +93,13 @@ export const computeRemainingListingPages =
_d.keywords
.map(createIdentifierFromString)
.filter(
(_k) => acc.some(
(_a) => _a.type === 'Tag' && _a.identifier === _k && isInLanguage(_a, _d.inLanguage)
) === false
(_k) =>
acc.some(
(_a) =>
_a.type === 'Tag' &&
_a.identifier === _k &&
isInLanguage(_a, _d.inLanguage)
) === false
)
.map((_k) => {
debug('Creating keyword page', _k);
Expand Down

0 comments on commit 22b9419

Please sign in to comment.