Skip to content

Commit 7ca0232

Browse files
committed
docs: More complete favicon package
1 parent 2987678 commit 7ca0232

38 files changed

+187
-199
lines changed

docs/core/concepts/normalization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ values={[
6060
]}>
6161
<TabItem value="State">
6262

63-
![Entities cache](/img/entities.png)
63+
![Entities cache](/img/entities.png 'Entities cache')
6464

6565
</TabItem>
6666
<TabItem value="Response">
@@ -387,7 +387,7 @@ per update.
387387
[DevTools browser extension](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en)
388388
can be installed to inspect and [debug the store](../guides/debugging.md).
389389

390-
![browser-devtools](/img/devtool-state.png)
390+
![browser-devtools](/img/devtool-state.png 'Reactive Data Client devtools')
391391

392392
<center>
393393

docs/core/guides/debugging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ After installing and running your site, a new icon should appear in your locatio
4141
Clicking that will open the inspector, which allows you to observe dispatched actions,
4242
their effect on the cache state as well as current cache state.
4343

44-
![browser-devtools](/img/devtool-action.png)
44+
![browser-devtools](/img/devtool-action.png 'Reactive Data Client devtools')
4545

4646
The [Controller](../api/Controller.md) dispatches actions, making that page useful for understanding
4747
what actions you see. Here we observe the most common actions of [fetch](../api/Controller.md#fetch)
@@ -72,7 +72,7 @@ values={[
7272
]}>
7373
<TabItem value="State">
7474

75-
![Entities cache](/img/entities.png)
75+
![Entities cache](/img/entities.png 'Entities cache')
7676

7777
</TabItem>
7878
<TabItem value="Response">
@@ -128,14 +128,14 @@ Once [normalized](../concepts/normalization.md), these [entities](/rest/api/Enti
128128
tab in devtools to see the entire state. This can be useful to determine exactly where data is. There is
129129
also a 'meta' section of the cache for information like when the request took place (useful for [TTL](../concepts/expiry-policy.md)).
130130

131-
![Dev tools state inspector](/img/devtool-state.png)
131+
![Dev tools state inspector](/img/devtool-state.png 'Reactive Data Client devtools state inspector')
132132

133133
## State Diff
134134

135135
For monitoring a particular fetch response, it might be more useful to see how the cache state updates.
136136
Click on the 'Diff' tab to see what changed.
137137

138-
![Dev tools diff inspector](/img/devtool-diff.png)
138+
![Dev tools diff inspector](/img/devtool-diff.png 'Reactive Data Client devtools diff')
139139

140140
Here we toggled the 'completed' status of a todo using an [optimistic update](/rest/guides/optimistic-updates).
141141

website/docusaurus.config.ts

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,6 @@ const config: Config = {
2424
},
2525
scripts: [],
2626
stylesheets: [
27-
/*{
28-
rel: 'preload',
29-
href: '/font/Rubik-VariableFont_wght.ttf',
30-
as: 'font',
31-
type: 'font/ttf',
32-
crossOrigin: 'anonymous',
33-
},
34-
{
35-
rel: 'preload',
36-
href: '/font/Rubik-Italic-VariableFont_wght.ttf',
37-
as: 'font',
38-
type: 'font/ttf',
39-
crossOrigin: 'anonymous',
40-
},*/
4127
{
4228
rel: 'preconnect',
4329
href: 'https://fonts.gstatic.com',
@@ -107,7 +93,8 @@ const config: Config = {
10793
},
10894
{
10995
rel: 'icon',
110-
href: '/img/favicon/favicon.ico',
96+
href: '/favicon.ico',
97+
type: 'image/x-icon',
11198
},
11299
{
113100
rel: 'icon',
@@ -122,24 +109,20 @@ const config: Config = {
122109
sizes: '32x32',
123110
},
124111
{
125-
rel: 'icon',
112+
rel: 'apple-touch-icon',
126113
type: 'image/png',
127-
href: '/img/favicon/favicon-96x96.png',
128-
sizes: '96x96',
114+
href: '/apple-touch-icon.png',
115+
sizes: '180x180',
116+
},
117+
{
118+
rel: 'manifest',
119+
href: '/img/favicon/site.webmanifest',
120+
},
121+
{
122+
rel: 'mask-icon',
123+
href: '/img/favicon/safari-pinned-tab.svg',
124+
color: '#3E96DB',
129125
},
130-
// TODO: figure out where to put this
131-
// {
132-
// name: 'application-name',
133-
// content: 'Reactive Data Client',
134-
// },
135-
// {
136-
// name: 'msapplication-TileColor',
137-
// content: '#FFFFFF',
138-
// },
139-
// {
140-
// name: 'msapplication-TileImage',
141-
// content: '/img/favicon/mstile-144x144.png',
142-
// },
143126
/*{
144127
rel: 'preload',
145128
href: '/assets/css/root.css',
@@ -153,8 +136,38 @@ const config: Config = {
153136
media: 'all',
154137
}, TODO: figure out how to load this*/
155138
],
139+
headTags: [
140+
{
141+
tagName: 'link',
142+
attributes: {
143+
name: 'application-name',
144+
content: 'Reactive Data Client',
145+
},
146+
},
147+
{
148+
tagName: 'link',
149+
attributes: {
150+
rel: 'msapplication-TileColor',
151+
content: '#3e96db',
152+
},
153+
},
154+
{
155+
tagName: 'link',
156+
attributes: {
157+
rel: 'msapplication-config',
158+
content: '/browserconfig.xml',
159+
},
160+
},
161+
{
162+
tagName: 'link',
163+
attributes: {
164+
rel: 'theme-color',
165+
content: '#003a67',
166+
},
167+
},
168+
],
156169
clientModules: [require.resolve('./src/gtagfix.ts')],
157-
//favicon: 'img/favicon/favicon.ico',
170+
//favicon: '/favicon.ico', we declare our own headers for this above
158171
themes: ['@docusaurus/theme-live-codeblock', '@docusaurus/theme-mermaid'],
159172
customFields: {
160173
repoUrl: 'https://github.com/reactive/data-client',
4.66 KB
Loading

website/static/browserconfig.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square150x150logo src="/img/favicon/mstile-150x150.png"/>
6+
<TileColor>#3e96db</TileColor>
7+
</tile>
8+
</msapplication>
9+
</browserconfig>
File renamed without changes.

website/static/img/CoinbaseLogo.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

website/static/img/coinbase-logo.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

website/static/img/component.png

-62.5 KB
Binary file not shown.
21 KB
Loading

0 commit comments

Comments
 (0)