Skip to content

Commit

Permalink
Remove deepnumpy reference and move Numpy tutorials to top level (apa…
Browse files Browse the repository at this point in the history
…che#18798)

* move np tutorials to top level

* replace deepnumpy reference to np

* add info in card

* remove useless entry

* replace NDArray API card with np.ndarray

* python site refactor

* remove duplicated drawer and refactor layout

* extend document width to 100% for xl devices
  • Loading branch information
ys2843 authored Jul 29, 2020
1 parent e9829e7 commit 915f6b4
Show file tree
Hide file tree
Showing 34 changed files with 38 additions and 38 deletions.
4 changes: 0 additions & 4 deletions docs/python_docs/_static/mxnet.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
visibility: hidden;
}

.document .page-content {
padding: 0 10% !important;
}

.mdl-layout__header--waterfall.is-casting-shadow {
box-shadow: none !important;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Step 1: Manipulate data with NP on MXNet

This getting started exercise introduces the `np` package, which is similar to Numpy. For more information, please see [Differences between NP on MXNet and NumPy](/api/python/docs/tutorials/getting-started/deepnumpy/deepnumpy-vs-numpy.html).
This getting started exercise introduces the `np` package, which is similar to Numpy. For more information, please see [Differences between NP on MXNet and NumPy](/api/python/docs/tutorials/getting-started/np/np-vs-numpy.html).

## Import packages and create an array

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ for epoch in range(10):
## Next steps

Now you have completed training and predicting with a neural network by using NP on MXNet and
Gluon. You can check the guides to these two front ends: [What is NP on MXNet](../deepnumpy/index.html) and [gluon](../gluon_from_experiment_to_deployment.md).
Gluon. You can check the guides to these two front ends: [What is NP on MXNet](../np/index.html) and [gluon](../gluon_from_experiment_to_deployment.md).
4 changes: 2 additions & 2 deletions docs/python_docs/python/tutorials/getting-started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The following tutorials teach how to use MXNet.

.. card::
:title: What is NP on MXNet
:link: deepnumpy/index.html
:link: np/index.html

What is NP on MXNet

Expand Down Expand Up @@ -63,7 +63,7 @@ The following tutorials teach how to use MXNet.
:maxdepth: 2

crash-course/index
deepnumpy/index
np/index
to-mxnet/index
gluon_from_experiment_to_deployment
logistic_regression_explained.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ If this is your first time using NP on MXNet, we recommend that you review the f
:maxdepth: 1

cheat-sheet
deepnumpy-vs-numpy
np-vs-numpy
7 changes: 3 additions & 4 deletions docs/python_docs/python/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ Packages & Modules
MXNet's imperative interface for Python. If you're new to MXNet, start here!

.. card::
:title: NDArray API
:link: packages/ndarray/index.html
:title: np.ndarray API
:link: packages/np/index.html

How to use the NDArray API to manipulate data.
A useful set of tutorials for beginners.
This section contains the `mxnet.np` API reference documentation.

.. card::
:title: Symbol API
Expand Down
6 changes: 6 additions & 0 deletions docs/python_docs/python/tutorials/packages/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ Shared APIs

How to use the optimizers.

.. card::
:title: NP on MXNet reference
:link: np/index.html

This section contains the mxnet.np API reference documentation.

.. toctree::
:hidden:
:glob:
Expand Down
5 changes: 0 additions & 5 deletions docs/python_docs/python/tutorials/packages/ndarray/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ NDArray

For Sparse NDArray tutorials

.. card::
:title: NP on MXNet reference
:link: deepnumpy/index.html

This section contains the mxnet.np API reference documentation

.. toctree::
Expand All @@ -57,4 +53,3 @@ NDArray

*
sparse/index
deepnumpy/index
10 changes: 6 additions & 4 deletions docs/python_docs/themes/mx-theme/mxtheme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@
'_static/feedback.css',
] %}

{%- block header %}
<script type="text/javascript" src="{{ pathto('_static/sphinx_materialdesign_theme.js', 1) }} "></script>
<script type="text/javascript" src="{{ pathto('_static/feedback.js', 1) }}"></script>
{% endblock %}
{% set script_files = script_files + [
'_static/sphinx_materialdesign_theme.js'
]
%}

{%- block header %}{% endblock %}
{%- block relbar1 %}{% endblock %}
{%- block relbar2 %}{% include "relations.html" %}{% endblock %}
{%- block sidebar2 %}{% endblock %}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import "../scss/sphinx_materialdesign_theme.scss";
import "./feedback";
import "material-design-lite";
import "babel-polyfill";
import ScrollSpy from "./scrollspy";
import AdjustHeight from "./adjust-height";

$(function() {

Expand Down
8 changes: 8 additions & 0 deletions docs/python_docs/themes/mx-theme/src/scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ body {
outline: none;
}

.mdl-layout__content header.mdl-layout__drawer {
display: none;
}

.mdl-layout--fixed-drawer>.mdl-layout__content {
margin-left: 300px;
}

h1, h2, h3, h4, h5, h6, blockquote, span.mdl-layout-title,
a.download > code.download {
font-family: $body_font_family;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ $breakpoint-large: 60em; // 960px
width: 100%;
margin-left: auto;
margin-right: auto;

@media only screen and (min-width: $breakpoint-small) {
width: 80%;
}

@media only screen and (min-width: $breakpoint-large) {
width: 75%;
max-width: 60rem;
}
}

.row {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$layout: (
document: (
xl: (
width: 1400px,
width: 100%,
)
),
drawer-container: (
Expand Down Expand Up @@ -65,6 +65,7 @@
overflow-x: auto;
overflow-y: auto;
width: inherit;
right: 0px;
&::-webkit-scrollbar {
width: 6px;
}
Expand Down

0 comments on commit 915f6b4

Please sign in to comment.