Skip to content

Commit 81e8af6

Browse files
authored
Merge pull request #5 from matlantis-pfcc/v1.2.1
Update to v1.2.1
2 parents 16b2fac + b1ccfb2 commit 81e8af6

Some content is hidden

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

64 files changed

+330
-389
lines changed

docs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ $ poetry install
1717
You can choose a language for build from `ja` or `en`.
1818

1919
```sh
20+
$ poetry run python misc/split_notebook.py
2021
$ poetry run make html -e LANG="ja"
2122
```

docs/_static/css/cookie-consent.css

-99
This file was deleted.

docs/_static/css/custom.css

+20
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,23 @@
3232
.md-icon.md-icon--menu.md-header-nav__button {
3333
margin-top: 17px;
3434
}
35+
36+
.nboutput .output_area .highlight pre {
37+
word-break: break-all;
38+
word-wrap: break-word;
39+
white-space: pre-wrap;
40+
}
41+
42+
.md-typeset__table .head code.docutils{
43+
background: #616161;
44+
padding: 2px;
45+
white-space: nowrap;
46+
font-weight: bold;
47+
color: #FFF;
48+
}
49+
50+
.md-typeset h1,
51+
.md-typeset h2 {
52+
color: rgba(0,0,0,.87);
53+
font-weight: bold;
54+
}

docs/_static/js/cookie-consent-init.umd.js

-1
This file was deleted.

docs/_static/js/cookie-consent.umd.js

-3
This file was deleted.

docs/_static/js/external-link.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$(document).ready(function () {
2+
$('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr({
3+
target: '_blank',
4+
referrerpolicy: "no-referrer",
5+
rel: "noopener noreferrer"
6+
});
7+
});

docs/_templates/header.html

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
<span class="md-header-nav__topic"> {{ title|striptags|e }} </span>
2525
</div>
2626
</div>
27+
<div class="md-flex__cell md-flex__cell--shrink">
28+
<div style="width: 85px; height: 57px; font-size: 16px; line-height: 57px;">
29+
<a href="https://docs.matlantis.com/atomistic-simulation-tutorial/ja/" hreflang="ja">JA</a>
30+
|
31+
<a href="https://docs.matlantis.com/atomistic-simulation-tutorial/en/" hreflang="en">EN</a>
32+
</div>
33+
</div>
2734
<div class="md-flex__cell md-flex__cell--shrink">
2835
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
2936
{% include "searchbox.html" %}

docs/_templates/layout.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{% block htmltitle %}
44
{{ super() }}
55
<!-- Workaround: need to import cookie-consent library before importing require.js -->
6-
<script src="_static/js/cookie-consent.umd.js"></script>
7-
<script src="_static/js/cookie-consent-init.umd.js"></script>
6+
<script src="https://docs.matlantis.com/assets/js/cookie-consent.umd.js"></script>
7+
<script src="https://docs.matlantis.com/assets/js/cookie-consent-init.umd.js"></script>
88
{% endblock %}
99

1010
{% block relbar1 %}

docs/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@
103103

104104
html_css_files = [
105105
'css/custom.css',
106-
'css/cookie-consent.css',
106+
'https://docs.matlantis.com/assets/css/cookie-consent.css',
107107
]
108108

109+
html_js_files = ['js/external-link.js']
110+
109111
# Avoid to plotly error
110112
# See https://github.com/spatialaudio/nbsphinx/issues/572#issuecomment-853389268
111113
mathjax_path = 'https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML'

docs/misc/split_notebook.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def split_notebook(
111111
)
112112

113113
# Copy `output` directory
114-
shutil.copytree(tutorials_bilingual / "output", tutorials_jp / "output")
115-
shutil.copytree(tutorials_bilingual / "output", tutorials_en / "output")
114+
shutil.copytree(tutorials_bilingual / "output", tutorials_jp / "output", dirs_exist_ok=True)
115+
shutil.copytree(tutorials_bilingual / "output", tutorials_en / "output", dirs_exist_ok=True)
116116

