-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): support readthedocs (#369)
* docs(readthedocs): add en doc * docs(project): update image
- Loading branch information
1 parent
87492ba
commit 4bddfbc
Showing
52 changed files
with
1,052 additions
and
81 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
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,17 @@ | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.8" | ||
|
||
formats: | ||
- epub | ||
|
||
sphinx: | ||
configuration: docs/en/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: requirements/docs.txt |
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,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
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,62 @@ | ||
.header-logo { | ||
background-image: url("../image/logo.svg"); | ||
background-size: 444px 93px; | ||
height: 93px; | ||
width: 444px; | ||
} | ||
|
||
@media screen and (min-width: 1100px) { | ||
.header-logo { | ||
top: -25px; | ||
} | ||
} | ||
|
||
pre { | ||
white-space: pre; | ||
} | ||
|
||
@media screen and (min-width: 2000px) { | ||
.pytorch-content-left { | ||
width: 1200px; | ||
margin-left: 30px; | ||
} | ||
article.pytorch-article { | ||
max-width: 1200px; | ||
} | ||
.pytorch-breadcrumbs-wrapper { | ||
width: 1200px; | ||
} | ||
.pytorch-right-menu.scrolling-fixed { | ||
position: fixed; | ||
top: 45px; | ||
left: 1580px; | ||
} | ||
} | ||
|
||
|
||
article.pytorch-article section code { | ||
padding: .2em .4em; | ||
background-color: #f3f4f7; | ||
border-radius: 5px; | ||
} | ||
|
||
/* Disable the change in tables */ | ||
article.pytorch-article section table code { | ||
padding: unset; | ||
background-color: unset; | ||
border-radius: unset; | ||
} | ||
|
||
table.autosummary td { | ||
width: 50% | ||
} | ||
|
||
img.align-center { | ||
display: block; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
article.pytorch-article p.rubric { | ||
font-weight: bold; | ||
} |
Oops, something went wrong.