Skip to content

Commit

Permalink
Use ReadTheDocs theme for documentation (#2723)
Browse files Browse the repository at this point in the history
* Use ReadTheDocs theme for documentation
* Add Dropwizard-specific stylesheet
* Use SVG image for Dropwizard hat
  • Loading branch information
joschi committed Apr 17, 2019
1 parent 63fa905 commit ab42c8c
Show file tree
Hide file tree
Showing 54 changed files with 148 additions and 4,975 deletions.
7 changes: 2 additions & 5 deletions docs/Makefile
Expand Up @@ -42,12 +42,12 @@ help:
clean:
-rm -rf $(BUILDDIR)/*

html: less
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

dirhtml: less
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
Expand Down Expand Up @@ -155,6 +155,3 @@ doctest:

livehtml: html
sphinx-autobuild -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

less:
lesscpy -x source/_themes/dropwizard/less/dropwizard.less > source/_themes/dropwizard/static/dropwizard.css
1 change: 1 addition & 0 deletions docs/requirements.txt
@@ -1,3 +1,4 @@
lesscpy==0.13.0
Sphinx==2.0.1
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.3
34 changes: 34 additions & 0 deletions docs/source/_static/dropwizard-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/source/_static/dropwizard.css
@@ -0,0 +1,7 @@
.wy-side-nav-search > a > img.logo {
height: 4em;
}

.wy-nav-content {
max-width: 1024px;
}
77 changes: 0 additions & 77 deletions docs/source/_themes/dropwizard/genindex.html

This file was deleted.

134 changes: 0 additions & 134 deletions docs/source/_themes/dropwizard/layout.html

This file was deleted.

28 changes: 0 additions & 28 deletions docs/source/_themes/dropwizard/less/accordion.less

This file was deleted.

70 changes: 0 additions & 70 deletions docs/source/_themes/dropwizard/less/alerts.less

This file was deleted.

0 comments on commit ab42c8c

Please sign in to comment.