Skip to content

Commit

Permalink
properly
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Sep 10, 2018
1 parent 5218de9 commit bb13b82
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
14 changes: 14 additions & 0 deletions docs/source/_static/js/redirect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var url = window.location.href;
var newurl = "http://ml.dask.org" + url.split("/build/html")[1]

htmlstr = "<div class=\"admonition note\">\
<p class=\"first admonition-title\">Note</p>\
<p class=\"last\">The documentation has moved to\
<a href=" + newurl + ">ml.dask.org</a></p>\
</div>";

if (url.indexOf("readthedocs") !== -1) {
$(document).ready(function () {
$(".section > h1").prepend(htmlstr);
})
}
6 changes: 2 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
numpydoc_class_members_toctree = False
autodoc_default_flags = ["members", "inherited-members"]
autosummary_generate = True
# templates_path = ["templates"]
templates_path = ["templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
Expand Down Expand Up @@ -221,9 +221,7 @@ def update_examples(app):


def setup(app):
# app.connect("autodoc-process-docstring", generate_example_rst)
# app.connect("builder-inited", update_examples)
pass
app.add_javascript("js/custom.js")


extlinks = {
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ algorithms easily. This is employed for :doc:`linear models <glm>`, :doc:`pre-p
Partner with other distributed libraries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Other machine learning libraries like XGBoost and TensorFlow already have
Other ML libraries like XGBoost and TensorFlow already have
distributed solutions that work quite well. Dask-ML makes no attempt to
re-implement these systems. Instead, Dask-ML makes it easy to use normal Dask
workflows to prepare and set up data, then it deploys XGBoost or Tensorflow
Expand Down
21 changes: 0 additions & 21 deletions docs/source/templates/layout.html

This file was deleted.

0 comments on commit bb13b82

Please sign in to comment.