diff --git a/ng-projects/scullyDocs/src/assets/scully-routes.json b/ng-projects/scullyDocs/src/assets/scully-routes.json index d87bfccf2..1ab06e441 100644 --- a/ng-projects/scullyDocs/src/assets/scully-routes.json +++ b/ng-projects/scullyDocs/src/assets/scully-routes.json @@ -1,6 +1,6 @@ [ {"route": "/"}, - {"route": "/docs/blog", "title": "Adding Blog Support", "order": 600, "sourceFile": "blog.md"}, + {"route": "/docs/blog", "title": "Create a blog", "order": 600, "sourceFile": "blog.md"}, { "route": "/docs/CODE_OF_CONDUCT", "title": "Code of Conduct", @@ -29,6 +29,12 @@ "order": 100, "sourceFile": "pre-requisites.md" }, + { + "route": "/docs/pre-requisites_es", + "title": "Requisitos previos", + "order": 100, + "sourceFile": "pre-requisites_es.md" + }, { "route": "/docs/recommended-plugins", "title": "List of Plugins", diff --git a/scully/renderPlugins/puppeteerRenderPlugin.ts b/scully/renderPlugins/puppeteerRenderPlugin.ts index 0b18049d9..8273db5ed 100644 --- a/scully/renderPlugins/puppeteerRenderPlugin.ts +++ b/scully/renderPlugins/puppeteerRenderPlugin.ts @@ -15,9 +15,11 @@ const errorredPages = new Set(); let version = '0.0.0'; try { - const {version: pkgVersion} = jsonc.parse(readFileSync(join(__dirname, '../package.json')).toString()); - version = pkgVersion || '0.0.0'; -} catch {} + version = jsonc.parse(readFileSync(join(__dirname, '../package.json')).toString()).version || '0.0.0'; +} catch { + // this is only for internals builds + version = jsonc.parse(readFileSync(join(__dirname, '../../../package.json')).toString()).version || '0.0.0'; +} export const puppeteerRender = async (route: HandledRoute): Promise => { const timeOutValueInSeconds = 25; diff --git a/tests/jest/src/__tests__/__snapshots__/blog-index.spec.ts.snap b/tests/jest/src/__tests__/__snapshots__/blog-index.spec.ts.snap index 797c541da..85f22d83d 100644 --- a/tests/jest/src/__tests__/__snapshots__/blog-index.spec.ts.snap +++ b/tests/jest/src/__tests__/__snapshots__/blog-index.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ContentFolder: Test blog/page-1 Check contentPlugin render 1`] = ` -" +" SampleBlog @@ -17,7 +17,7 @@ exports[`ContentFolder: Test blog/page-1 Check contentPlugin render 1`] = ` } - + Scully demo blog app! rendering inside scully🏠

Scully blog content


@@ -62,7 +62,7 @@ exports[`ContentFolder: Test blog/page-1 Check contentPlugin render 1`] = ` `; exports[`Static: Test blog index Check clean blog index by scully 1`] = ` -" +" SampleBlog @@ -71,7 +71,7 @@ exports[`Static: Test blog index Check clean blog index by scully 1`] = ` - + Scully demo blog app! rendering inside scully🏠

Overview of blog posts

Deeply embedded

11/27/19

This is the deep folder demo page in this sample.

My first page

11/26/19

This is the first demo page in this sample.

My third page

11/28/19

At this point, I should write something different in here.

The Rainbow Cat, A free book out of the Guttenberg library

12/16/19

/blog/page-5

My test sub page

11/27/19

This is the second demo page in this sample.

Made with ❤️ @HeroDevs

diff --git a/tests/jest/src/__tests__/__snapshots__/home.spec.ts.snap b/tests/jest/src/__tests__/__snapshots__/home.spec.ts.snap index 4b31c87be..d87056fca 100644 --- a/tests/jest/src/__tests__/__snapshots__/home.spec.ts.snap +++ b/tests/jest/src/__tests__/__snapshots__/home.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Check list of all Check clean all list from scully 1`] = ` -" +" SampleBlog @@ -10,7 +10,7 @@ exports[`Check list of all Check clean all list from scully 1`] = ` - + Scully demo blog app! rendering inside scully🏠

Available routes

Top level routes onlyUnpublished routes

Made with ❤️ @HeroDevs

diff --git a/tests/jest/src/__tests__/__snapshots__/users.spec.ts.snap b/tests/jest/src/__tests__/__snapshots__/users.spec.ts.snap index dc35267aa..d83cd8c21 100644 --- a/tests/jest/src/__tests__/__snapshots__/users.spec.ts.snap +++ b/tests/jest/src/__tests__/__snapshots__/users.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`JsonPlugin: test user List Check clean blog index by scully 1`] = ` -" +" SampleBlog @@ -10,7 +10,7 @@ exports[`JsonPlugin: test user List Check clean blog index by scully 1`] = ` - + Scully demo blog app! rendering inside scully🏠

Users

IdUsername
1 Leanne Graham
2 Ervin Howell
3 Clementine Bauch
4 Patricia Lebsack
5 Chelsey Dietrich
6 Mrs. Dennis Schulist
7 Kurtis Weissnat
8 Nicholas Runolfsdottir V
9 Glenna Reichert
10 Clementina DuBuque

Made with ❤️ @HeroDevs