@paroicms/site-generator-plugin 0.27.9 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/dist/generator/fake-content-generator/content-helpers.js +13 -0
- package/backend/dist/generator/fake-content-generator/create-database-with-fake-content.js +10 -23
- package/backend/dist/generator/fake-content-generator/create-node-contents.js +57 -98
- package/backend/dist/generator/fake-content-generator/fill-lnodes.js +177 -52
- package/backend/dist/generator/fake-content-generator/fill-site-fields.js +22 -54
- package/backend/dist/generator/fake-content-generator/fill-taxonomy-fields.js +15 -24
- package/backend/dist/generator/fake-content-generator/generate-fake-content.js +4 -2
- package/backend/dist/generator/fake-content-generator/invoke-generate-fake-content.js +11 -3
- package/backend/dist/generator/lib/create-prompt.js +2 -2
- package/backend/dist/generator/lib/parse-llm-response.js +65 -10
- package/backend/dist/generator/site-generator/schema-with-authors.js +69 -0
- package/backend/dist/generator/site-generator/site-generator.js +18 -3
- package/backend/dist/generator/site-generator/theme-creator.js +4 -2
- package/backend/dist/lib/create-raw-context.js +1 -1
- package/backend/dist/lib/site-remover.js +3 -1
- package/backend/prompts/generate-fake-content-multiple-terms.md +21 -0
- package/frontend/dist/frontend.mjs +15 -15
- package/package.json +8 -9
- package/backend/prompts/0-context.md +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/site-generator-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "ParoiCMS Site Generator Plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -28,10 +28,9 @@
|
|
|
28
28
|
"test": "vitest run"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@anthropic-ai/sdk": "~0.
|
|
31
|
+
"@anthropic-ai/sdk": "~0.70.1",
|
|
32
32
|
"@mistralai/mistralai": "~1.10.0",
|
|
33
|
-
"@paroicms/
|
|
34
|
-
"@paroicms/script-lib": "0.3.8",
|
|
33
|
+
"@paroicms/script-lib": "0.3.9",
|
|
35
34
|
"arktype": "~2.1.27",
|
|
36
35
|
"jsonwebtoken": "~9.0.2",
|
|
37
36
|
"knex": "~3.1.0",
|
|
@@ -44,13 +43,13 @@
|
|
|
44
43
|
"@paroicms/public-server-lib": "0"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@paroicms/internal-anywhere-lib": "1.35.
|
|
48
|
-
"@paroicms/internal-server-lib": "1.22.
|
|
49
|
-
"@paroicms/public-server-lib": "0.
|
|
46
|
+
"@paroicms/internal-anywhere-lib": "1.35.9",
|
|
47
|
+
"@paroicms/internal-server-lib": "1.22.12",
|
|
48
|
+
"@paroicms/public-server-lib": "0.49.0",
|
|
50
49
|
"@types/node": "~24.10.1",
|
|
51
|
-
"marked": "~17.0.
|
|
50
|
+
"marked": "~17.0.1",
|
|
52
51
|
"nodemon": "~3.1.11",
|
|
53
|
-
"rimraf": "~6.1.
|
|
52
|
+
"rimraf": "~6.1.2",
|
|
54
53
|
"typescript": "~5.9.3"
|
|
55
54
|
},
|
|
56
55
|
"files": [
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
We use **ParoiCMS** for creating a website. With this technology, a web page is called a **document**. A website is a tree of documents. The home page is a document, the site section with news posts is a document, each post is a document. Each document has its own path in the URL.
|
|
2
|
-
|
|
3
|
-
There is a special kind of documents that we want to detect: **routing documents** are the site sections. They can't be duplicated. They are never items of a list. For example, the homepage document, the search-page document, the "about us" document, the parent page of blog posts are _routing documents_. Other documents are **regular documents**, and they are always items of a list.
|
|
4
|
-
|
|
5
|
-
A document always has the following base attributes: a localized _title_, a _publish date_, an optional _featured image_, and a _draft_ flag. Additionally, a sequence of **fields** can be defined.
|
|
6
|
-
|
|
7
|
-
A document can contain lists of **parts**. A _part_ is a sub-section of a document, or of another _part_. A part always has a _publish date_ and a _draft_ flag. It may contain a sequence of fields and/or a sequence of child parts. A part is always an item of a list.
|
|
8
|
-
|
|
9
|
-
Any routing document which is parent of regular documents can be used as a **taxonomy**. Then, the terms are the regular child documents. Then a taxonomy can be used in any document or part, by declaring a **labeling field**. There is a special taxonomy: the **authors** taxonomy can be declared, but it is implicitly defined when it is omitted. But the authors labeling field must be explicitly declared in document and part types when needed.
|
|
10
|
-
|
|
11
|
-
Documents and parts are **nodes** in a tree. Children are part of the definition of a node type. When 2 node types appear identical, but their children types are not the same, then they are 2 different node types and they should have 2 different names.
|