Skip to content

Commit ab6dca2

Browse files
authored
Remove development config. Update prod config for pytorch site. (#56)
1 parent 96b2a71 commit ab6dca2

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

404.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
<!DOCTYPE html>
99
<html>
1010
<body>
11-
<img src="{{ site.url }}{{ site.baseurl }}/assets/images/404_sign.png" />
11+
<img src="{{ site.baseurl }}/assets/images/404_sign.png" />
1212

1313
<h1>Oops!</h1>
1414

1515
<h4>You've reached a dead end.</h4>
1616

1717
<h4>
18-
If you feel like something should be here, you can <a href="https://pytorch.org/">open an issue</a> on GitHub.
18+
If you feel like something should be here, you can <a href="https://github.com/pytorch/pytorch.github.io/issues">open an issue</a> on GitHub.
1919
</h4>
2020

2121
<h4>
22-
Click <a href="https://pytorch.org/">here</a> to go back to the main page.
22+
Click <a href="/">here</a> to go back to the main page.
2323
</h4>
2424
</body>
2525
</html>

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ include-yarn-deps:
3434
cp node_modules/anchor-js/anchor.min.js $(VENDOR_DIR)
3535

3636
build: install include-yarn-deps
37-
$(JEKYLL) build --config _config.yml,_config_dev.yml
37+
$(JEKYLL) build --config _config.yml
3838
rm _site/Gemfile
3939
rm _site/Gemfile.lock
4040
rm _site/Makefile
@@ -44,7 +44,7 @@ build: install include-yarn-deps
4444
rm -rf _site/scripts
4545

4646
serve: install include-yarn-deps
47-
JEKYLL_ENV=development $(JEKYLL) serve --config _config.yml,_config_dev.yml
47+
JEKYLL_ENV=development $(JEKYLL) serve --config _config.yml
4848

4949
build_deploy: include-yarn-deps
5050
JEKYLL_ENV=production $(JEKYLL) build

_config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Site settings
22
title: "PyTorch Website"
3-
author: "Shift Lab"
3+
author: "Facebook"
44
description: "Static website for pytorch.org"
5-
url: "https://shiftlab.github.io"
5+
url: "https://pytorch.org"
66
default_author: The PyTorch Team
77
plugins:
88
- jekyll-paginate-v2
@@ -14,7 +14,7 @@ sass:
1414
- node_modules
1515
exclude: [vendor, node_modules]
1616
github: [metadata]
17-
baseurl: "/pytorch"
17+
baseurl: ""
1818
external_urls:
1919
github: https://github.com/pytorch/pytorch
2020
github_issues: https://github.com/pytorch/pytorch/issues

_config_dev.yml

-2
This file was deleted.

0 commit comments

Comments
 (0)