Skip to content

Commit

Permalink
Merge fd4562b into 8fe9e9d
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Jul 15, 2018
2 parents 8fe9e9d + fd4562b commit 6fab0ea
Show file tree
Hide file tree
Showing 46 changed files with 576 additions and 396 deletions.
4 changes: 2 additions & 2 deletions tests/gatsby-starter-default/fixture/.index.json
Expand Up @@ -23,11 +23,11 @@
"title": "News"
},
{
"@id": "http://localhost:8080/Plone/testcases",
"@id": "http://localhost:8080/Plone/examples",
"@type": "Folder",
"description": "A folder with different standard content types that Plone supports out of the box",
"review_state": "published",
"title": "Testcases"
"title": "Examples"
},
{
"@id": "http://localhost:8080/Plone/docs",
Expand Down
11 changes: 9 additions & 2 deletions tests/gatsby-starter-default/fixture/docs.json
Expand Up @@ -91,12 +91,19 @@
"description": "",
"review_state": "published",
"title": "Migration to Gatsby v2"
},
{
"@id": "http://localhost:8080/Plone/docs/file_handling",
"@type": "Document",
"description": "",
"review_state": "published",
"title": "File Handling"
}
],
"items_total": 9,
"items_total": 10,
"language": "en",
"layout": "listing_view",
"modified": "2018-07-11T15:17:38+00:00",
"modified": "2018-07-12T12:29:49+00:00",
"nextPreviousEnabled": false,
"parent": {
"@id": "http://localhost:8080/Plone",
Expand Down
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:51+00:00",
"modified": "2018-07-12T12:29:35+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
2 changes: 1 addition & 1 deletion tests/gatsby-starter-default/fixture/docs/expansions.json
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:54+00:00",
"modified": "2018-07-12T12:29:41+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
54 changes: 54 additions & 0 deletions tests/gatsby-starter-default/fixture/docs/file_handling.json
@@ -0,0 +1,54 @@
{
"@components": {
"actions": {
"@id": "http://localhost:8080/Plone/docs/file_handling/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:8080/Plone/docs/file_handling/@breadcrumbs"
},
"navigation": {
"@id": "http://localhost:8080/Plone/docs/file_handling/@navigation"
},
"workflow": {
"@id": "http://localhost:8080/Plone/docs/file_handling/@workflow"
}
},
"@id": "http://localhost:8080/Plone/docs/file_handling",
"@type": "Document",
"UID": "f1c927527fd441d1b842d1c92a50ead4",
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2018-07-12T12:29:49+00:00",
"creators": [
"admin"
],
"description": "",
"effective": null,
"exclude_from_nav": false,
"expires": null,
"id": "file_handling",
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-12T12:29:49+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
"description": "Plugin documentation",
"review_state": "published",
"title": "Docs"
},
"relatedItems": [],
"review_state": "published",
"rights": "",
"subjects": [],
"table_of_contents": null,
"text": {
"content-type": "text/html",
"data": "<p>Gatsby along with the plugin <a href=\"https://v2--gatsbyjs.netlify.com/packages/gatsby-source-filesystem\">gatsby-source-filesystem</a> and the <a href=\"https://v2--gatsbyjs.netlify.com/packages/gatsby-source-filesystem#createremotefilenode\"><code>createRemoteFileNode</code></a> function it exposes, can be used to pull all types of remote files into the Gatsby cache and use them in the generated Gatsby-site.</p>\n<p>For images, another plugin, <a href=\"https://v2--gatsbyjs.netlify.com/packages/gatsby-transformer-sharp#gatsby-transformer-sharp\">gatsby-transformer-sharp</a> to handle resizing, cropping, creating responsive images using the <a href=\"https://github.com/lovell/sharp\">Sharp</a> image processing library.</p>\n<p>For allowing other types of files to be used in the gatsby-site, gatsby-source-filesystem needs to be configured in the project itself as well, with path configured to a <code>static</code> folder:</p>\n<pre><code>// gatsby-config.js\n {\n resolve: 'gatsby-source-filesystem',\n options: {\n path: `${__dirname}/src/static`,\n },\n },\n</code></pre><p>This exposes a <code>publicURL</code> field in GraphQL for the file node, which can be used to link to the file node and make it downloadable, as implemented in the example gatsby-site.</p>",
"encoding": "utf-8"
},
"title": "File Handling",
"version": "current"
}
2 changes: 1 addition & 1 deletion tests/gatsby-starter-default/fixture/docs/gatsby_v2.json
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:04:00+00:00",
"modified": "2018-07-12T12:29:41+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
2 changes: 1 addition & 1 deletion tests/gatsby-starter-default/fixture/docs/index.json
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:48+00:00",
"modified": "2018-07-12T12:29:33+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:49+00:00",
"modified": "2018-07-12T12:29:44+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:55+00:00",
"modified": "2018-07-12T12:29:46+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:58+00:00",
"modified": "2018-07-12T12:29:47+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:57+00:00",
"modified": "2018-07-12T12:29:30+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
Expand Up @@ -31,7 +31,7 @@
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2018-07-11T08:03:52+00:00",
"modified": "2018-07-12T12:29:38+00:00",
"parent": {
"@id": "http://localhost:8080/Plone/docs",
"@type": "Folder",
Expand Down
@@ -1,19 +1,19 @@
{
"@components": {
"actions": {
"@id": "http://localhost:8080/Plone/testcases/@actions"
"@id": "http://localhost:8080/Plone/examples/@actions"
},
"breadcrumbs": {
"@id": "http://localhost:8080/Plone/testcases/@breadcrumbs"
"@id": "http://localhost:8080/Plone/examples/@breadcrumbs"
},
"navigation": {
"@id": "http://localhost:8080/Plone/testcases/@navigation"
"@id": "http://localhost:8080/Plone/examples/@navigation"
},
"workflow": {
"@id": "http://localhost:8080/Plone/testcases/@workflow"
"@id": "http://localhost:8080/Plone/examples/@workflow"
}
},
"@id": "http://localhost:8080/Plone/testcases",
"@id": "http://localhost:8080/Plone/examples",
"@type": "Folder",
"UID": "c70fd016424943e0b37794af62e5e948",
"allow_discussion": false,
Expand All @@ -26,105 +26,105 @@
"effective": "2018-05-27T13:35:00",
"exclude_from_nav": false,
"expires": null,
"id": "testcases",
"id": "examples",
"is_folderish": true,
"items": [
{
"@id": "http://localhost:8080/Plone/testcases/midsummer.jpg",
"@type": "Image",
"@id": "http://localhost:8080/Plone/examples/first-results",
"@type": "News Item",
"description": "The Google Summer of Code project \"Gatsby source plugin for Plone\" is underway!",
"review_state": "published",
"title": "First results"
},
{
"@id": "http://localhost:8080/Plone/examples/subfolder-level-two",
"@type": "Folder",
"description": "",
"review_state": null,
"title": "midsummer.jpg"
"review_state": "published",
"title": "Subfolder level two"
},
{
"@id": "http://localhost:8080/Plone/testcases/the-news-collection",
"@id": "http://localhost:8080/Plone/examples/event-collection",
"@type": "Collection",
"description": "A common use case for collections is to present upcoming events",
"review_state": "published",
"title": "Event collection"
},
{
"@id": "http://localhost:8080/Plone/examples/the-news-collection",
"@type": "Collection",
"description": "Collection that shows all the news",
"review_state": "published",
"title": "The news collection"
},
{
"@id": "http://localhost:8080/Plone/testcases/plone-conference-tokyo",
"@id": "http://localhost:8080/Plone/examples/a-page-with-internal-linking",
"@type": "Document",
"description": "",
"review_state": "published",
"title": "A page with internal linking"
},
{
"@id": "http://localhost:8080/Plone/examples/a-nico-e-pagie",
"@type": "Document",
"description": "𝓣ℎι𝓼 𝕚𝑠 𝝉𝐫𝒾𝙘𝗸𝘺",
"review_state": "published",
"title": "𝙰 𝛖𝔫𝙞𝚌ℴԁ𝚎 𝚙𝕒𝙜е"
},
{
"@id": "http://localhost:8080/Plone/examples/a-link-to-the-documentation-of-plone",
"@type": "Link",
"description": "Plone contains a special \"link\" content type",
"review_state": "published",
"title": "A link to the documentation of Plone"
},
{
"@id": "http://localhost:8080/Plone/examples/plone-conference-tokyo",
"@type": "Event",
"description": "The worldwide gathering of the Plone family (and friends) will happen in Japan this year.",
"review_state": "published",
"title": "Plone conference Tokyo"
},
{
"@id": "http://localhost:8080/Plone/testcases/plone-logo-192.png",
"@id": "http://localhost:8080/Plone/examples/plone-logo-192.png",
"@type": "Image",
"description": "In png format",
"review_state": null,
"title": "Plone logo"
},
{
"@id": "http://localhost:8080/Plone/testcases/plone-logo.svg",
"@id": "http://localhost:8080/Plone/examples/plone-logo.svg",
"@type": "Image",
"description": "Scalable vector graphics",
"review_state": null,
"title": "Plone logo as SVG"
},
{
"@id": "http://localhost:8080/Plone/testcases/plone-logo-1.svg",
"@type": "File",
"@id": "http://localhost:8080/Plone/examples/midsummer.jpg",
"@type": "Image",
"description": "",
"review_state": null,
"title": "Plone logo as file (svg)"
"title": "midsummer.jpg"
},
{
"@id": "http://localhost:8080/Plone/testcases/plone-logo.pdf",
"@id": "http://localhost:8080/Plone/examples/plone-logo.pdf",
"@type": "File",
"description": "",
"review_state": null,
"title": "PDF example"
},
{
"@id": "http://localhost:8080/Plone/testcases/subfolder-level-two",
"@type": "Folder",
"description": "",
"review_state": "published",
"title": "Subfolder level two"
},
{
"@id": "http://localhost:8080/Plone/testcases/a-link-to-the-documentation-of-plone",
"@type": "Link",
"description": "Plone contains a special \"link\" content type",
"review_state": "published",
"title": "A link to the documentation of Plone"
},
{
"@id": "http://localhost:8080/Plone/testcases/a-nico-e-pagie",
"@type": "Document",
"description": "𝓣ℎι𝓼 𝕚𝑠 𝝉𝐫𝒾𝙘𝗸𝘺",
"review_state": "published",
"title": "𝙰 𝛖𝔫𝙞𝚌ℴԁ𝚎 𝚙𝕒𝙜е"
},
{
"@id": "http://localhost:8080/Plone/testcases/first-results",
"@type": "News Item",
"description": "The Google Summer of Code project \"Gatsby source plugin for Plone\" is underway!",
"review_state": "published",
"title": "First results"
},
{
"@id": "http://localhost:8080/Plone/testcases/event-collection",
"@type": "Collection",
"description": "A common use case for collections is to present upcoming events",
"review_state": "published",
"title": "Event collection"
},
{
"@id": "http://localhost:8080/Plone/testcases/a-page-with-internal-linking",
"@type": "Document",
"@id": "http://localhost:8080/Plone/examples/plone-logo-1.svg",
"@type": "File",
"description": "",
"review_state": "published",
"title": "A page with internal linking"
"review_state": null,
"title": "Plone logo as file (svg)"
}
],
"items_total": 13,
"language": "en",
"layout": "listing_view",
"modified": "2018-07-11T08:03:45+00:00",
"modified": "2018-07-12T12:31:27+00:00",
"nextPreviousEnabled": false,
"parent": {
"@id": "http://localhost:8080/Plone",
Expand All @@ -139,6 +139,6 @@
"examples",
"testing"
],
"title": "Testcases",
"title": "Examples",
"version": "current"
}

0 comments on commit 6fab0ea

Please sign in to comment.