Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Blog merging into main website codebase #1091

Merged
merged 65 commits into from
Mar 31, 2020
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
0b1d948
Basic setup of TS, eslint for TS. Fix related linter errors
psdcoder Mar 19, 2020
cc50057
Migrate blog's content to the main website codebase. Use layout from …
psdcoder Mar 24, 2020
08b490b
Refactor layouts. Add modifiers to layout and use it for DocLayout to…
psdcoder Mar 25, 2020
f23ae2e
Convert fonts to more web-friendly formats (woff, woff2) and use them…
psdcoder Mar 25, 2020
38ea3aa
Fix Link component for link with custom target
psdcoder Mar 25, 2020
ff55121
Implement front redirects. Replace all html anchor usages to Link com…
psdcoder Mar 25, 2020
c5548eb
Remake blog api call to local static query
psdcoder Mar 25, 2020
6835226
Add common LayoutWidthContainer component
psdcoder Mar 25, 2020
0092bbe
Make header narrow for /doc. Fix sticky styles for sidebars in the /doc
psdcoder Mar 25, 2020
8c915b4
Remove outdated TSLint comments
psdcoder Mar 26, 2020
59b2675
Specify restyled config
psdcoder Mar 26, 2020
25d07c5
Remove duplicated getComments api method and use similar one from uti…
psdcoder Mar 26, 2020
2af6ec7
Fix eslint warnings and remove --quiet option from package.json commands
psdcoder Mar 26, 2020
bbbc220
Add --skipLibCheck option to tsc
psdcoder Mar 26, 2020
62551c7
Specify node version in package.json
psdcoder Mar 26, 2020
12cf680
Merge latest post from blog
psdcoder Mar 26, 2020
51fcf66
Remake SEO component to handle nested using properly
psdcoder Mar 26, 2020
6d6ed6d
Refactore utils/api to TS. Move usePost to queries folder as it's not…
psdcoder Mar 26, 2020
d1c25e8
Fix styles for PageContent
psdcoder Mar 26, 2020
23bd6ed
Doublecheck package commands and migrate missed ones from the blog
psdcoder Mar 26, 2020
033b1eb
Update Circle CI config - update node version, simplify install comma…
psdcoder Mar 26, 2020
93f68da
Merge README
psdcoder Mar 26, 2020
cf36193
Fix stylelint warning. And add .json extension to stylelint config fo…
psdcoder Mar 26, 2020
0c2d1b2
Add scripts folder to linters check
psdcoder Mar 26, 2020
984c675
Minor fix in README
psdcoder Mar 27, 2020
d2ebb65
Remove original otf fonts
psdcoder Mar 27, 2020
0ef161c
Remove images from static folder which are in the IconSet component now
psdcoder Mar 27, 2020
946291e
Deduplicate logos
psdcoder Mar 27, 2020
db97402
Refactor doc template to TS and renamed it to doc-home.tsx, to keep c…
psdcoder Mar 27, 2020
233e933
Use Link component for links in the documentation content
psdcoder Mar 27, 2020
a5206c1
Add scripts/ and middleware/ folders to eslint overrides section
psdcoder Mar 27, 2020
e61ed19
Remove outdated highlightjs languages configs
psdcoder Mar 27, 2020
9912583
Fix track behaviour in the right sidebar in the docs
psdcoder Mar 27, 2020
4f471ec
Add missing Inconsolate font import
psdcoder Mar 27, 2020
b1f3d80
Fix tooltips
psdcoder Mar 27, 2020
688c300
Unify code styles in the blog with docs styles
psdcoder Mar 27, 2020
80697a1
Replace broken link in the blog
psdcoder Mar 27, 2020
916c26b
Update exlude-links file
psdcoder Mar 27, 2020
1f062fe
Change padding of hero block in the features page
psdcoder Mar 27, 2020
f0a8230
Use fonts from the blog
psdcoder Mar 27, 2020
9805790
Add public dir to cached directories in Heroku
psdcoder Mar 30, 2020
63bc603
Remove prism sh warning
psdcoder Mar 30, 2020
00dfb17
Move helpers methods to separate utils file for the Page component
psdcoder Mar 30, 2020
41a889d
Fix incorrect scroll position for hash links
psdcoder Mar 30, 2020
5416400
Remove monospace fonts from code blocks in the blog
psdcoder Mar 30, 2020
6a3a275
Fix scroll behaviour for left sidebar in the docs
psdcoder Mar 30, 2020
9a67fe5
Fix Sentry errors for IE11
psdcoder Mar 30, 2020
299e2d3
Fix yarn installation warnings
psdcoder Mar 30, 2020
7ec8945
Transform initial pages components to TS
psdcoder Mar 30, 2020
a364922
Move DocLayout to Documentation directory
psdcoder Mar 30, 2020
99c0227
Decrease header text padding to compensate new layout structure
psdcoder Mar 30, 2020
c4463cb
Fix styles for Get started button in the nav and code blocks in the docs
psdcoder Mar 30, 2020
daacdef
Scroll to the sidebar item only if it isn't visible
psdcoder Mar 30, 2020
6ac691f
One more fix for anchor navigation
psdcoder Mar 30, 2020
0214340
Remove focus styles for logo
psdcoder Mar 30, 2020
e467262
Fix critical bug! Redirects on the server side
psdcoder Mar 30, 2020
d311df0
Fix styles of some elements for blog. Fix fonts for Firefox
psdcoder Mar 31, 2020
bec1a5b
Fix broken remark-images plugin
psdcoder Mar 31, 2020
63be908
Fix hash navigation again
psdcoder Mar 31, 2020
358ff52
Use @reach/router navigate method for front redirecting
psdcoder Mar 31, 2020
af9d0be
Update hash in the url by clicking on links with hashes in the href attr
psdcoder Mar 31, 2020
5d444ef
Remove TODOs
psdcoder Mar 31, 2020
dbe53ec
Fix fonts for the all layouts
psdcoder Mar 31, 2020
7bf32f7
Migrate latest blogpost
psdcoder Mar 31, 2020
f2aacff
Scroll to the hash section if it wasn't changed (user can scroll page)
psdcoder Mar 31, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 16 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended",
"plugin:json/recommended"
],
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true // Allows for the parsing of JSX
}
},
shcheklein marked this conversation as resolved.
Show resolved Hide resolved
"env": {
"browser": true,
"jest": true
Expand All @@ -17,10 +23,14 @@
}
},
"rules": {
"max-len": [
"@typescript-eslint/interface-name-prefix": [
"error",
{ "code": 80, "ignoreTemplateLiterals": true, "ignoreUrls": true }
{ "prefixWithI": "always" }
],
"no-tabs": "error"
"no-tabs": "error",
"react/prop-types": "off", // Props should be described as TS types
"@typescript-eslint/explicit-function-return-type": "off",
// TODO: remove after rewriting code to TS
pavelgrinchenko marked this conversation as resolved.
Show resolved Hide resolved
"@typescript-eslint/no-var-requires": "warn"
}
}
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ typings/
# dotenv environment variables file
.env

