Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Jan 11, 2019
1 parent b134eea commit fb2cc4a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions julia/docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Manifest.toml
_build
build/
site/
venv/
8 changes: 7 additions & 1 deletion julia/docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ all:
'using Pkg; \
Pkg.develop(PackageSpec(name="MXNet", path = joinpath(pwd(), "..")))'
julia --color=yes --project=./ ./make.jl
mkdocs build
pip install --user pygments mkdocs mkdocs-material python-markdown-math
~/.local/bin/mkdocs build

clean:
rm -rvf venv
rm -rvf build
rm -rvf site
1 change: 1 addition & 0 deletions julia/docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterMarkdown = "997ab1e6-3595-5248-9280-8efb232c3433"
MXNet = "a7949054-b901-59c6-b8e3-7238c29bf7f0"

[compat]
Expand Down
15 changes: 6 additions & 9 deletions julia/docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@
# specific language governing permissions and limitations
# under the License.

using Documenter, MXNet
using Documenter
using DocumenterMarkdown
using MXNet

makedocs(
sitename = "MXNet.jl",
modules = MXNet,
doctest = false
)

deploydocs(
deps = Deps.pip("pygments", "mkdocs", "mkdocs-material", "python-markdown-math"),
repo = "github.com/dmlc/MXNet.jl.git",
julia = "1.0",
modules = MXNet,
doctest = false,
format = Markdown(),
)
2 changes: 1 addition & 1 deletion julia/docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ markdown_extensions:

docs_dir: 'build'

pages:
nav:
- Home: index.md
- Tutorial:
- Digit Recognition on MNIST: tutorial/mnist.md
Expand Down

0 comments on commit fb2cc4a

Please sign in to comment.