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 8996f54
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 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/
14 changes: 12 additions & 2 deletions julia/docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,19 @@
# specific language governing permissions and limitations
# under the License.

all:
all: venv
julia --color=yes --project=./ -e \
'using Pkg; \
Pkg.develop(PackageSpec(name="MXNet", path = joinpath(pwd(), "..")))'
julia --color=yes --project=./ ./make.jl
mkdocs build
./venv/bin/mkdocs build

venv:
python3 -m venv venv
./venv/bin/pip install -U pip
./venv/bin/pip install pygments mkdocs mkdocs-material python-markdown-math

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 8996f54

Please sign in to comment.