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

[Work In Progress] First release #37

Open
wants to merge 490 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
490 commits
Select commit Hold shift + click to select a range
0d13a67
chore: add test page
rogozhkina Aug 6, 2021
78b6ee1
feat: add component accent
rogozhkina Aug 8, 2021
a5160aa
chore: delete unnecessary import
khizrim Aug 12, 2021
57dd317
feat: add ability to choose inline or block mode
khizrim Aug 12, 2021
91653b1
chore: dependencies
khizrim Aug 12, 2021
df3c8a4
feat: pass formulas to Math component
khizrim Aug 12, 2021
ad32234
fix: path inline formulas to Math
khizrim Aug 12, 2021
d37b842
feat: install @types/mdx-js__react
khizrim Aug 17, 2021
af8d4a3
feat: set up MathLayout as default
khizrim Aug 17, 2021
6fb15c1
refactor: split Math to MathBlock & MathInline
khizrim Aug 17, 2021
a901a06
feat: add MathLayout
khizrim Aug 17, 2021
74d3352
fix: use MathLayout instead Math
khizrim Aug 17, 2021
033a883
fix: correct mdx
khizrim Aug 20, 2021
ff7c05a
refactor: shorten MathLayout component
khizrim Aug 20, 2021
23751b5
fix: return occasionally deleted text
khizrim Aug 21, 2021
4057dea
feat: add chapters/decision_tree
rogozhkina Jul 22, 2021
94f6bc6
feat: add chapters/data
rogozhkina Jul 22, 2021
874a69d
feat: add chapters/cross_validation
rogozhkina Jul 22, 2021
a774318
feat: add chapters/linear_models
rogozhkina Jul 23, 2021
c2d65de
feat: add chapters/latent_models
rogozhkina Jul 23, 2021
5fb05dc
feat: add chapters/hyperparameters_tuning
rogozhkina Jul 23, 2021
5cd3ec4
feat: add chapters/how_to
rogozhkina Jul 23, 2021
9fe41c1
feat: add chapters/grad_boost
rogozhkina Jul 23, 2021
e6c60df
feat: add chapters/linear_models
rogozhkina Jul 23, 2021
a9179a8
feat: add chapters/latent_var_models
rogozhkina Jul 23, 2021
fab6da5
feat: add chapters/hyperparameters_tuning
rogozhkina Jul 23, 2021
50adf46
feat: add chapters/how_to
rogozhkina Jul 23, 2021
bb5a0d1
feat: add chapters/grad_boost
rogozhkina Jul 23, 2021
bec89cb
feat: add chapters/matrix_factorization
rogozhkina Jul 23, 2021
bb8f29a
chore: renamed and checked data/intro
rogozhkina Jul 26, 2021
b21caa9
chore: renamed and checked decision_tree/intro
rogozhkina Jul 26, 2021
83c7790
chore: renamed and checked grad_boost/intro
rogozhkina Jul 27, 2021
7bdb03b
chore: renamed and checked hyperparameters_tuning/intro
rogozhkina Jul 27, 2021
3d862d1
chore: renamed and checked linear_models/intro
rogozhkina Jul 27, 2021
775cf5d
chore: renamed and checked latent_var_models/intro
rogozhkina Aug 3, 2021
7fb88bf
chore: renamed and checked matrix_factorization/intro
rogozhkina Aug 3, 2021
f64d078
chore: renamed and checked how_to/develop
rogozhkina Aug 3, 2021
dc761a1
chore: added and checked metric_based
rogozhkina Aug 3, 2021
55e1008
chore: added prob_ML (part)
rogozhkina Aug 3, 2021
9d28aee
chore: added and checked neural_nets
rogozhkina Aug 4, 2021
f0187ee
chore: added and checked prob_ML
rogozhkina Aug 4, 2021
f4a746d
feat: install react-katex & remark-math
khizrim Jul 23, 2021
efeb7c3
chore: change remark-math version
khizrim Jul 23, 2021
83f6d19
feat: add linaria
rogozhkina Jul 22, 2021
2e9c240
feat: add reach/router
rogozhkina Jul 25, 2021
fb8ec28
feat: add test page for linaria testing
rogozhkina Jul 25, 2021
4424cac
chore: testing with css-tag
rogozhkina Jul 25, 2021
da6caa2
feat: install @types/react
khizrim Jul 28, 2021
c3b56be
chore: add necessary dependencies
khizrim Jul 31, 2021
f5a7c3c
feat: deleted linaria
rogozhkina Aug 5, 2021
0b77116
feat: add styled-components, dependencies and plugins
rogozhkina Aug 6, 2021
22fdf8a
chore: dependencies
khizrim Aug 12, 2021
d7f76be
feat: pass formulas to Math component
khizrim Aug 12, 2021
8a5e015
fix: path inline formulas to Math
khizrim Aug 12, 2021
f7fb286
feat: install @types/mdx-js__react
khizrim Aug 17, 2021
e117076
fix: use MathLayout instead Math
khizrim Aug 17, 2021
791577b
fix: correct mdx
khizrim Aug 20, 2021
50af4a5
fix: return occasionally deleted text
khizrim Aug 21, 2021
4148f39
fix: header import
rogozhkina Sep 2, 2021
b837428
chore: deleted borders
rogozhkina Sep 2, 2021
7a0b719
fix: reinstall broken package-lock.json
rogozhkina Sep 4, 2021
f4397a1
fix: refit data.mdx
rogozhkina Sep 4, 2021
701f374
fix: refit ansambles/intro.mdx
rogozhkina Sep 4, 2021
c4fd47a
fix: refit cross_validation
rogozhkina Sep 4, 2021
04f037f
fix: refit decision_tree/intro.mdx
rogozhkina Sep 4, 2021
c1d4443
fix: refit grad_boost/intro.mdx
rogozhkina Sep 4, 2021
733c369
fix: refit how_to/intro.mdx
rogozhkina Sep 4, 2021
a93e5b1
fix: refit hyperparameters_tuning/intro.mdx
rogozhkina Sep 4, 2021
2c02cab
fix: refit latent_var_models/intro.mdx
rogozhkina Sep 4, 2021
af8aa8e
fix: refit linear_models/intro.mdx
rogozhkina Sep 4, 2021
cc3bac0
fix: refit matrix_factorization
rogozhkina Sep 4, 2021
a1be7ec
fix: refit neural_nets/nn_and_classic_models.mdx
rogozhkina Sep 4, 2021
d153323
fix: updated prob_ML/intro.mdx
rogozhkina Sep 4, 2021
89a5a6a
fix: refit intro.mdx
rogozhkina Sep 4, 2021
3c711f8
fix: refit to_be_done
rogozhkina Sep 4, 2021
03c2870
fix: refit metric_based
rogozhkina Sep 4, 2021
e167519
fix: refit model_evaluation
rogozhkina Sep 4, 2021
5a644a1
fix: refit neural_nets/cnn
rogozhkina Sep 4, 2021
eaa138f
chore: autostyles
rogozhkina Sep 4, 2021
fecef55
fix: refit neural_nets/intro.mdx
rogozhkina Sep 4, 2021
5452e20
chore: autostyles
rogozhkina Sep 4, 2021
61297f7
fix: refit import of the normal font
rogozhkina Sep 4, 2021
a7df2b8
chore: deleted test authors
rogozhkina Sep 4, 2021
f260211
fix: refit neural_nets/intro.mdx
rogozhkina Sep 4, 2021
d619cad
chore: del sidebar fix position
rogozhkina Sep 4, 2021
cd89938
chore: deleted sidebar close button fix position
rogozhkina Sep 5, 2021
fd18046
fix: display formulas correctly
khizrim Sep 7, 2021
bcab462
fix: remove MathLayout from defaults
khizrim Sep 7, 2021
4f24ca8
chore: fix indents to display formulas correctly
khizrim Sep 7, 2021
94fd2ae
feat: add syntax highlighting
khizrim Sep 9, 2021
8c8054f
Merge pull request #11 from yandexdataschool/feature/content
rogozhkina Sep 12, 2021
fb13d96
feat: add Link component to fix links
khizrim Sep 16, 2021
2163773
fix: add Math and Link prop types
khizrim Sep 16, 2021
24d859e
chore: added dependencies
rogozhkina Sep 18, 2021
8f4508b
chore: fonts moved into global.css
rogozhkina Sep 18, 2021
002ae41
Merge pull request #23 from yandexdataschool/fix/links
khizrim Sep 20, 2021
70d6a85
Merge pull request #21 from yandexdataschool/feature/code-block
khizrim Sep 20, 2021
b450c5a
chore: deleted fontsizes
rogozhkina Sep 26, 2021
a06d9c1
Merge pull request #24 from 'feature/tailwindcss_new' into develop
rogozhkina Sep 26, 2021
3d335fc
docs: update README
bautrukevich Oct 8, 2021
02af263
fix: update image in README.md
bautrukevich Oct 8, 2021
294ea18
fix: image height in readme.md
bautrukevich Oct 8, 2021
2f7cb3b
Merge pull request #27 from yandexdataschool/docs/readme
bautrukevich Oct 8, 2021
e1dbc0d
feat: add summary component
khizrim Oct 14, 2021
0b08f5f
feat: add styles
khizrim Oct 14, 2021
4ab7657
feat!: init NextJS
bautrukevich Oct 15, 2021
b400c98
fix: hide summary marker in some browsers
khizrim Oct 21, 2021
b176765
chore: setup mdx and jest
bautrukevich Oct 21, 2021
e603f90
feat: add Layout component
bautrukevich Oct 21, 2021
0394f16
feat: add CustomLink component
bautrukevich Oct 21, 2021
627290f
feat: add TestComponent
bautrukevich Oct 21, 2021
58fb4e5
fix: update index page with layout
bautrukevich Oct 21, 2021
e15716a
feat: add dev watch command
bautrukevich Oct 22, 2021
eddf696
feat: add test ci command
bautrukevich Oct 22, 2021
28c76ce
Merge pull request #30 from yandexdataschool/feat/summary
khizrim Oct 25, 2021
255840b
chore: dependencies
bautrukevich Oct 28, 2021
ae48e46
chore: dependencies
bautrukevich Oct 28, 2021
c1a216b
feat: add katex styles
bautrukevich Oct 28, 2021
95ff9a1
feat: add index page with toc
bautrukevich Oct 28, 2021
995d475
feat: add authors dir
bautrukevich Oct 28, 2021
dba0705
chore: remove unused files
bautrukevich Oct 28, 2021
4d2eb34
feat: add CustomLink component
bautrukevich Oct 28, 2021
d056920
feat: add Details component
bautrukevich Oct 28, 2021
0a6c76f
feat: add Example styled component
bautrukevich Oct 28, 2021
8745b81
feat: add handbook content folder
bautrukevich Oct 28, 2021
32904ed
feat: add [slug] page
bautrukevich Oct 28, 2021
5da85af
Merge branch 'develop' into feat/nextjs
bautrukevich Oct 28, 2021
53aab3b
fix: _test.mdx file
bautrukevich Oct 28, 2021
ffbbbf5
feat: add base TOC
bautrukevich Oct 28, 2021
c6dc869
feat: save images to files
bautrukevich Oct 28, 2021
ee29fb3
chore: remove unused remark toc
bautrukevich Oct 28, 2021
a0f920c
fix: problem during build time on netlify
bautrukevich Oct 29, 2021
b291ec5
chore: trick with deps
bautrukevich Oct 29, 2021
9f52fdb
chore: change package name
bautrukevich Oct 29, 2021
99ba890
Revert "chore: change package name"
bautrukevich Oct 29, 2021
ad2bda6
Revert "chore: trick with deps"
bautrukevich Oct 29, 2021
76ec367
Revert "fix: problem during build time on netlify"
bautrukevich Oct 29, 2021
7b1dc9a
chore: change package name
bautrukevich Oct 29, 2021
69fab42
chore: remove src folder
bautrukevich Oct 29, 2021
d2f0195
feat: add interactive example
bautrukevich Oct 29, 2021
824fcba
feat: extract table of contents
bautrukevich Oct 29, 2021
8e89abb
feat: add Content component
bautrukevich Oct 29, 2021
7f2e98f
feat: install && config fonts
khizrim Nov 1, 2021
e3d66e1
feat: add Main component
khizrim Nov 1, 2021
10475db
feat: add Header
khizrim Nov 1, 2021
705e983
feat: add Footer
khizrim Nov 1, 2021
ec1d7c7
feat: add new components to the main page
khizrim Nov 1, 2021
106c084
feat: add get author util
bautrukevich Nov 1, 2021
4fb337d
feat: add copy file to public folder
bautrukevich Nov 1, 2021
49d7d28
feat: copy files to additional public folder
bautrukevich Nov 1, 2021
eb55270
feat: copy author photo to public folder
bautrukevich Nov 1, 2021
52d3a9a
test: add test case when folder doesn't exists
bautrukevich Nov 1, 2021
deec4a5
chore: change anonymous function to arrow function
bautrukevich Nov 1, 2021
878a45f
Merge pull request #33 from yandexdataschool/feat/get-author
bautrukevich Nov 1, 2021
1a39121
chore: add toc
bautrukevich Nov 1, 2021
c5e9895
feat: add raw content
bautrukevich Nov 1, 2021
998d3ce
Merge pull request #34 from yandexdataschool/feat/add-content
bautrukevich Nov 1, 2021
bdc19f2
chore: remove public/images from gitignore
khizrim Nov 1, 2021
2358a8d
feat: add fast-glob mock
bautrukevich Nov 1, 2021
f8057c0
feat: add getAllArticleSlugs
bautrukevich Nov 1, 2021
713b8cd
feat: add getAuthors
bautrukevich Nov 2, 2021
ce6d53e
feat: add copyArticleHeroImage
bautrukevich Nov 2, 2021
f2271b2
feat: add getArticleContent
bautrukevich Nov 2, 2021
9bf763e
feat: add description field to frontmatter
bautrukevich Nov 2, 2021
05ae518
fix: intro article
bautrukevich Nov 2, 2021
3dcef59
feat: add authors
bautrukevich Nov 2, 2021
088a553
chore: update fixtures for authors
bautrukevich Nov 2, 2021
9ad12bf
chore: update fixtures for articles
bautrukevich Nov 2, 2021
704e405
fix: author photo and email can be optional
bautrukevich Nov 2, 2021
c34eea5
fix: articles
bautrukevich Nov 2, 2021
977e0cf
fix: articles
bautrukevich Nov 2, 2021
49e8280
fix: table of contents on main page
bautrukevich Nov 2, 2021
5e37621
feat: add getTransformedArticle
bautrukevich Nov 2, 2021
d3d68fa
fix: update slug page with new functions
bautrukevich Nov 2, 2021
df822c9
Merge pull request #31 from yandexdataschool/feat/nextjs
bautrukevich Nov 2, 2021
7cfdff2
Merge branch 'main' into develop
bautrukevich Nov 2, 2021
96ba198
feat: add progress for loading pages
bautrukevich Nov 2, 2021
2d3fa93
Merge pull request #35 from yandexdataschool/feat/get-transformed-art…
bautrukevich Nov 2, 2021
0dce134
refactor: move sections to json
bautrukevich Nov 2, 2021
1aebe60
Merge pull request #38 from yandexdataschool/feat/move-sections-to-json
bautrukevich Nov 2, 2021
c61445f
Merge branch 'develop' into feat/main
bautrukevich Nov 2, 2021
b9107fd
Merge branch 'develop' into feat/main
bautrukevich Nov 2, 2021
c559c64
refactor: add types
bautrukevich Nov 2, 2021
fcdce3e
fix: inline block for paragraph
bautrukevich Nov 2, 2021
8fa395f
Merge pull request #32 from yandexdataschool/feat/main
bautrukevich Nov 2, 2021
a7df4bc
feat: put static files separate to public/handbook directory
bautrukevich Nov 2, 2021
d3aa6cf
Merge pull request #39 from yandexdataschool/feat/put-static-files
bautrukevich Nov 2, 2021
1379421
fix: make h1 in article with serif
bautrukevich Nov 2, 2021
eb45f58
fix: add small margin at the bottom of nav
bautrukevich Nov 2, 2021
532755b
Merge pull request #40 from yandexdataschool/fix/typography
bautrukevich Nov 2, 2021
38cd320
fix: correct indents to parse content correctly
khizrim Nov 3, 2021
6f3a948
chore: fix indents
khizrim Nov 3, 2021
3133c55
chore: fix some indents
khizrim Nov 3, 2021
9c692df
Merge pull request #41 from yandexdataschool/fix/content
bautrukevich Nov 3, 2021
98d1038
chore: fix summary-highlight
rogozhkina Nov 3, 2021
45a90a7
chore: added footer to the article
rogozhkina Nov 4, 2021
13ac4bd
chore: added header to the article
rogozhkina Nov 4, 2021
b3ebff4
chore: styles details
rogozhkina Nov 4, 2021
bc3c327
fix: added border for the details
rogozhkina Nov 4, 2021
b6f8b14
Merge pull request #43 from yandexdataschool/feature/fix_article_footer
rogozhkina Nov 5, 2021
c8e4cbc
Merge branch 'develop' into feature/fix_article_header
rogozhkina Nov 5, 2021
b2624eb
Merge pull request #45 from yandexdataschool/feature/fix_article_header
rogozhkina Nov 5, 2021
bd23012
Merge pull request #47 from yandexdataschool/feature/fix_article
rogozhkina Nov 5, 2021
472256b
Merge branch 'develop' into feature/fix_summary
rogozhkina Nov 5, 2021
8ad47bc
Merge pull request #46 from yandexdataschool/feature/fix_summary
rogozhkina Nov 5, 2021
c97f8cf
fix: summary bug
rogozhkina Nov 5, 2021
e6a2a8b
Merge pull request #48 from yandexdataschool/feature/fix_summary_bug
rogozhkina Nov 5, 2021
34b276d
chore: added sidebar component
rogozhkina Nov 5, 2021
ebb5db9
fix: changed main params
rogozhkina Nov 5, 2021
94f6646
chore: added styles for the content-component
rogozhkina Nov 5, 2021
e97fecd
fix: sidebar-background
rogozhkina Nov 5, 2021
f03f897
chore: move interactive insert files
khizrim Nov 5, 2021
2c540ef
chore: add IFrame to mdx
khizrim Nov 5, 2021
891ec9d
feat: add some styling && auto resizing to IFrame
khizrim Nov 5, 2021
6f1f43c
fix: no more katex errors
khizrim Nov 5, 2021
7abd08d
fix: remove test article
bautrukevich Nov 6, 2021
edc6f2a
chore: remove console.log
bautrukevich Nov 6, 2021
c11c244
Merge pull request #52 from yandexdataschool/fix/content
khizrim Nov 6, 2021
5968785
fix: correct iframe height on first load
khizrim Nov 6, 2021
43ccb81
Merge pull request #51 from yandexdataschool/feat/iframe_styles
khizrim Nov 6, 2021
c6c72ab
fix: change margins to paddings for paragraphs
khizrim Nov 6, 2021
abcb77c
fix: fixed style mistakes
rogozhkina Nov 7, 2021
77e9187
fix: sidebar position fixed
rogozhkina Nov 7, 2021
e133b66
fix: fixed styles mistake
rogozhkina Nov 7, 2021
983782f
chore: added margin-bottom for the sidebar
rogozhkina Nov 7, 2021
6027453
Merge branch 'develop' into feature/fix_article_layout
rogozhkina Nov 7, 2021
6b56c52
feat: added remark-gfm
rogozhkina Nov 7, 2021
f9dc6f4
fix: sidebar styles
bautrukevich Nov 7, 2021
6880359
fix: prettier
bautrukevich Nov 7, 2021
1bc3473
Merge pull request #50 from yandexdataschool/feature/fix_article_layout
rogozhkina Nov 7, 2021
4c50a32
fix: paddings only in details && border for math
khizrim Nov 7, 2021
a13627d
chore: change code block background & text color
khizrim Nov 7, 2021
8d2ef78
Merge pull request #53 from yandexdataschool/fix/summary
khizrim Nov 8, 2021
4c169c3
Merge branch 'develop' into fix/code_styles
khizrim Nov 8, 2021
3722dbb
Merge pull request #54 from yandexdataschool/fix/code_styles
khizrim Nov 8, 2021
ec04e88
hotfix: fix syntax error
khizrim Nov 8, 2021
1d26620
feat: add gh-pages deploy
bautrukevich Nov 8, 2021
871da22
fix: add .nojekyll file to gh-pages
bautrukevich Nov 8, 2021
49de0f6
fix: don't copy and just create an empty file in out folder
bautrukevich Nov 8, 2021
333a10a
fix: formula blocks now have correct indents
khizrim Nov 8, 2021
e9d0aa3
chore: tables
rogozhkina Nov 8, 2021
be0a3b3
Merge pull request #58 from yandexdataschool/feature/remark-gfm
rogozhkina Nov 9, 2021
3cf5891
Merge pull request #56 from yandexdataschool/fix/math-styles
khizrim Nov 9, 2021
1682b42
feat: add CNAME file to out directory
bautrukevich Nov 9, 2021
a01f1fb
Merge branch 'develop' into feat/gh-pages-deploy
bautrukevich Nov 9, 2021
86532ba
fix: package-lock.json
bautrukevich Nov 9, 2021
ff47194
Merge pull request #55 from yandexdataschool/feat/gh-pages-deploy
bautrukevich Nov 9, 2021
8e6d018
fix: meta tags
bautrukevich Nov 9, 2021
a02836c
feat: add OpenGraph meta tags
bautrukevich Nov 9, 2021
f631203
Merge pull request #59 from yandexdataschool/feat/meta-tags
bautrukevich Nov 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["next/babel"],
"plugins": ["styled-components"]
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 2
trim_trailing_whitespace = true
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_URL=https://ml-handbook.ru
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "prettier"]
}
34 changes: 31 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
node_modules/
.cache/
public
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
.env*
!.env.example

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

