Skip to content

Commit

Permalink
new ci image
Browse files Browse the repository at this point in the history
  • Loading branch information
zbayoff committed Jul 30, 2019
1 parent 595b12f commit 05b552d
Show file tree
Hide file tree
Showing 3,659 changed files with 5,825 additions and 3,040 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
18 changes: 18 additions & 0 deletions .babelrc
@@ -0,0 +1,18 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"targets": {
"node": "current"
}
}
]
],
"plugins": [
"@babel/plugin-syntax-object-rest-spread",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
]
}
134 changes: 134 additions & 0 deletions .eslintrc
@@ -0,0 +1,134 @@
{
// Starts from a sane strict rule set
"extends": [
"airbnb-base",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
"rules": {
"func-names": "off",
"comma-dangle": ["error", "never"],
// Allow non-dot notation
"dot-notation": "off",
// Really specific, will review it later
"new-cap": "off",
// No _var but allow this._method
"no-underscore-dangle": [2, {
"allowAfterThis": true
}],
// Allow functions to be used before definition (as espected in other languages)
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true
}
],
// Don't allow modification of function parameters, but allow modification of parameter properties.
// Debatable but required for in-place functions.
"no-param-reassign": [2, {
"props": false
}],
// Don't be too strict on these yet
"object-shorthand": [1, "always"],
"arrow-body-style": [1, "as-needed"],
// Allow mixed operators
"no-mixed-operators": "off",
// Preference yet to be defined, be flexible for now
"import/prefer-default-export": "off",
// Allow i++, i--
"no-plusplus": "off",
// Simpler than Airbnb, closer to Prettier
// TODO: enable/auto-lint it everywhere
"arrow-parens": ["off", "as-needed"],
// Need to figure out first what convention we want here
"import/extensions": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.unit.{js,jsx}",
"**/test/**/*.{js,jsx}",
"webpack.dev.js",
"webpack.common.js",
"webpack.prod.js",
"styleguide.config.js"
]
}
],
// Don't force class methods to be static when possible
"class-methods-use-this": "off",
// All import must exist in imported file
"import/no-unresolved": "error",
// AirBNB doesn't use it because it doesn't work with CommonJS, but we don't care so we want `named`
"import/named": "error",
// Allow parseInt without radix (we don't support any browsers that
// implement parseInt incorrectly)
"radix": "off",
// Always allow a final else in an if block
"no-else-return": "off",

// Accept only warn and error console methods
"no-console": ["error", {
"allow": ["warn", "error", "info"]
}],

// Differences from the React set
// Allow anonymous components
"react/display-name": "off",

// We use regenerator-runtime anyway, disable warning about it
"no-restricted-syntax": "off",
// Prettier handles this
"no-nested-ternary": "off",
// react is provided by a plugin
"react/react-in-jsx-scope": "off",
"react/no-danger": "error",
// Off temporarily, TODO: bring them back one by one
"react/prop-types": [2, {
"ignore": ["children"]
}],
"react/no-string-refs": "off",
"react/no-unescaped-entities": "off"
},
// Need babel parser for some missing features (for instance, object spread)
"parser": "babel-eslint",
// React plugin, configured with the right version
"plugins": ["react"],
"settings": {
"react": {
"pragma": "React",
"version": "15.6.1"
},
// "import/resolver": {
// "webpack": {
// "config": {
// "resolve": {
// "modules": [
// ],
// "mainFields": ["browser", "main", "module"],
// "extensions": [".json", ".ts", ".tsx", ".jsx", ".js"]
// }
// }
// },
// "node": {
// "paths": ["src"]
// }
// }
},
"env": {
"browser": true,
"es6": true,
"jquery": true,
"node": true
},
// Some globals that we still use in our "strict" code
// False mean that they are read-only https://eslint.org/docs/user-guide/configuring#specifying-globals
"globals": {
// Datadog globals
"DD": false,
// Third party globals
"$": false
}
}
6 changes: 1 addition & 5 deletions .gitignore
@@ -1,11 +1,7 @@
# Hugo
public/
static/css/
static/js/
static/images/
dist/
data/integrations/
data/service_checks/
data/manifests/

