Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
576 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
tests/gatsby-starter-default/fixture/docs/file_handling.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.