Skip to content

Commit

Permalink
[ci] release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 25, 2024
1 parent 65236a5 commit 70b07a2
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 35 deletions.
9 changes: 0 additions & 9 deletions .changeset/ninety-walls-applaud.md

This file was deleted.

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

## 0.3.11

### Patch Changes

- [`65236a5`](https://github.com/thegalactiks/explorer/commit/65236a57b6cd03f9c5869b940d16bf114a448109) Thanks [@emmanuelgautier](https://github.com/emmanuelgautier)! - bump packages and related content

- Updated dependencies [[`65236a5`](https://github.com/thegalactiks/explorer/commit/65236a57b6cd03f9c5869b940d16bf114a448109)]:
- @galactiks/config@0.3.4
- @galactiks/explorer@0.3.9
- @galactiks/sitemap@0.1.4

## 0.3.10

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.10",
"version": "0.3.11",
"description": "Galactiks Astro integration",
"author": "thegalactiks",
"type": "module",
Expand Down Expand Up @@ -51,7 +51,7 @@
"@astrojs/partytown": "^2.0",
"@astrojs/react": "^3.0",
"@astrojs/rss": "~4.0",
"@galactiks/sitemap": "^0.1.3",
"@galactiks/sitemap": "^0.1.4",
"astro": "^4.0",
"astro-robots-txt": "~1.0"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @galactiks/config

## 0.3.4

### Patch Changes

- [`65236a5`](https://github.com/thegalactiks/explorer/commit/65236a57b6cd03f9c5869b940d16bf114a448109) Thanks [@emmanuelgautier](https://github.com/emmanuelgautier)! - bump packages and related content

## 0.3.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galactiks/config",
"version": "0.3.3",
"version": "0.3.4",
"description": "Reading Galactiks configurations files and get config during website generation",
"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.7

### Patch Changes

- [`65236a5`](https://github.com/thegalactiks/explorer/commit/65236a57b6cd03f9c5869b940d16bf114a448109) Thanks [@emmanuelgautier](https://github.com/emmanuelgautier)! - bump packages and related content

## 0.2.6

### 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.6",
"version": "0.2.7",
"description": "Galactiks contentlayer configurations",
"author": "galactiks",
"type": "module",
Expand Down
10 changes: 10 additions & 0 deletions packages/explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @galactiks/explorer

## 0.3.9

### Patch Changes

- [`65236a5`](https://github.com/thegalactiks/explorer/commit/65236a57b6cd03f9c5869b940d16bf114a448109) Thanks [@emmanuelgautier](https://github.com/emmanuelgautier)! - bump packages and related content

- Updated dependencies [[`65236a5`](https://github.com/thegalactiks/explorer/commit/65236a57b6cd03f9c5869b940d16bf114a448109)]:
- @galactiks/config@0.3.4
- @galactiks/contentlayer@0.2.7

## 0.3.8

### 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.8",
"version": "0.3.9",
"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
21 changes: 12 additions & 9 deletions packages/explorer/src/content/repositories/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const dateNow = new Date();

const documentsByLanguagesSelector =
<T extends Pick<ContentlayerWebPageDocument, 'inLanguage'>>(documents: T[]) =>
(inLanguages: string[]) =>
documents.filter(
(_d) => !_d.inLanguage || inLanguages.indexOf(_d.inLanguage) !== -1
);
(inLanguages: string[]) =>
documents.filter(
(_d) => !_d.inLanguage || inLanguages.indexOf(_d.inLanguage) !== -1
);

const getGenerated = async (): Promise<ContentlayerDataExports> => {
if (!_generated) {
Expand Down Expand Up @@ -65,11 +65,14 @@ const getWebPageDocuments = async (): Promise<Content[]> => {
!('datePublished' in _d) ||
(_d.datePublished && new Date(_d.datePublished) <= dateNow)
)
.sort(
(a, b) =>
(('datePublished' in b) && b.datePublished && ('datePublished' in a) && a.datePublished)
? new Date(b.datePublished).getTime() - new Date(a.datePublished).getTime()
: 0
.sort((a, b) =>
'datePublished' in b &&
b.datePublished &&
'datePublished' in a &&
a.datePublished
? new Date(b.datePublished).getTime() -
new Date(a.datePublished).getTime()
: 0
);
_documents = await computeDocuments({
config,
Expand Down
21 changes: 10 additions & 11 deletions packages/explorer/src/content/repositories/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getPagesPartOfRecursively = async (
};

export const getSamePartOfPages = async (
content: Content,
content: Content
): Promise<Content[]> => {
if (!content.isPartOf) {
return [];
Expand All @@ -46,10 +46,8 @@ export const getSamePartOfPages = async (
inLanguage: content.inLanguage,
type: content.type,
});
return relatedPages.filter(
(doc) => doc.identifier !== content.identifier
);
}
return relatedPages.filter((doc) => doc.identifier !== content.identifier);
};

export const getRelatedPages = async (
content: Content,
Expand All @@ -62,13 +60,14 @@ export const getRelatedPages = async (
const excludeIdentifiers = exclude.map((doc) => doc.identifier);
return pages
.filter(
(doc) => doc.identifier !== content.identifier && !excludeIdentifiers.includes(doc.identifier)
(doc) =>
doc.identifier !== content.identifier &&
!excludeIdentifiers.includes(doc.identifier)
)
.map((doc) => {
const commonKeywords = Array.isArray(doc.keywords)
? doc.keywords.filter((keyword) =>
content.keywords?.includes(keyword)
).length
? doc.keywords.filter((keyword) => content.keywords?.includes(keyword))
.length
: 0;

return { doc, commonKeywords };
Expand Down Expand Up @@ -145,8 +144,8 @@ export const getSerieWorks = async (content: ContentWithIsPartOf) =>
)
.filter((w) => 'position' in w && typeof w.position === 'number')
.sort((a, b) => (a.position as number) - (b.position as number)) as Array<
Content & Required<Pick<Content, 'position'>>
>;
Content & Required<Pick<Content, 'position'>>
>;

export const getPreviousWorkSeries = async (
content: Content
Expand Down
6 changes: 6 additions & 0 deletions packages/sitemap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @galactiks/sitemap

## 0.1.4

### Patch Changes

- [`65236a5`](https://github.com/thegalactiks/explorer/commit/65236a57b6cd03f9c5869b940d16bf114a448109) Thanks [@emmanuelgautier](https://github.com/emmanuelgautier)! - bump packages and related content

## 0.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sitemap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galactiks/sitemap",
"version": "0.1.3",
"version": "0.1.4",
"description": "A simple sitemap generator for Galactiks",
"author": "thegalactiks",
"type": "module",
Expand Down

0 comments on commit 70b07a2

Please sign in to comment.