Skip to content

Update top nav to link direct to stable docs #57

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

Merged
merged 1 commit into from
Sep 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -109,7 +109,7 @@ <h4>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -149,7 +149,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -236,7 +236,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
71 changes: 1 addition & 70 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1 @@
# pytorch.github.io

[https://pytorch.org](https://pytorch.org)

A static website built in [Jekyll](https://jekyllrb.com/) and [Bootstrap](https://getbootstrap.com/) for [PyTorch](https://pytorch.org/), and its tutorials and documentation.

## Prerequisites

Install the following packages before attempting to setup the project:

- [rbenv](https://github.com/rbenv/rbenv)
- [ruby-build](https://github.com/rbenv/ruby-build)
- [nvm](https://github.com/creationix/nvm)

## Setup

#### Install required Ruby version:

```
#### You only need to run these commands if you are missing the needed Ruby version.

rbenv install `cat .ruby-version`
gem install bundler
rbenv rehash

####

bundle install
rbenv rehash
```

#### Install required Node version

```
nvm install
nvm use
```

#### Install Yarn

```
brew install yarn --without-node
yarn install
```

## Local Development

To run the website locally for development:

```
make serve
```

Then navigate to [localhost:4000](localhost:4000).

Note the `serve` task is contained in a `Makefile` in the root directory. We are using `make` as an alternative to the standard `jekyll serve` as we want to run `yarn`, which is not included in Jekyll by default.

### Building the Static Site

To build the static website from source:

```
make build
```

This will build the static site at `./_site`. This directory is not tracked in git.

## Deployments

The website is hosted on [Github Pages](https://pages.github.com/) at the [https://github.com/pytorch/pytorch.github.io](https://github.com/pytorch/pytorch.github.io) repo.
PyTorch Website https://pytorch.org
8 changes: 4 additions & 4 deletions blog/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -365,7 +365,7 @@ <h3>Quick Start With<br />Cloud Partners</h3>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -405,7 +405,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -492,7 +492,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
8 changes: 4 additions & 4 deletions blog/a-tour-of-pytorch-internals-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -427,7 +427,7 @@ <h3 id="resources">Resources:</h3>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -467,7 +467,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -554,7 +554,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
8 changes: 4 additions & 4 deletions blog/a-tour-of-pytorch-internals-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -673,7 +673,7 @@ <h3 id="not-covered-but-also-relevant">Not Covered, But Also Relevant</h3>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -713,7 +713,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -800,7 +800,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
8 changes: 4 additions & 4 deletions blog/a-year-in/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -288,7 +288,7 @@ <h2 id="users-being-funny-">Users being funny :)</h2>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -328,7 +328,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -415,7 +415,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
8 changes: 4 additions & 4 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -365,7 +365,7 @@ <h3>Quick Start With<br />Cloud Partners</h3>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -405,7 +405,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -492,7 +492,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
8 changes: 4 additions & 4 deletions blog/pytorch-0_4_0-migration-guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -599,7 +599,7 @@ <h2 id="code-samples-putting-it-all-together">Code Samples (Putting it all toget
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -639,7 +639,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -726,7 +726,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
8 changes: 4 additions & 4 deletions blog/tensor-comprehensions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -306,7 +306,7 @@ <h2 id="acknowledgements">Acknowledgements</h2>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -346,7 +346,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -433,7 +433,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
8 changes: 4 additions & 4 deletions blog/the-road-to-1_0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down Expand Up @@ -222,7 +222,7 @@ <h2 id="last-words">Last Words</h2>
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Access comprehensive developer documentation for PyTorch</p>
<a class="with-right-arrow" href="https://pytorch.org/docs">View Docs</a>
<a class="with-right-arrow" href="https://pytorch.org/docs/stable">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down Expand Up @@ -262,7 +262,7 @@ <h2>Resources</h2>
<ul>
<li class="list-title"><a href="/resources">Resources</a></li>
<li><a href="https://pytorch.org/tutorials">Tutorials</a></li>
<li><a href="https://pytorch.org/docs">Docs</a></li>
<li><a href="https://pytorch.org/docs/stable">Docs</a></li>
<li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li>
<li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">GitHub Issues</a></li>
<li><a href="https://pytorch.slack.com" target="_blank">Slack</a></li>
Expand Down Expand Up @@ -349,7 +349,7 @@ <h2>Resources</h2>
</li>

<li>
<a href="https://pytorch.org/docs">Docs</a>
<a href="https://pytorch.org/docs/stable">Docs</a>
</li>

<li class="">
Expand Down
Loading