Skip to content

Commit 85771af

Browse files
committed
자동 빌드 Workflow 적용 (#7)
1 parent 06df705 commit 85771af

File tree

190 files changed

+16676
-2008
lines changed

Some content is hidden

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

190 files changed

+16676
-2008
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: gh-pages deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: '3.8'
18+
19+
- name: Upgrade pip
20+
run: python3 -m pip install --upgrade pip
21+
22+
- name: Get pip cache dir
23+
id: pip-cache
24+
run: echo "::set-output name=dir::$(pip cache dir)"
25+
26+
- name: Cache dependencies
27+
uses: actions/cache@v2
28+
with:
29+
path: ${{ steps.pip-cache.outputs.dir }}
30+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
31+
restore-keys: |
32+
${{ runner.os }}-pip-
33+
34+
- name: Install dependencies
35+
run: pip install -r requirements.txt
36+
37+
- name: Build Sphinx documents
38+
run: make docs
39+
40+
- name: Deploy to gh-pages branch
41+
uses: peaceiris/actions-gh-pages@v3
42+
with:
43+
github_token: ${{ secrets.DEPLOY_TOKEN }}
44+
publish_dir: ./build/html
45+
cname: docs.pytorchlightning.kr
46+
enable_jekyll: false
47+
force_orphan: true
48+
user_name: "GitHub Action"
49+
user_email: "reserve.dev@gmail.com"
50+
commit_message: "Rebuild w/ ${{ github.event.head_commit.message }}"

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ help:
2020

2121
docs:
2222
make html
23-
rm -rf docs
24-
cp -r $(BUILDDIR)/html docs/
25-
cp CNAME docs/CNAME
26-
touch docs/.nojekyll
23+
echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
2724

2825
.PHONY: all docs clean

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 64a5804c254257c0ad7a8dc6e19c1484
3+
config: 9f51b0822c0fcb09f5289c381438e1cc
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_modules/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<meta charset="utf-8">
1010

11-
<meta name="google-site-verification" content="okUst94cAlWSsUsGZTB4xSS4UKTtRV8Nu5XZ9pdd3Aw" />
1211
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1312

1413
<title>Overview: module code &mdash; PyTorch Lightning 1.7.0dev documentation</title>
@@ -41,8 +40,8 @@
4140
<link rel="stylesheet" href="../_static/sphinx_paramlinks.css" type="text/css" />
4241
<link rel="index" title="Index" href="../genindex.html" />
4342
<link rel="search" title="Search" href="../search.html" />
44-
<!-- Google Analytics -->
4543

44+
<!-- Google Analytics -->
4645
<script async src="https://www.googletagmanager.com/gtag/js?id=G-82W25RV60Q"></script>
4746
<script>
4847
window.dataLayer = window.dataLayer || [];
@@ -212,7 +211,7 @@
212211

213212
<p class="caption" role="heading"><span class="caption-text">Get Started</span></p>
214213
<ul>
215-
<li class="toctree-l1"><a class="reference internal" href="../starter/introduction.html">Lightning in 15 minutes</a></li>
214+
<li class="toctree-l1"><a class="reference internal" href="../starter/introduction.html">Lightning 15분 만에 배워보기</a></li>
216215
<li class="toctree-l1"><a class="reference internal" href="../starter/converting.html">Organize existing PyTorch into Lightning</a></li>
217216
</ul>
218217
<p class="caption" role="heading"><span class="caption-text">Level Up</span></p>

docs/_modules/pytorch_lightning/callbacks/base.html

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,9 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8-
<!-- Google Tag Manager -->
9-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
10-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
11-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
12-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
13-
})(window,document,'script','dataLayer','GTM-PQBQ3CV');
14-
</script>
15-
<!-- End Google Tag Manager -->
168

179
<meta charset="utf-8">
1810

19-
<meta name="google-site-verification" content="okUst94cAlWSsUsGZTB4xSS4UKTtRV8Nu5XZ9pdd3Aw" />
2011
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2112

2213
<title>pytorch_lightning.callbacks.base &mdash; PyTorch Lightning 1.7.0dev documentation</title>
@@ -49,7 +40,15 @@
4940
<link rel="stylesheet" href="../../../_static/sphinx_paramlinks.css" type="text/css" />
5041
<link rel="index" title="Index" href="../../../genindex.html" />
5142
<link rel="search" title="Search" href="../../../search.html" />
43+
5244
<!-- Google Analytics -->
45+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-82W25RV60Q"></script>
46+
<script>
47+
window.dataLayer = window.dataLayer || [];
48+
function gtag(){dataLayer.push(arguments);}
49+
gtag('js', new Date());
50+
gtag('config', 'G-82W25RV60Q');
51+
</script>
5352

