forked from d2l-ai/d2l-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add frontpage.html * change theme * change permission * fix build_html * fix build html * Update build_html.sh * Update Makefile * Update fasttext.md * Update Jenkinsfile * Update Jenkinsfile * Update glove.md * Update notation.md * Update notation.md * Update Makefile * update mxtheme * use python 3.6 to build * Update Jenkinsfile
- Loading branch information
Mu Li
authored
Nov 14, 2018
1 parent
cd40357
commit bc5029a
Showing
20 changed files
with
301 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "build/mx-theme"] | ||
path = build/mx-theme | ||
url = https://github.com/mli/mx-theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
stage("Build HTML") { | ||
node { | ||
ws('workspace/d2l-zh') { | ||
checkout scm | ||
sh "build/build_html.sh" | ||
} | ||
} | ||
} | ||
stage("Build PDF") { | ||
node { | ||
ws('workspace/d2l-zh') { | ||
sh "build/build_pdf.sh" | ||
} | ||
} | ||
} | ||
|
||
stage("Publish") { | ||
node { | ||
ws('workspace/d2l-zh') { | ||
sh """#!/bin/bash | ||
set -ex | ||
if [[ ${env.BRANCH_NAME} == master ]]; then | ||
aws s3 sync --delete build/_build/html/ s3://zh.diveintodeeplearning.org/ --acl public-read | ||
fi | ||
""" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
h1, .side-doc-outline { | ||
display: none; | ||
} | ||
.document .page-content { | ||
width: 100%; | ||
} | ||
|
||
h2, h3, h4 { | ||
letter-spacing: 2px; | ||
} | ||
.mdl-grid { | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
padding: 150px 0 0 0; | ||
} | ||
|
||
#id2 h2 { | ||
padding: 150px 0 0 0; | ||
} | ||
|
||
.header h2 { | ||
font-size: 30px; | ||
padding-bottom: 35px; | ||
} | ||
|
||
.header p { | ||
font-size: 24px; | ||
letter-spacing: 2px; | ||
line-height: 36px; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.header img { | ||
max-width: 350px; | ||
} | ||
|
||
.header .mdl-button { | ||
margin: 0px 10px; | ||
letter-spacing: 2px; | ||
font-size: 16px; | ||
margin: 1rem 1.5rem; | ||
height: 40px; | ||
width: 120px; | ||
} | ||
|
||
|
||
.author-item { | ||
max-width: 300px; | ||
} | ||
|
||
.author-item h3 { | ||
padding-top: 25px; | ||
padding-bottom: 10px; | ||
} | ||
.author-item img { | ||
border-radius: 50%; | ||
width: 120px; | ||
} | ||
.authors h4 { | ||
width: 100%; | ||
} | ||
|
||
.features .mdl-cell { | ||
padding: 0 36px; | ||
} | ||
.features h2, .features-2 h2 { | ||
padding-bottom: 24px; | ||
} | ||
.features-2 p { | ||
padding: 0 200px; | ||
} | ||
|
||
|
||
@media (max-width: 1000px) { | ||
.mdl-grid, #id2 h2 { | ||
padding: 50px 0 0 0; | ||
} | ||
|
||
.header .mdl-button { | ||
width: 150px; | ||
margin: 10px 100px; | ||
} | ||
|
||
.header img, .features-2 img { | ||
max-width: 300px; | ||
} | ||
|
||
.features img { | ||
max-width: 350px; | ||
} | ||
|
||
.features-2 p { | ||
padding: 0 24px; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.