117117
if args.remove_bilingual_dir:
118118
shutil.rmtree(tutorials_bilingual)

tutorials/en/1_1_welcome.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@
7878
"\n",
7979
"<div style=\"clear:both;display:table\">\n",
8080
"<figure style=\"width:30%;float:left;margin:10px\">\n",
81-
" <img src=\"https://matlantis.com/wp-content/themes/matlantis_theme/img/product/image_universal1.png\"/>\n",
81+
" <img src=\"https://matlantis.com/wp-content/themes/matlantis_theme/img/product/en_image_universal1.png\"/>\n",
8282
" <figcaption style=\"text-align: center\">Versatility</figcaption>\n",
8383
"</figure>\n",
8484
"<figure style=\"width:30%;float:left;margin:10px\">\n",
85-
" <img src=\"https://matlantis.com/wp-content/themes/matlantis_theme/img/product/image_universal2.png\"/>\n",
85+
" <img src=\"https://matlantis.com/wp-content/themes/matlantis_theme/img/product/en_image_universal2.png\"/>\n",
8686
" <figcaption style=\"text-align: center\">Speed</figcaption>\n",
8787
"</figure>\n",
8888
"<figure style=\"width:30%;float:left;margin:10px\">\n",
89-
" <img src=\"https://matlantis.com/wp-content/themes/matlantis_theme/img/product/image_universal3.png\"/>\n",
89+
" <img src=\"https://matlantis.com/wp-content/themes/matlantis_theme/img/product/en_image_universal3.png\"/>\n",
9090
" <figcaption style=\"text-align: center\">User-friendliness</figcaption>\n",
9191
"</figure>\n",
9292
"</div>\n",
@@ -220,9 +220,9 @@
220220
],
221221
"metadata": {
222222
"kernelspec": {
223-
"display_name": "Python 3.7",
223+
"display_name": "Python 3.8",
224224
"language": "python",
225-
"name": "python37"
225+
"name": "python38"
226226
},
227227
"language_info": {
228228
"codemirror_mode": {
@@ -234,7 +234,7 @@
234234
"name": "python",
235235
"nbconvert_exporter": "python",
236236
"pygments_lexer": "ipython3",
237-
"version": "3.7.13"
237+
"version": "3.8.13"
238238
},
239239
"widgets": {
240240
"application/vnd.jupyter.widget-state+json": {

tutorials/en/1_2_atomistic_simulation_intro.ipynb

+8-4
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,15 @@
252252
"Therefore, in atomistic simulations, it is necessary to perform appropriate **modeling** according to the phenomenon to create a simplified system that can be analyzed on a computer by extracting only the necessary elements to reproduce the desired phenomenon, rather than creating something exactly the same as the natural world.<br/>\n",
253253
"There are various methods for modeling, and you will be able to do them by learning through this tutorial.\n",
254254
"\n",
255+
"---\n",
256+
"\n",
255257
"[Column] Modeling\n",
256258
"\n",
257259
"For example, if you want to simulate the Earth, if you are interested in weather, you would need to focus your modeling on the Earth's surface atmosphere. \n",
258260
"On the other hand, if you are interested in earthquakes, you would need to concentrate your modeling on the Earth's internal structure rather than the atmosphere. \n",
259-
"If you want to simulate the environment on the surface of the earth, you might consider cutting out only a portion of a continent rather than the entire planet."
261+
"If you want to simulate the environment on the surface of the earth, you might consider cutting out only a portion of a continent rather than the entire planet.\n",
262+
"\n",
263+
"---"
260264
]
261265
},
262266
{
@@ -294,9 +298,9 @@
294298
],
295299
"metadata": {
296300
"kernelspec": {
297-
"display_name": "Python 3.7",
301+
"display_name": "Python 3.8",
298302
"language": "python",
299-
"name": "python37"
303+
"name": "python38"
300304
},
301305
"language_info": {
302306
"codemirror_mode": {
@@ -308,7 +312,7 @@
308312
"name": "python",
309313
"nbconvert_exporter": "python",
310314
"pygments_lexer": "ipython3",
311-
"version": "3.7.13"
315+
"version": "3.8.13"
312316
},
313317
"widgets": {
314318
"application/vnd.jupyter.widget-state+json": {

tutorials/en/1_3_ase_basic.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
{
132132
"data": {
133133
"text/html": [
134-
"<img src=\"output/H2O.png\" width=\"150\"/>"
134+
"<img src=\"output/H2.png\" width=\"150\"/>"
135135
],
136136
"text/plain": [
137137
"<IPython.core.display.Image object>"
@@ -146,8 +146,8 @@
146146
"from ase.io import write\n",
147147
"from IPython.display import Image\n",
148148
"\n",
149-
"write(\"output/H2O.png\", atoms, rotation=\"0x,0y,0z\", scale=100)\n",
150-
"Image(url='output/H2O.png', width=150)"
149+
"write(\"output/H2.png\", atoms, rotation=\"0x,0y,0z\", scale=100)\n",
150+
"Image(url='output/H2.png', width=150)"
151151
]
152152
},
153153
{
@@ -543,9 +543,9 @@
543543
],
544544
"metadata": {
545545
"kernelspec": {
546-
"display_name": "Python 3.7",
546+
"display_name": "Python 3.8",
547547
"language": "python",
548-
"name": "python37"
548+
"name": "python38"
549549
},
550550
"language_info": {
551551
"codemirror_mode": {
@@ -557,7 +557,7 @@
557557
"name": "python",
558558
"nbconvert_exporter": "python",
559559
"pygments_lexer": "ipython3",
560-
"version": "3.7.13"
560+
"version": "3.8.13"
561561
},
562562
"toc-autonumbering": false,
563563
"toc-showcode": false,

tutorials/en/1_4_ase_structure.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@
824824
],
825825
"metadata": {
826826
"kernelspec": {
827-
"display_name": "Python 3.7",
827+
"display_name": "Python 3.8",
828828
"language": "python",
829-
"name": "python37"
829+
"name": "python38"
830830
},
831831
"language_info": {
832832
"codemirror_mode": {
@@ -838,7 +838,7 @@
838838
"name": "python",
839839
"nbconvert_exporter": "python",
840840
"pygments_lexer": "ipython3",
841-
"version": "3.7.13"
841+
"version": "3.8.13"
842842
},
843843
"toc-autonumbering": false,
844844
"toc-showcode": false,

tutorials/en/1_5_ase_calculator.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,9 @@
677677
],
678678
"metadata": {
679679
"kernelspec": {
680-
"display_name": "Python 3.7",
680+
"display_name": "Python 3.8",
681681
"language": "python",
682-
"name": "python37"
682+
"name": "python38"
683683
},
684684
"language_info": {
685685
"codemirror_mode": {
@@ -691,7 +691,7 @@
691691
"name": "python",
692692
"nbconvert_exporter": "python",
693693
"pygments_lexer": "ipython3",
694-
"version": "3.7.13"
694+
"version": "3.8.13"
695695
},
696696
"widgets": {
697697
"application/vnd.jupyter.widget-state+json": {

tutorials/en/1_6_ase_playground.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,9 @@
611611
],
612612
"metadata": {
613613
"kernelspec": {
614-
"display_name": "Python 3.7",
614+
"display_name": "Python 3.8",
615615
"language": "python",
616-
"name": "python37"
616+
"name": "python38"
617617
},
618618
"language_info": {
619619
"codemirror_mode": {
@@ -625,7 +625,7 @@
625625
"name": "python",
626626
"nbconvert_exporter": "python",
627627
"pygments_lexer": "ipython3",
628-
"version": "3.7.13"
628+
"version": "3.8.13"
629629
},
630630
"widgets": {
631631
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)