5453
<!-- End Google Analytics -->
5554

@@ -92,15 +91,11 @@
9291

9392
<div class="main-menu">
9493
<ul>
95-
<li>
94+
<!-- <li>
9695
<a href="https://pytorch-lightning.readthedocs.io/en/latest/starter/introduction.html">Get Started</a>
97-
</li>
96+
</li> -->
9897

99-
<li>
100-
<a href="https://www.pytorchlightning.ai/blog">Blog</a>
101-
</li>
102-
103-
<li>
98+
<!-- <li>
10499
<div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown">
105100
<a class="resource-option with-down-orange-arrow">
106101
Docs
@@ -122,7 +117,7 @@
122117
<span class="dropdown-title">Lightning Bolts</span>
123118
</a>
124119
</div>
125-
</li>
120+
</li> -->
126121

127122
<!--<li>
128123
<div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown">
@@ -150,13 +145,13 @@
150145
</div>
151146
</li>-->
152147

153-
<li>
148+
<!-- <li>
154149
<a href="https://github.com/PyTorchLightning/pytorch-lightning">GitHub</a>
155150
</li>
156151
157152
<li>
158153
<a href="https://www.grid.ai/">Train on the cloud</a>
159-
</li>
154+
</li> -->
160155
</ul>
161156
</div>
162157

@@ -216,7 +211,7 @@
216211

217212
<p class="caption" role="heading"><span class="caption-text">Get Started</span></p>
218213
<ul>
219-
<li class="toctree-l1"><a class="reference internal" href="../../../starter/introduction.html">Lightning in 15 minutes</a></li>
214+
<li class="toctree-l1"><a class="reference internal" href="../../../starter/introduction.html">Lightning 15분 만에 배워보기</a></li>
220215
<li class="toctree-l1"><a class="reference internal" href="../../../starter/converting.html">Organize existing PyTorch into Lightning</a></li>
221216
</ul>
222217
<p class="caption" role="heading"><span class="caption-text">Level Up</span></p>
@@ -955,7 +950,7 @@ <h2>Resources</h2>
955950
<div class="mobile-main-menu-links-container">
956951
<div class="main-menu">
957952
<ul>
958-
<li>
953+
<!-- <li>
959954
<a href="https://pytorch-lightning.readthedocs.io/en/latest/starter/introduction.html">Get Started</a>
960955
</li>
961956
@@ -987,7 +982,7 @@ <h2>Resources</h2>
987982
<li>
988983
<a href="https://lightning-bolts.readthedocs.io/en/stable/">Lightning Bolts</a>
989984
</li>
990-
</ul>
985+
</ul> -->
991986

992987
<!--<li class="resources-mobile-menu-title">
993988
Resources
@@ -1015,13 +1010,13 @@ <h2>Resources</h2>
10151010
</li>
10161011
</ul>-->
10171012

1018-
<li>
1013+
<!-- <li>
10191014
<a href="https://github.com/PyTorchLightning/pytorch-lightning">Github</a>
1020-
</li>
1015+
</li> -->
10211016

1022-
<li>
1017+
<!-- <li>
10231018
<a href="https://www.grid.ai/">Grid.ai</a>
1024-
</li>
1019+
</li> -->
10251020
</ul>
10261021
</div>
10271022
</div>
@@ -1046,12 +1041,8 @@ <h2>Resources</h2>
10461041
$("article.pytorch-article a span.pre").each(function(e) {
10471042
$(this).closest("a").addClass("has-code");
10481043
});
1049-
})
1044+
})
10501045
</script>
10511046

1052-
<!-- Google Tag Manager (noscript) -->
1053-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PQBQ3CV"
1054-
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
1055-
<!-- End Google Tag Manager (noscript) -->
10561047
</body>
10571048
</html>

docs/_modules/pytorch_lightning/core/datamodule.html

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,9 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8-
<!-- Google Tag Manager -->
9-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
10-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
11-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
12-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
13-
})(window,document,'script','dataLayer','GTM-PQBQ3CV');
14-
</script>
15-
<!-- End Google Tag Manager -->
168

179
<meta charset="utf-8">
1810

19-
<meta name="google-site-verification" content="okUst94cAlWSsUsGZTB4xSS4UKTtRV8Nu5XZ9pdd3Aw" />
2011
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2112

