Skip to content

Commit

Permalink
Updated multiple examples to use /public (#9033)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Alvarez D authored and timneutkens committed Oct 11, 2019
1 parent c941b61 commit 6c9fa86
Show file tree
Hide file tree
Showing 20 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion examples/blog-starter/components/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const Head = props => (
content={props.description || defaultDescription}
/>
<meta name='viewport' content='width=device-width, initial-scale=1' />
<link rel='icon' href='/static/favicon.ico' />

<link
rel='alternate'
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/posts/rss-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const feed = {
feed_url: `${siteMeta.siteUrl}/feed.json`,
description: siteMeta.description,
icon: `${siteMeta.siteUrl}/static/apple-touch-icon-152x152.png`,
favicon: `${siteMeta.siteUrl}/static/favicon.ico`,
favicon: `${siteMeta.siteUrl}/favicon.ico`,
author: {
name: siteMeta.author,
url: siteMeta.siteUrl,
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const Head = props => (
<link rel='icon' sizes='192x192' href='/static/touch-icon.png' />
<link rel='apple-touch-icon' href='/static/touch-icon.png' />
<link rel='mask-icon' href='/static/favicon-mask.svg' color='#49B882' />
<link rel='icon' href='/static/favicon.ico' />
<meta property='og:url' content={props.url || defaultOGURL} />
<meta property='og:title' content={props.title || ''} />
<meta
Expand Down
4 changes: 2 additions & 2 deletions examples/with-asset-imports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ now

## The idea behind the example

This example shows how to enable the imports of assets (images, videos, etc.) and get a URL pointing to `/static`.
This example shows how to enable the imports of assets (images, videos, etc.) and get a URL pointing to `/public`.

This is also configurable to point to a CDN changing the `baseUri` to the CDN domain, something similar to this:

```json
[
"transform-assets-import-to-string",
{
"baseDir": "/static",
"baseDir": "/",
"baseUri": "https://cdn.domain.com"
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/with-asset-imports/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import avatar from '../static/logo.png'
import avatar from '../public/logo.png'

export default () => <img src={avatar} />
File renamed without changes
4 changes: 2 additions & 2 deletions examples/with-react-md/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Install it and run:

```bash
npm install
ln -f -s ../node_modules/react-md/dist/react-md.light_blue-yellow.min.css static/react-md.light_blue-yellow.min.css
ln -f -s ../node_modules/react-md/dist/react-md.light_blue-yellow.min.css public/react-md.light_blue-yellow.min.css
npm run dev
# or
yarn
ln -f -s ../node_modules/react-md/dist/react-md.light_blue-yellow.min.css static/react-md.light_blue-yellow.min.css
ln -f -s ../node_modules/react-md/dist/react-md.light_blue-yellow.min.css public/react-md.light_blue-yellow.min.css
yarn dev
```

Expand Down
5 changes: 1 addition & 4 deletions examples/with-react-md/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ export default () => {
return (
<div>
<Head>
<link
rel='stylesheet'
href='/static/react-md.light_blue-yellow.min.css'
/>
<link rel='stylesheet' href='/react-md.light_blue-yellow.min.css' />
<link
rel='stylesheet'
href='https://fonts.googleapis.com/css?family=Roboto:300,400,500'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../node_modules/react-md/dist/react-md.light_blue-yellow.min.css

This file was deleted.

0 comments on commit 6c9fa86

Please sign in to comment.