# Next.js build output
.idea
# Editors & logs
*.log
.idea
.vscode

# Mac finder artifacts
.DS_Store

# Gatsby cache
.cache
public
tmp
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.cache/
public/
16 changes: 9 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
semi: false
singleQuote: true
trailingComma: none
printWidth: 80
tabWidth: 2
useTabs: false
proseWrap: "always"
{
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"proseWrap": "always"
}
5 changes: 4 additions & 1 deletion .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ restylers:
include:
- './*.{js,md}'
- 'pages/**/*.js'
- 'content/docs/**/*.{js,md}'
- 'content/**/*.{js,md}'
pavelgrinchenko marked this conversation as resolved.
Show resolved Hide resolved
- 'src/**/*.js'
- name: stylelint
include:
- 'src/**/*.css'
18 changes: 18 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "stylelint-config-standard",
"rules": {
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"declaration-colon-newline-after": null,
"value-list-comma-newline-after": null,
"property-no-unknown": [ true, {
"ignoreProperties": ["composes"]
} ],
"selector-pseudo-class-no-unknown": [ true, {
"ignorePseudoClasses": ["global"]
} ],
"at-rule-no-unknown": [true, {
"ignoreAtRules": ["mixin"]
}]
},
}
Empty file added .tmp-empty-package/index.d.ts
Empty file.
6 changes: 6 additions & 0 deletions .tmp-empty-package/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "empty-package",
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
}
pavelgrinchenko marked this conversation as resolved.
Show resolved Hide resolved
20 changes: 20 additions & 0 deletions config/postcss/media.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* tslint:disable object-literal-sort-keys */
pavelgrinchenko marked this conversation as resolved.
Show resolved Hide resolved