2213
<title>pytorch_lightning.core.datamodule &mdash; PyTorch Lightning 1.7.0dev documentation</title>
@@ -49,7 +40,15 @@
4940
<link rel="stylesheet" href="../../../_static/sphinx_paramlinks.css" type="text/css" />
5041
<link rel="index" title="Index" href="../../../genindex.html" />
5142
<link rel="search" title="Search" href="../../../search.html" />
43+
5244
<!-- Google Analytics -->
45+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-82W25RV60Q"></script>
46+
<script>
47+
window.dataLayer = window.dataLayer || [];
48+
function gtag(){dataLayer.push(arguments);}
49+
gtag('js', new Date());
50+
gtag('config', 'G-82W25RV60Q');
51+
</script>
5352

5453
<!-- End Google Analytics -->
5554

@@ -92,15 +91,11 @@
9291

9392
<div class="main-menu">
9493
<ul>
95-
<li>
94+
<!-- <li>
9695
<a href="https://pytorch-lightning.readthedocs.io/en/latest/starter/introduction.html">Get Started</a>
97-
</li>
96+
</li> -->
9897

99-
<li>
100-
<a href="https://www.pytorchlightning.ai/blog">Blog</a>
101-
</li>
102-
103-
<li>
98+
<!-- <li>
10499
<div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown">
105100
<a class="resource-option with-down-orange-arrow">
106101
Docs
@@ -122,7 +117,7 @@
122117
<span class="dropdown-title">Lightning Bolts</span>
123118
</a>
124119
</div>
125-
</li>
120+
</li> -->
126121

127122
<!--<li>
128123
<div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown">
@@ -150,13 +145,13 @@
150145
</div>
151146
</li>-->
152147

153-
<li>
148+
<!-- <li>
154149
<a href="https://github.com/PyTorchLightning/pytorch-lightning">GitHub</a>
155150
</li>
156151
157152
<li>
158153
<a href="https://www.grid.ai/">Train on the cloud</a>
159-
</li>
154+
</li> -->
160155
</ul>
161156
</div>
162157

@@ -216,7 +211,7 @@
216211

217212
<p class="caption" role="heading"><span class="caption-text">Get Started</span></p>
218213
<ul>
219-
<li class="toctree-l1"><a class="reference internal" href="../../../starter/introduction.html">Lightning in 15 minutes</a></li>
214+
<li class="toctree-l1"><a class="reference internal" href="../../../starter/introduction.html">Lightning 15분 만에 배워보기</a></li>
220215
<li class="toctree-l1"><a class="reference internal" href="../../../starter/converting.html">Organize existing PyTorch into Lightning</a></li>
221216
</ul>
222217
<p class="caption" role="heading"><span class="caption-text">Level Up</span></p>
@@ -851,7 +846,7 @@ <h2>Resources</h2>
851846
<div class="mobile-main-menu-links-container">
852847
<div class="main-menu">
853848
<ul>
854-
<li>
849+
<!-- <li>
855850
<a href="https://pytorch-lightning.readthedocs.io/en/latest/starter/introduction.html">Get Started</a>
856851
</li>
857852
@@ -883,7 +878,7 @@ <h2>Resources</h2>
883878
<li>
884879
<a href="https://lightning-bolts.readthedocs.io/en/stable/">Lightning Bolts</a>
885880
</li>
886-
</ul>
881+
</ul> -->
887882

888883
<!--<li class="resources-mobile-menu-title">
889884
Resources
@@ -911,13 +906,13 @@ <h2>Resources</h2>
911906
</li>
912907
</ul>-->
913908

914-
<li>
909+
<!-- <li>
915910
<a href="https://github.com/PyTorchLightning/pytorch-lightning">Github</a>
916-
</li>
911+
</li> -->
917912

918-
<li>
913+
<!-- <li>
919914
<a href="https://www.grid.ai/">Grid.ai</a>
920-
</li>
915+
</li> -->
921916
</ul>
922917
</div>
923918
</div>
@@ -942,12 +937,8 @@ <h2>Resources</h2>
942937
$("article.pytorch-article a span.pre").each(function(e) {
943938
$(this).closest("a").addClass("has-code");
944939
});
945-
})
940+
})
946941
</script>
947942

948-
<!-- Google Tag Manager (noscript) -->
949-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PQBQ3CV"
950-
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
951-
<!-- End Google Tag Manager (noscript) -->
952943
</body>
953944
</html>

0 commit comments

Comments
 (0)