diff --git a/docs/Makefile b/docs/Makefile index a232e6b5f5fd8..71e359aa8bc4b 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -12,7 +12,14 @@ BUILDDIR = build help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -.PHONY: help Makefile +docset: html + doc2dash --name $(SPHINXPROJ) --icon $(SOURCEDIR)/_static/img/pytorch-logo-flame.png --enable-js --online-redirect-url http://pytorch.org/docs/ --force $(BUILDDIR)/html/ + + # Manually fix because Zeal doesn't deal well with `icon.png`-only at 2x resolution. + cp $(SPHINXPROJ).docset/icon.png $(SPHINXPROJ).docset/icon@2x.png + convert $(SPHINXPROJ).docset/icon@2x.png -resize 16x16 $(SPHINXPROJ).docset/icon.png + +.PHONY: help Makefile docset # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). diff --git a/docs/source/_static/img/pytorch-logo-flame.png b/docs/source/_static/img/pytorch-logo-flame.png new file mode 100644 index 0000000000000..370633f2ec2b7 Binary files /dev/null and b/docs/source/_static/img/pytorch-logo-flame.png differ diff --git a/docs/source/_static/img/pytorch-logo-flame.svg b/docs/source/_static/img/pytorch-logo-flame.svg new file mode 100644 index 0000000000000..22d7228b4fa96 --- /dev/null +++ b/docs/source/_static/img/pytorch-logo-flame.svg @@ -0,0 +1,33 @@ + +image/svg+xml \ No newline at end of file