const screens = {
giant: 1200,
desktop: 1005,
tablet: 768,
phablet: 572,
phone: 376
}

module.exports = {
customMedia: {
'--xxs-scr': `(max-width: ${screens.phone}px)`,
'--xs-scr': `(max-width: ${screens.phablet}px)`,
'--sm-scr': `(max-width: ${screens.tablet}px)`,
'--md-scr': `(max-width: ${screens.desktop - 1}px)`,
'--lg-scr': `(min-width: ${screens.desktop}px)`,
'--xl-scr': `(min-width: ${screens.giant}px)`
}
}
91 changes: 91 additions & 0 deletions config/postcss/mixins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/* tslint:disable object-literal-sort-keys */

const focus = {
'&:focus': {
color: 'var(--color-orange)',
outline: 'none'
}
}

const active = {
'&:active': {
position: 'relative',
top: '1px',
left: '1px'
}
}

const hover = {
'&:hover': {
opacity: 0.7
}
}

module.exports = {
mixins: {
'h1-desktop': {
'font-weight': '500',
'font-size': '40px',
'line-height': '60px'
},
'h1-mobile': {
'font-weight': '500',
'font-size': '30px',
'line-height': '40px'
},
'h2-desktop': {
'font-weight': '500',
'font-size': '30px',
'line-height': '40px'
},
'h2-mobile': {
'font-weight': '500',
'font-size': '25px',
'line-height': '35px'
},
'h3-desktop': {
'font-weight': '500',
'font-size': '24px',
'line-height': '34px'
},
'h3-mobile': {
'font-weight': '500',
'font-size': '20px',
'line-height': '30px'
},
'text-desktop': {
'font-size': '24px',
'line-height': '34px'
},
'text-mobile': {
'font-size': '20px',
'line-height': '30px'
},
'text-diminished': {
'font-size': '20px',
'line-height': '30px'
},
'text-secondary': {
'font-size': '16px',
'line-height': '24px'
},
'button-big': {
'font-size': '20px',
'line-height': '30px'
},
'button-small': {
'font-size': '16px',
'line-height': '25px'
},
link: {
'text-decoration': 'none',
color: 'var(--color-blue)',
...hover,
...focus,
...active
},
hover,
focus,
active
}
}
9 changes: 9 additions & 0 deletions content/authors/dmitry_petrov.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
path: ../authors/dmitry_petrov.md
name: Dmitry Petrov
avatar: ../../static/uploads/avatars/dmitry_petrov.png
---

Creator of [http://dvc.org](http://dvc.org) — Git for ML. Ex-Data Scientist
[http://twitter.com/Microsoft](@Microsoft). PhD in CS. Making jokes with a
serious face.
7 changes: 7 additions & 0 deletions content/authors/elle_obrien.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
path: ../authors/elle_obrien.md
name: Elle O'Brien
avatar: ../../static/uploads/avatars/elle_obrien.jpg
---

Data scientist at [http://dvc.org](http://dvc.org)
9 changes: 9 additions & 0 deletions content/authors/george_vyshnya.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
path: ../authors/george_vyshnya.md
name: George Vyshnya
avatar: ../../static/uploads/avatars/george_vyshnya.jpeg
---

Seasoned Data Scientist / Software Developer with blended experience in software
development, IT, DevOps, PM and C-level roles. CTO at
[http://sbc-group.pl](http://sbc-group.pl)
7 changes: 7 additions & 0 deletions content/authors/marija_ilic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
path: ../authors/marija_ilic.md
name: Marija Ilić
avatar: ../../static/uploads/avatars/marija_ilic.png
---

Data scientist at Njuškalo, Croatia.
7 changes: 7 additions & 0 deletions content/authors/svetlana_grinchenko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
path: ../authors/svetlana_grinchenko.md
name: Svetlana Grinchenko
avatar: ../../static/uploads/avatars/svetlana_grinchenko.jpeg
---

Head of developer relations at [http://dvc.org](http://dvc.org)
Loading