You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This version focused on [analytics & statistics][gh-86] as well as [SEO & social media representation][gh-100]. This includes the integration of [Google Analytics][gh-87], requirements of a [PWA][gdev-web-pwa] ([Progressive Web App][wiki-pwa]) like a [Web App Manifest][gh-91], _offline_ resistance and availability through a [service worker][gh-94] and [improved caching strategies and usage of advanced techniques like HTTP/2 server push][gh-89].
16
+
17
+
Several implementation for SEO have been made with automated generation of web standard resources like the [sitemap.xml][gh-96] and [robots.txt][gh-98] files. A new [`SiteMetadata` component][gh-101] has been added to allow to provide metadata for several specifications like the [Open Graph Protocol][ogp], [Twitter Cards][tw-docs-cards] and [schema.org][].
↠ Integrated [Google Analytics][ga-mark] like documented in the [“Analytics & Statistics” design concept][gh-86] through the Gatsby plugin [gatsby-plugin-google-gtag][gh-gatsby-p-gtag].
27
+
28
+
It is a stable and proven service tool to collect and analyze data with a lot of useful configurable features and a reliable persistence.
29
+
30
+
_Nord Docs_ uses the latest and recommended [gtag.js][gdev-ga-gtag] library that optionally allows, next to Google Analytics itself, the integration of almost all Google Marketing services like e.g. [Google Tag Manager][gdev-tm].
31
+
32
+
To protect the privacy of users and to be compatible with various privacy and data legal guidelines all [IP addresses are anonymized][gsup-ga-anonip].
↠ Added [gatsby-plugin-netlify][npm-gatsby-plugin-netlify] to automatically generate a `_headers` file and a `_redirects` file at the root of the public folder to configure [HTTP headers][netlify-docs-headers] and [redirects][netlify-docs-rd] on Netlify.
38
+
One of the main advantages is that it also enables HTTP/2 server push of critical Gatsby assets through the `Link` headers. By default, the plugin adds HTTP/2 assets to server push the critical Gatsby scripts (ones that have the `preload` attribute already) and additionally adds basic security and caching headers.
39
+
40
+
See the [“Hosting & Continuous Deployment” design concept][gh-46] for more details.
↠ Integrated [gatsby-plugin-manifest][npm-gatsby-plugin-manifest] that adds support for generating and shipping a [web app (PWA) `manifest.webmanifest`][mdn-web-mf]. It allows users to save _Nord Docs_ as web application to their desktops / task bars and smartphone home screens so it behaves similar to native apps.
46
+
47
+
See the great Google Developer documentation about [the web app manifest][gdev-fund-wamf] and the [official W3 Web App Manifest specification][w3-spec-mf].
48
+
49
+
Note that it is **recommended to use this plugin together with**[gatsby-plugin-offline][npm-gatsby-plugin-offline] ([#94][gh-94]), but ensure that **this plugin is listed before the offline plugin** so that it can cache the created `manifest.webmanifest` file!
↠ Integrated [gatsby-plugin-offline][gh-gatsby-p-offline] that adds drop-in support for making a Gatsby site work offline and more resistant to bad network connections. It creates a service worker for the site using the great [Workbox][] project and loads the service worker into the client.
55
+
56
+
Note that it is **recommended to use this plugin together with**[gatsby-plugin-manifest][gh-gatsby-p-manifest] ([#91][gh-94]), but ensure that **this plugin is listed after the offline plugin** so that the created `manifest.webmanifest` file can be included in the service worker!
57
+
58
+
The plugin comes with optimal configurations out-of-the-box™. Note that the offline support can break when changing these options.
↠ Integrated [gatsby-plugin-sitemap][gh-gatsby-p-sitemap] that automatically generates a [sitemap.xml][wiki-sitemap] file including all of _Nord Docs_ pages, except the ones excluded by default and custom configured routes.
64
+
65
+
Note that by default the plugin assumes that the default Gatsby config object field `siteMetadata.siteUrl` is set to the site's URL.
↠ Integrated [gatsby-plugin-robots-txt][gh-gatsby-p-robots-txt] that automatically generates a [robots.txt][wiki-robotstxt] file.
71
+
72
+
Note that by default the plugin assumes that the default Gatsby config object field `siteMetadata.siteUrl` is used and set to the site's URL. It also uses the default path `${siteMetadata.siteUrl/sitemap.xml}` for the sitemap file ([#96][gh-96]).
↠ Implemented the core atom `SiteMetadata` that injects global metadata. Next to general data like the page title and canonical URL it will include data for the [Open Graph Protocol][ogp], [Twitter Cards][tw-docs-cards] and the [schema.org][] structured data format [JSON-LD][].
78
+
The component doesn't render any UI, but injects the elements into the `<head>` using [React Helmet][gh-react-helmet].
79
+
80
+
For more details read the [“SEO & Social Media Representation” design concept][gh-100] and the great documentation about [SEO with Gatsby][gatsby-docs-seo].
81
+
82
+
## Tasks
83
+
84
+
**Dependency Update December 2018** — #103 ⇄ #104 (⊶ 1c4ba796)
85
+
↠ Performed the regular batch update for outdated dependencies which raises React to version [16.7.0][react-rln-16.7.0] to include an important performance bug fix for `React.lazy`.
86
+
87
+
Babel has been updated to the latest minor version [7.2.0][babel-rln-7.2.0] (including official plugins) that comes with a lot of improvements and bug fixes for TypeScript and Flow as well as support for _private instance methods_ and “smart” pipeline operator parsing.
88
+
89
+
The `babel-plugin-styled-components` plugin now also supports the new `css` prop of the also updated `styled-components` package.
90
+
91
+
Gatsby and all plugins have been updated to the latest versions to include the latest improvements and bug fixes.
92
+
93
+
Note that packages marked with an :exclamation: have been affected by the security incident!
0 commit comments