# Ignoring all integrations file
content/integrations/*.md
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Expand Up @@ -18,7 +18,7 @@ before_script:

# ================== templates ================== #
.base_template: &base_template
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/corp-ci:master
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/corp-ci:zach_upgrade-docs-webpack
tags:
- "runner:main"
- "size:large"
Expand Down
9 changes: 1 addition & 8 deletions Makefile
Expand Up @@ -27,7 +27,6 @@ clean: stop ## clean all make installs.
make clean-build
make clean-integrations
make clean-auto-doc
make clean-static

clean-all: stop ## clean everything.
make clean-build
Expand Down Expand Up @@ -93,12 +92,6 @@ clean-auto-doc: ##remove all doc automatically created
clean-node: ## remove node_modules.
@if [ -d node_modules ]; then rm -r node_modules; fi

clean-static: ## remove compiled static assets
@if [ -d static/css ]; then rm -r static/css; fi
@if [ -d static/images ]; then rm -r static/images; fi
@if [ -d static/js ]; then rm -r static/js; fi
@if [ -d data/manifests ]; then rm -r data/manifests; fi

clean-virt: ## remove python virtual env.
@if [ -d ${VIRENV} ]; then rm -rf $(VIRENV); fi

Expand Down Expand Up @@ -167,5 +160,5 @@ start: clean source-helpers ## start the gulp/hugo server.

stop: ## stop the gulp/hugo server.
@echo "stopping previous..."
@pkill -x gulp || true
@pkill -x webpack || true
@pkill -x hugo server --renderToDisk || true
122 changes: 122 additions & 0 deletions config-corp.js
@@ -0,0 +1,122 @@
module.exports = {
"production": {
branches: ["master", "content-deploy"],
serverUrl: "https://www.datadoghq.com",
slackChannel: "#websites",
google: {
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw",
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0",
recaptcha_api: "https://www.google.com/recaptcha/api.js",
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places"
},
greenhouse: {
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/"
},
careers_api: {
application_post: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/application/create",
presigner: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/presigner"
},
algolia_index: "prod-v2"
},
"preview": {
serverUrl: "https://corpsite-preview.datadoghq.com/",
slackChannel: "#guac-ops",
google: {
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw",
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0",
recaptcha_api: "https://www.google.com/recaptcha/api.js",
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places"
},
greenhouse: {
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/"
},
careers_api: {
application_post: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/application/create",
presigner: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/presigner"
},
algolia_index: "staging"
},
"staging": {
serverUrl: "http://corpsite-staging.datadoghq.com",
slackChannel: "#guac-ops",
google: {
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw",
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0",
recaptcha_api: "https://www.google.com/recaptcha/api.js",
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places"
},
greenhouse: {
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/"
},
careers_api: {
application_post: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/application/create",
presigner: "https://7wje6dav9g.execute-api.us-east-1.amazonaws.com/prod/presigner"
},
algolia_index: "staging"
},
"local": {
serverUrl: "http://localhost:3000",
google: {
api_key: "AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw",
geocode_api_key: "AIzaSyBHOYhxa1lznRERCtnWK3wgDvtZWTzDwy0",
recaptcha_api: "https://www.google.com/recaptcha/api.js",
places: "https://maps.googleapis.com/maps/api/js?key=AIzaSyAV35rQjE2Qg8J6OXtACpCn-b6d3SqepBw&libraries=places"
},
greenhouse: {
job_board_url: "https://api.greenhouse.io/v1/boards/datadog/"
},
careers_api: {
application_post: "http://127.0.0.1:5000/application/create",
presigner: "http://127.0.0.1:5000/presigner"
},
algolia_index: "staging"
},
"linkCheckOptions": {
method: 'get',
filterLevel: 3,
maxSocketsPerHost: 75,
maxSockets: 300,
excludeExternalLinks: false,
honorRobotExclusions: false,
// cacheResponses: true,
includedKeywords: [
'*docs.datadoghq*',
'*help.datadoghq*'
],
excludedKeywords: [
'**/signup*',
'*app.datadoghq*',
'*corp-hugo/tree*',
'*linkedin.com/share*',
'*reddit.com/submit*',
'*twitter.com/share*',
'*mailto:*',
'*tel:*',
'*irc:*',
]
},
"linkCheckNotifications":{
keywords:[
[
'*datadoghq.com/blog/*',
'*/about/press/*'
],
[
{
slackChannel: '#guac-ops',
message: 'Gobs'
},
{
slackChannel: '#guac-ops',
message: 'Press'
}
]
]

}
}

// '': {
// slackChannel: '#guac-ops',
// message: "A blog link is broken tell #writing"
// }
7 changes: 7 additions & 0 deletions data/manifest.json
@@ -0,0 +1,7 @@
{
"@babel/polyfill.js": "static/@babel/polyfill.js",
"main-dd-css.css": "static/main-dd-css.css",
"main-dd-css.js": "static/main-dd-css.js",
"main-dd-js.js": "static/main-dd-js.js",
"vendor.js": "static/vendor.js"
}
1 change: 1 addition & 0 deletions data/manifests/css.json
@@ -0,0 +1 @@
{"main-dd.css":"main-dd-c4cbcf87.css"}
1 change: 1 addition & 0 deletions data/manifests/images.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/manifests/js.json
@@ -0,0 +1 @@
{"main-dd.js":"main-dd-b81e6d58.js"}

0 comments on commit 05b552d

Please sign in to comment.