Skip to content

Commit

Permalink
added automatic ipynb to md conversion for tutorials. Updated grammar…
Browse files Browse the repository at this point in the history
… and basic serach tutorials
  • Loading branch information
Issa Hanou committed Jul 4, 2024
1 parent 331a048 commit ccfec46
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 143 deletions.
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ HerbGrammar = "4ef9e186-2fe5-4b24-8de7-9f7291f24af7"
HerbInterpret = "5bbddadd-02c5-4713-84b8-97364418cca7"
HerbSearch = "3008d8e8-f9aa-438a-92ed-26e9c7b4829f"
HerbSpecification = "6d54aada-062f-46d8-85cf-a1ceaf058a06"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"

[compat]
Documenter = "1"
12 changes: 12 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ using HerbInterpret
using HerbCore
using HerbSpecification

# Use jupyter.nbconver to convert notebooks to markdown
using PyCall
jupyter = pyimport("jupyterlab")
nbconvert = pyimport("nbconvert")
all_notebooks = readdir("src/tutorials/")
for file in all_notebooks
if occursin("ipynb", file)
path = pwd() * "/src/tutorials/" * file
run(`jupyter nbconvert --to markdown $path`)
end
end

makedocs(
modules=[HerbConstraints, HerbSearch, HerbGrammar, HerbSpecification, HerbInterpret, HerbCore],
authors="PONYs",
Expand Down
Loading

0 comments on commit ccfec46

Please sign in to comment.