Skip to content

Commit 29807ab

Browse files
authored
Merge pull request linode#291 from linode/release-1.1.44
Release 1.1.44
2 parents ac4a989 + 7a60855 commit 29807ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+11503
-7895
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The developers.linode.com website built with Gatsby and including the API Docs
44

55
## Setup
66

7-
DLC currently needs `node v10.16.0` to build properly. You may want to use NVM to manage your versions (https://github.com/nvm-sh/nvm/blob/master/README.md)
7+
DLC currently needs `node v12.8.1` to build properly. You may want to use NVM to manage your versions (https://github.com/nvm-sh/nvm/blob/master/README.md)
88

99
`yarn`
1010

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
dlcLinks: [
66
{
77
name: "API Documentation",
8-
link: "/api/v4"
8+
link: "http://www.linode.com/docs/api"
99
},
1010
{
1111
name: "Guides",

package-lock.json

Lines changed: 6683 additions & 3034 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@gatsby-contrib/gatsby-plugin-elasticlunr-search": "^2.2.1",
99
"axios": "^0.19.0",
1010
"crypto": "^1.0.1",
11-
"gatsby": "^2.9.2",
11+
"gatsby": "^2.24.83",
1212
"gatsby-cli": "^2.12.77",
1313
"gatsby-image": "^2.0.29",
1414
"gatsby-plugin-catch-links": "^2.1.2",
@@ -20,7 +20,7 @@
2020
"gatsby-plugin-purgecss": "^3.1.0",
2121
"gatsby-plugin-react-helmet": "^3.0.6",
2222
"gatsby-plugin-react-svg": "^2.0.0",
23-
"gatsby-plugin-sharp": "^2.0.20",
23+
"gatsby-plugin-sharp": "^2.6.43",
2424
"gatsby-source-filesystem": "^2.0.1-rc.6",
2525
"gatsby-transformer-json": "^2.1.11",
2626
"gatsby-transformer-remark": "^2.3.12",
@@ -33,6 +33,7 @@
3333
"react": "^16.7.0",
3434
"react-clipboard.js": "^2.0.7",
3535
"react-dom": "^16.7.0",
36+
"react-ga": "^3.1.2",
3637
"react-helmet": "^5.2.0",
3738
"react-markdown": "^4.0.8",
3839
"react-select": "^2.4.2",

src/components/2_molecules/DLCMenu.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ const DLCMenu = ({ data }) => {
2121
>
2222
<div className="max-w-3xl mx-auto px-4 py-4">
2323
{dlcLinks.map(link => (
24-
<Link
24+
<a
2525
key={link.name}
26-
to={link.link}
27-
className="dlc-nav__link relative mx-4"
26+
href={link.link}
27+
className={`dlc-nav__link mx-4 ${link.name === "API Documentation" ? "" : "relative "}`}
2828
role="menuitem"
29-
activeClassName="active"
30-
getProps={link === "/" ? undefined : isPartiallyActive}
3129
>
3230
{link.name}
33-
</Link>
31+
</a>
3432
))}
3533
</div>
3634
</nav>

src/components/2_molecules/navigation/communityFeatured.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import { Event } from "../tracking";
23

34
const styles = {
45
color: '#ffffff'
@@ -12,6 +13,9 @@ const CommunityFeaturedNav = () => (
1213
className="c-featured"
1314
href="https://www.linode.com/marketplace/apps/linode/nextcloud/"
1415
style={styles}
16+
onClick={()=>
17+
Event('Navigation','click','nextcloud')
18+
}
1519
>
1620
<img
1721
width="632"

src/components/2_molecules/navigation/pricingFeatured.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React from "react";
2+
import { Event } from "../tracking";
3+
24
const styles = {
35
borderWidth: 2,
46
borderColor: '#ededf4'
@@ -12,6 +14,9 @@ const PricingFeaturedNav = () => (
1214
className="c-featured"
1315
href="https://www.linode.com/lp/tco-calculator/"
1416
style={styles}
17+
onClick={()=>
18+
Event('Navigation','click','TCO')
19+
}
1520
>
1621
<img
1722
width="416"

src/components/2_molecules/navigation/primaryNav.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22
import { StaticQuery, graphql } from "gatsby";
3+
import {PageView, initGA} from "../tracking";
34

45
class MainSiteNav extends React.Component {
56
constructor(props) {
@@ -27,6 +28,9 @@ class MainSiteNav extends React.Component {
2728
const header = document.getElementById("menu-header-primary");
2829
const mobileMenu = document.getElementById("o-menu__link--mobile");
2930

31+
initGA(['UA-177150-1', 'UA-177150-30']);
32+
PageView();
33+
3034
const hideAll = () => {
3135
Object.keys(subMenus).map(d => {
3236
const em = subMenus[d];
@@ -79,6 +83,7 @@ class MainSiteNav extends React.Component {
7983
});
8084
}
8185

86+
8287
header.addEventListener("click", e => {
8388
const otherMenus = document.getElementsByClassName("c-sub-menu");
8489
const target = e.target.getAttribute("data-submenu");

src/components/2_molecules/navigation/productsFeatured.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React from "react";
2+
import { Event } from "../tracking";
3+
24
const styles1 = {
35
borderWidth: 2,
46
borderColor: '#ededf4'
@@ -20,6 +22,9 @@ const ProductsFeaturedNav = () => (
2022
className="c-featured"
2123
href="https://www.linode.com/products/gpu/"
2224
style={styles1}
25+
onClick={()=>
26+
Event('Navigation','click','gpus-mumbai')
27+
}
2328
>
2429
<img
2530
width="400"

src/components/2_molecules/navigation/whyFeatured.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import { Event } from "../tracking";
23

34
const styles = {
45
color: '#ffffff'
@@ -12,6 +13,9 @@ const WhyFeaturedNav = () => (
1213
className="c-featured"
1314
href="https://www.linode.com/spotlight/cloudnet/"
1415
style={styles}
16+
onClick={()=>
17+
Event('Navigation','click','cloudnet')
18+
}
1519
>
1620
<img
1721
width="632"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import ReactGA from "react-ga";
2+
3+
export const initGA = (trackingIDs) => {
4+
{trackingIDs.map(id => (
5+
ReactGA.initialize(id)
6+
))}
7+
}
8+
9+
export const PageView = () => {
10+
ReactGA.pageview(window.location.pathname +
11+
window.location.search);
12+
}
13+
14+
/**
15+
* Event - Add custom tracking event.
16+
* @param {string} category
17+
* @param {string} action
18+
* @param {string} label
19+
*/
20+
export const Event = (category, action, label) => {
21+
ReactGA.event({
22+
category: category,
23+
action: action,
24+
label: label
25+
});
26+
};

src/content/changelog/05-20-api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ version: 4.0.23
1010
### Added
1111

1212
- View a Linode's network transfer pool statistics for the current month.
13-
- GET [/linode/instances/{linodeId}/transfer](https://developers.linode.com/api/v4/linode-instances-linode-id-transfer) returns a collection with properties *used*, *quota*, and *billable*.
14-
- Added new actions *linode\_resize\_create*, *linode\_mutate\_create*, and *lish\_boot* to List (GET [/account/events](https://developers.linode.com/api/v4/account-events)) and View (GET [/account/events/{eventId}](https://developers.linode.com/api/v4/account-events-event-id)) Events.
15-
- Added *allow\_auto\_disk\_resize* flag to Resize Linode endpoint (POST [/linode/instances/{linodeId}/resize](https://developers.linode.com/api/v4/linode-instances-linode-id-resize/#post)).
13+
- GET [/linode/instances/{linodeId}/transfer](https://www.linode.com/docs/api/linode-instances/#network-transfer-view) returns a collection with properties *used*, *quota*, and *billable*.
14+
- Added new actions *linode\_resize\_create*, *linode\_mutate\_create*, and *lish\_boot* to List (GET [/account/events](https://www.linode.com/docs/api/account/#events-list)) and View (GET [/account/events/{eventId}](https://www.linode.com/docs/api/account/#event-view)) Events.
15+
- Added *allow\_auto\_disk\_resize* flag to Resize Linode endpoint (POST [/linode/instances/{linodeId}/resize](https://www.linode.com/docs/api/linode-instances/#linode-resize)).
1616

1717
### Changed
1818

19-
- Changed validation criteria when updating (PUT [/linode/instances/{linodeId}/configs/{configId}](https://developers.linode.com/api/v4/linode-instances-linode-id-configs-config-id/#put)) the *devices* property for a Linode's configuration profile.
19+
- Changed validation criteria when updating (PUT [/linode/instances/{linodeId}/configs/{configId}](https://www.linode.com/docs/api/linode-instances/#configuration-profile-update)) the *devices* property for a Linode's configuration profile.
2020

2121
- An empty *devices* object or a *devices* object with empty values for *device* slots is allowed on PUT only if an empty device map already exits. An error will result if a non-empty device map exists for the Linode's configuration profile.
2222
- If no devices are specified, booting from this configuration will hold waiting for a device to exist before being able to boot.
2323
- Previous validation produced an error in all cases when an empty *device* object or a devices object with empty values for device slots was passed on PUT.
24-
- Changed validation criteria and behavior when creating (POST [/linode/instances/{linodeId}/configs](https://developers.linode.com/api/v4/linode-instances-linode-id-configs)) and updating (PUT [/linode/instances/{linodeId}/configs/{configId}](https://developers.linode.com/api/v4/linode-instances-linode-id-configs-config-id/#put))the *root\_device* property for a Linode's configuration profile.
24+
- Changed validation criteria and behavior when creating (POST [/linode/instances/{linodeId}/configs](https://www.linode.com/docs/api/linode-instances/#configuration-profiles-list)) and updating (PUT [/linode/instances/{linodeId}/configs/{configId}](https://www.linode.com/docs/api/linode-instances/#configuration-profile-update))the *root\_device* property for a Linode's configuration profile.
2525
- If no value or an invalid value is provided, *root\_device* will default to */dev/sda*.
2626
- Previous validation for PUT errored when no value was provided for *root\_device* and an empty device map existed for the Linode's configuration profile.
2727
- If the device specified at the root device location is not mounted, the Linode will not boot until a device is mounted.
2828

2929
### Fixed
3030

3131
- *page* query string parameter no longer errors on large page number values. If the value of *page* exceeds *2^64/page\_size*, the last possible page will be returned.
32-
- *swap\_size* property no longer enforces a max limit when creating a Linode (POST [/linode/instances](https://developers.linode.com/api/v4/linode-instances/#post)).
33-
- *account:read\_only* scope is now enforced when listing Account notifications (GET [/account/notifications](https://developers.linode.com/api/v4/account-notifications)).
34-
- Fix pagination metadata when listing Volumes (GET [/volumes](https://developers.linode.com/api/v4/volumes)) for accounts that have 100+ Volumes.
32+
- *swap\_size* property no longer enforces a max limit when creating a Linode (POST [/linode/instances](https://www.linode.com/docs/api/linode-instances/#linode-create)).
33+
- *account:read\_only* scope is now enforced when listing Account notifications (GET [/account/notifications](https://www.linode.com/docs/api/account/#notifications-list)).
34+
- Fix pagination metadata when listing Volumes (GET [/volumes](https://www.linode.com/docs/api/volumes/#volumes-list)) for accounts that have 100+ Volumes.

src/content/changelog/06-03-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ version: 4.0.24
99

1010
### Added
1111
- Updated CPU alert threshold maximum to support plans with 48 cores.
12-
- Added *allow\_auto\_disk\_resize* parameter to Resize Linode endpoint ([POST /linode/instances/{linodeId}/resize](https://developers.linode.com/api/v4/linode-instances-linode-id-resize/#post)).
12+
- Added *allow\_auto\_disk\_resize* parameter to Resize Linode endpoint ([POST /linode/instances/{linodeId}/resize](https://www.linode.com/docs/api/linode-instances/#linode-resize)).
1313

1414
### Fixed
15-
- Added A-Z to the regular expression match for NodeBalancer Node label validation ([POST /nodebalancers/{nodeBalancerId}/configs/{configId}/nodes/](https://developers.linode.com/api/v4/nodebalancers-node-balancer-id-configs-config-id-nodes)).
16-
- The [DELETE /linode/instances/{linodeId}/disks/{diskId}](https://developers.linode.com/api/v4/linode-instances-linode-id-disks-disk-id/#delete) endpoint will no longer attempt to delete missing or already deleted disks.
17-
- Fixed validation of internationalized domain names ([POST /domains](https://developers.linode.com/api/v4/domains/#post)).
15+
- Added A-Z to the regular expression match for NodeBalancer Node label validation ([POST /nodebalancers/{nodeBalancerId}/configs/{configId}/nodes/](https://www.linode.com/docs/api/nodebalancers/#nodes-list)).
16+
- The [DELETE /linode/instances/{linodeId}/disks/{diskId}](https://www.linode.com/docs/api/linode-instances/#disk-delete) endpoint will no longer attempt to delete missing or already deleted disks.
17+
- Fixed validation of internationalized domain names ([POST /domains](https://www.linode.com/docs/api/domains/#domain-create)).

src/content/changelog/06-10-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ version: 4.0.25
99

1010
### Added
1111

12-
- Added _allow_auto_disk_resize_ parameter to Upgrade Linode endpoint ([POST /linode/instances/{linodeId}/mutate](https://developers.linode.com/api/v4/linode-instances-linode-id-mutate/#post)).
12+
- Added _allow_auto_disk_resize_ parameter to Upgrade Linode endpoint ([POST /linode/instances/{linodeId}/mutate](https://www.linode.com/docs/api/linode-instances/#linode-upgrade)).

src/content/changelog/06-17-api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ version: 4.1.0
1010
### Added
1111

1212
- Added two new endpoints for User Preferences. These endpoints allow for the storage and retrieval of arbitrary JSON data that can be used to store user preferences.
13-
- [GET /profile/preferences](https://developers.linode.com/api/v4/profile-preferences) displays user preferences.
14-
- [PUT /profile/preferences](https://developers.linode.com/api/v4/profile-preferences/#put) updates or changes preferences.
15-
- Added *profile\_update* action to List Events endpoint ([GET /account/events](https://developers.linode.com/api/v4/account-events)).
16-
- Added *region* parameter to [POST /linode/instances/{linodeId}/migrate](https://developers.linode.com/api/v4/linode-instances-linode-id-migrate/#post) endpoint. This parameter will allow cross data center migrations.
17-
- Reserved IPs are available from the [GET /linode/instances/{linodeId}/ips endpoint.](https://developers.linode.com/api/v4/linode-instances-linode-id-ips)
13+
- [GET /profile/preferences](https://www.linode.com/docs/api/profile/#user-preferences-view) displays user preferences.
14+
- [PUT /profile/preferences](https://www.linode.com/docs/api/profile/#user-preferences-update) updates or changes preferences.
15+
- Added *profile\_update* action to List Events endpoint ([GET /account/events](https://www.linode.com/docs/api/account/#events-list)).
16+
- Added *region* parameter to [POST /linode/instances/{linodeId}/migrate](https://www.linode.com/docs/api/linode-instances/#dc-migrationpending-host-migration-initiate) endpoint. This parameter will allow cross data center migrations.
17+
- Reserved IPs are available from the [GET /linode/instances/{linodeId}/ips endpoint.](https://www.linode.com/docs/api/linode-instances/#networking-information-list)
1818

1919
### Fixed
2020

2121
- Fixed failing validation for Internationalized Domain Names (IDN).
22-
- When using the View Linode endpoint ([GET /linode/instances/{linodeId}](https://developers.linode.com/api/v4/linode-instances-linode-id)) Linodes that have not been assigned an IPv6 address will have their JSON correctly display *null*.
22+
- When using the View Linode endpoint ([GET /linode/instances/{linodeId}](https://www.linode.com/docs/api/linode-instances/#linode-create)) Linodes that have not been assigned an IPv6 address will have their JSON correctly display *null*.

src/content/changelog/06-20.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version: 4.0.2
1313
* Each config in "configs" must have at least one node in "nodes"
1414
* Added X-Spec-Version header to API responses
1515
* Indicates the version of Linode's OpenAPI specification describes this API
16-
* Spec is available at [https://developers.linode.com/openapi.yaml](https://developers.linode.com/openapi.yaml)
16+
* Spec is available at [https://www.linode.com/docs/api/openapi.yaml](https://www.linode.com/docs/api/openapi.yaml)
1717
* Added persistent ordering to all collections
1818
* All collections are now returned in a predictable, consistent order
1919
* Added watchdog\_enabled to Linode object

src/content/changelog/06-25-api.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ version: 4.2.0
1010
### Added
1111

1212
- Added Object Storage beta endpoints for the Early Access Program. **Note**: these endpoints are prepended with **/v4beta** instead of the traditional /v4.
13-
- List Clusters ([GET /object-storage/clusters](https://developers.linode.com/api/v4/object-storage-clusters))
14-
- View Cluster ([GET /object-storage/clusters/{clusterId}](https://developers.linode.com/api/v4/object-storage-clusters-cluster-id))
15-
- List Object Storage Keys ([GET /object-storage/keys](https://developers.linode.com/api/v4/object-storage-keys))
16-
- Create an Object Storage Key ([POST /object-storage/keys](https://developers.linode.com/api/v4/object-storage-keys/#post))
17-
- View Object Storage Key([GET /object-storage/keys/{keyId}](https://developers.linode.com/api/v4/object-storage-keys-key-id))
18-
- Update an Object Storage Key ([PUT /object-storage/keys/{keyId}](https://developers.linode.com/api/v4/object-storage-keys-key-id/#put))
19-
- Revoke an Object Storage Key ([DELETE /object-storage/keys/{keyId}](https://developers.linode.com/api/v4/object-storage-keys-key-id/#delete))
13+
- List Clusters ([GET /object-storage/clusters](https://www.linode.com/docs/api/object-storage/#clusters-list))
14+
- View Cluster ([GET /object-storage/clusters/{clusterId}](https://www.linode.com/docs/api/object-storage/#cluster-view))
15+
- List Object Storage Keys ([GET /object-storage/keys](https://www.linode.com/docs/api/object-storage/#object-storage-keys-list))
16+
- Create an Object Storage Key ([POST /object-storage/keys](https://www.linode.com/docs/api/object-storage/#object-storage-key-create))
17+
- View Object Storage Key([GET /object-storage/keys/{keyId}](https://www.linode.com/docs/api/object-storage/#object-storage-key-view))
18+
- Update an Object Storage Key ([PUT /object-storage/keys/{keyId}](https://www.linode.com/docs/api/object-storage/#object-storage-key-update))
19+
- Revoke an Object Storage Key ([DELETE /object-storage/keys/{keyId}](https://www.linode.com/docs/api/object-storage/#object-storage-key-revoke))
2020
- Added the GPU class to the Linode Types endpoints, as well as a new *gpus* parameter that describes the number of GPUs available to the selected Linode type:
21-
- [GET /linode/types](https://developers.linode.com/api/v4/linode-types)
22-
- [GET /linode/types/{typeId}](https://developers.linode.com/api/v4/linode-types-type-id)
21+
- [GET /linode/types](https://www.linode.com/docs/api/linode-types/#types-list)
22+
- [GET /linode/types/{typeId}](https://www.linode.com/docs/api/linode-types/#type-view)

0 commit comments

Comments
 (0)