Skip to content

Commit

Permalink
Added Umami analytics to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Petukhov committed Sep 27, 2024
1 parent 7bc689f commit 86f0204
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ build.log
examples/*/data*
examples/*/output_*

docs/build/
docs/build/
gh_key.sh
26 changes: 24 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,29 @@ makedocs(
"Examples" => "examples.md"
# TODO:
# API
]
],
format=Documenter.HTML(;
assets=[
asset(
"https://cloud.umami.is/script.js", class=:js,
attributes=Dict(Symbol("data-website-id") => "b9c0c023-9682-4a74-8d3e-81a1d9a19e98", :defer => "")
)
],
)
)

deploydocs(repo = "github.com/kharchenkolab/Baysor.git")
if "deploy" in ARGS
ENV["TRAVIS_REPO_SLUG"] = "github.com/kharchenkolab/Baysor.git"
ENV["TRAVIS_PULL_REQUEST"] = "false"
ENV["TRAVIS_OS_NAME"] = "linux"
ENV["TRAVIS_JULIA_VERSION"] = "1.1"
ENV["TRAVIS_TAG"] = ""
ENV["TRAVIS_BRANCH"] = "master"

deploydocs(
repo="github.com/kharchenkolab/Baysor.git",
target="build",
branch="gh-pages",
devbranch="master",
)
end

0 comments on commit 86f0204

Please sign in to comment.