-
+
- + Github + +
diff --git a/.isort.cfg b/.isort.cfg index 158acd6e2..4a682ea8f 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -1,2 +1,2 @@ [settings] -known_third_party =numpy,pytest,setuptools,torch,torchtext,torchvision +known_third_party =numpy,pytest,pytorch_sphinx_theme,recommonmark,setuptools,torch,torchtext,torchvision diff --git a/docs/source/_static/css/customize.css b/docs/source/_static/css/customize.css new file mode 100644 index 000000000..3b39e3ac9 --- /dev/null +++ b/docs/source/_static/css/customize.css @@ -0,0 +1,11 @@ +.tutorials-header .header-logo { + background-image: url("../images/fairscale-logo-dark.svg"); +} + +.header-logo { + background-image: url("../images/fairscale-logo.svg"); +} + +.footer-logo { + background-image: url("../images/fairscale-logo-icon.svg"); +} diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html new file mode 100644 index 000000000..aba6dda80 --- /dev/null +++ b/docs/source/_templates/layout.html @@ -0,0 +1,364 @@ +{# TEMPLATE VAR SETTINGS #} +{%- set url_root = pathto('', 1) %} +{%- if url_root == '#' %}{% set url_root = '' %}{% endif %} +{%- if not embedded and docstitle %} + {%- set titlesuffix = " | "|safe + docstitle|e %} +{%- else %} + {%- set titlesuffix = "" %} +{%- endif %} +{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %} +{% import 'theme_variables.jinja' as theme_variables %} + + + + +
+ + {{ metatags }} + + {% block htmltitle %} +