public/handbook/**

# Local Netlify folder
.netlify
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore artifacts:
build
coverage
handbook
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
11 changes: 11 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-idiomatic-order", "stylelint-config-prettier"],
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
}
]
}
}
83 changes: 53 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,77 @@
<p align="center">
<a href="https://www.gatsbyjs.com/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter">
<img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" />
</a>
<img alt="Школа Анализа Данных" src="./shad.png" height="250" />
</p>
<h1 align="center">
ML Handbook (Gatsby minimal starter)
Учебник по машинному обучению «Школы Анализа Данных»
</h1>

## 🚀 Quick start
## 🚀 Как работать с проектом?

1. **Create a Gatsby site.**
1. **Склонируйте репозиторий.**

Use the Gatsby CLI to create a new site, specifying the minimal starter.
```shell
git clone [email protected]:yandexdataschool/ML-Handbook.git
```

```shell
# create a new Gatsby site using the minimal starter
npm init gatsby
```
2. **Запустите локально.**

2. **Start developing.**
Перейдите в каталог сайта и запустите его.

Navigate into your new site’s directory and start it up.
```shell
cd ml-handbook/
npm run develop
```

```shell
cd my-gatsby-site/
npm run develop
```
3. **Откройте редактор и начните работу!**

3. **Open the code and start customizing!**
Сайт теперь работает на http://localhost:8000!

Your site is now running at http://localhost:8000!
Отредактируйте любой файл в папке `./src` чтобы видеть обновление сайта в режиме реального времени!

Edit `src/pages/index.js` to see your site update in real-time!
4. **Работа с контентом**

4. **Learn more**
Контент страниц находится в папке `./src/pages/chapters/*` и повторяет такую же структуру для страниц сайта.
Т.е., например, страница из `./src/pages/chapters/intro.mdx` будет доступна по адресу
`http://localhost:8000/chapters/intro`.

- [Documentation](https://www.gatsbyjs.com/docs/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
Или, например, `./src/pages/chapters/ansamblees/intro.mdx` будет доступна по адресу
`http://localhost:8000/chapters/ansamblees/intro`.

- [Tutorials](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
Файлы должны иметь расширение `*.mdx`. MDX – это расширенный формат для маркдауна.
Он позволяет использовать интерактивные (`React`) компоненты прямо внутри маркдаун разметки.
Это упрощает работу с содержимым. Инструкция по тому, какие компоненты можно использовать внутри MDX будет чуть
позже.

- [Guides](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
В начале каждого MDX-файла есть раздел, который называется frontmatter:

- [API Reference](https://www.gatsbyjs.com/docs/api-reference/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
```
---
title: Ансамбли в машинном обучении
author: pavel_gubko
---
```

- [Plugin Library](https://www.gatsbyjs.com/plugins?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
В нём мы указываем название и автора. Позже появится еще изображение. Содержание статьи будет строиться на
основе заголовков.

- [Cheat Sheet](https://www.gatsbyjs.com/docs/cheat-sheet/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
В остальном — это самый обычный markdown.

## 🚀 Quick start (Gatsby Cloud)
Так как сейчас подключен Netlify, то при создании PR автоматически собирается превью того, что было сделано.
Рекомендую использовать эту возможность, создавать ветки из `develop` и делать PR на каждую ветку.
После merge в `develop` или `main` на Github – автоматически происходит сборка проекта и его деплой.

Deploy this starter with one click on [Gatsby Cloud](https://www.gatsbyjs.com/cloud/):
Чтобы получить доступ к превью каждого PR – запросите доступ к Netlify у Дарьи Данилюк или Анастасии Павловской.

[<img src="https://www.gatsbyjs.com/deploynow.svg" alt="Deploy to Gatsby Cloud">](https://www.gatsbyjs.com/dashboard/deploynow?url=https://github.com/gatsbyjs/gatsby-starter-minimal)
5. **Документация к Gatsby**

- [Documentation](https://www.gatsbyjs.com/docs/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)

- [Tutorials](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)

- [Guides](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)

- [API Reference](https://www.gatsbyjs.com/docs/api-reference/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)

- [Plugin Library](https://www.gatsbyjs.com/plugins?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)

- [Cheat Sheet](https://www.gatsbyjs.com/docs/cheat-sheet/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
15 changes: 15 additions & 0 deletions __mocks__/fast-glob.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const glob = jest.createMockFromModule("fast-glob");

let mockFiles = [];
function __setMockFiles(newMockFiles) {
mockFiles = newMockFiles;
}

function sync(source) {
return mockFiles;
}

glob.__setMockFiles = __setMockFiles;
glob.sync = sync;

module.exports = glob;
1 change: 1 addition & 0 deletions __mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(module.exports = "test-file-stub")
1 change: 1 addition & 0 deletions __mocks__/styleMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
4 changes: 4 additions & 0 deletions authors/alexey_gorchakov/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Алексей Горчаков
tg: yandex_alg_orc
---
4 changes: 4 additions & 0 deletions authors/dmitry_norkin/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Дмитрий Норкин
tg: nordmtr
---
4 changes: 4 additions & 0 deletions authors/evgenia_elistarova/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Евгения Елистратова
tg: evg3307
---
3 changes: 3 additions & 0 deletions authors/evgenii_sokolov/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Евгений Соколов
---
3 changes: 3 additions & 0 deletions authors/filipp_sinicin/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Филипп Синицин
---
4 changes: 4 additions & 0 deletions authors/ivanov_sergei/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Сергей Иванов
email: [email protected]
---
3 changes: 3 additions & 0 deletions authors/kirill_lunev/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Кирилл Лунёв
---
3 changes: 3 additions & 0 deletions authors/maria_burkina/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Мария Буркина
---
4 changes: 4 additions & 0 deletions authors/michail_artemiev/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Михаил Артемьев
email: [email protected]
---
4 changes: 4 additions & 0 deletions authors/pavel_gubko/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Павел Губко
tg: gubkopaul
---
6 changes: 6 additions & 0 deletions authors/radoslav_neichev/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Радослав Нейчев
email: [email protected]
linkedIn: radoslav-neychev
tg: neychev
---
3 changes: 3 additions & 0 deletions authors/roman_ushakov/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Роман Ушаков
---
3 changes: 3 additions & 0 deletions authors/senya_ashuha/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Арсений Ашуха
---
4 changes: 4 additions & 0 deletions authors/stanislav_fedotov/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Станислав Федотов
email: [email protected]
---
3 changes: 3 additions & 0 deletions authors/tyapkin_daniil/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Даниил Тяпкин
---
3 changes: 3 additions & 0 deletions authors/victor_kantor/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Виктор Кантор
---
3 changes: 3 additions & 0 deletions authors/yanina_anastasia/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: Анастасия Янина
---
6 changes: 6 additions & 0 deletions components/Content/Content.styles.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import styled from 'styled-components';

export const Content = styled.section`
box-sizing: border-box;
padding: 30px 40px 100px;
`;
11 changes: 11 additions & 0 deletions components/Content/Content.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ReactNode } from "react";

import * as Styles from './Content.styles';

type Props = {
children: ReactNode;
};

export const Content = ({ children }: Props) => {
return <Styles.Content className="prose max-w-max">{children}</Styles.Content>;
};
11 changes: 11 additions & 0 deletions components/CustomLink/CustomLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Link from "next/link";

export const CustomLink = ({ as, href, ...otherProps }) => {
return (
<>
<Link as={as} href={href}>
<a {...otherProps} />
</Link>
</>
);
};
5 changes: 5 additions & 0 deletions components/Details/Details.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

export const Details = ({ children }) => {
return <details>{children}</details>;
};

5 changes: 5 additions & 0 deletions components/Example/Example.styles.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import styled from "styled-components";

export const Example = styled.div`
color: red;
`;
11 changes: 11 additions & 0 deletions components/Example/Example.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ReactNode } from "react";

import * as Styles from "./Example.styles";

type Props = {
children: ReactNode;
};

export const Example = ({ children }: Props) => {
return <Styles.Example>{children}</Styles.Example>;
};
9 changes: 9 additions & 0 deletions components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const Footer = () => {
return (
<footer className="flex flex-col align-bottom justify-end w-full h-20 px-10 py-3 bg-black bg-opacity-80">
<p className="text-sm text-right text-gray-500">
&#169; Школа анализа данных, 2007 — 2021. ООО «Яндекс» не оказывает образовательных услуг
</p>
</footer>
);
};
18 changes: 18 additions & 0 deletions components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Image from "next/image";
import Link from "next/link";

import logo from "../../public/images/shad-logo.svg";
import { imageLoader } from "../../utils/imageLoader";

export const Header = () => {
return (
<header className="flex w-full px-5 py-3 justify-center shadow-md">
<div className="absolute left-5 cursor-pointer">
<Link href="/" passHref>
<Image loader={imageLoader} src={logo} alt="Логотип Школы Анализа Данных" />
</Link>
</div>
<p className="max-w-3xl w-full">ML–Учебник</p>
</header>
);
};
18 changes: 18 additions & 0 deletions components/HeaderArticle/HeaderArticle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Image from "next/image";
import Link from "next/link";

import logo from "../../public/images/shad-logo.svg";
import { imageLoader } from "../../utils/imageLoader";

export const HeaderArticle = () => {
return (
<header className="flex w-full px-5 py-3 justify-center shadow-md">
<div className="absolute left-5 cursor-pointer">
<Link href="/" passHref>
<Image loader={imageLoader} src={logo} alt="Логотип Школы Анализа Данных" />
</Link>
</div>
<p className="max-w-3xl w-full">ML–Учебник</p>
</header>
);
};
Loading