Skip to content

Commit

Permalink
feat: adding github doc generation and hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Harrison committed Nov 4, 2024
1 parent 3a24213 commit 2cebb33
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Documentation

on:
push:
branches:
- main
tags: '*'
pull_request:

jobs:
build:
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs -e 'using Pkg; Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --project=docs docs/make.jl
2 changes: 1 addition & 1 deletion docs/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

julia_version = "1.10.2"
manifest_format = "2.0"
project_hash = "aa51543ac8436e6e88020ded35ef6ec1e89249e9"
project_hash = "9516226bf0680f7d199d1dfec4ca8be000a65a83"

[[deps.ANSIColoredPrinters]]
git-tree-sha1 = "574baf8110975760d391c710b6341da1afa48d8c"
Expand Down
3 changes: 3 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
InformativeSampling = "bfd01cc8-db36-4de5-b056-8ab04eef9441"
InformativeSamplingUtils = "1d6b69be-e25c-46ac-b1c5-442f720809e4"

[compat]
Documenter = "1.5"
9 changes: 7 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ using InformativeSampling: Maps, Missions, BeliefModels, Kernels,
using InformativeSamplingUtils: DataIO, Visualization, Metrics

makedocs(
sitename="InformativeSampling.jl",
remotes=nothing,
sitename="InformativeSampling",
# remotes=nothing,
pages = [
"index.md",
"application.md",
Expand All @@ -19,3 +19,8 @@ makedocs(
],
format = Documenter.HTML(prettyurls=false)
)

deploydocs(
repo = "github.com/ngharrison/InformativeSampling.git",
versions = nothing,
)
2 changes: 2 additions & 0 deletions readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ Note that just the same as when running Julia code normally, if the interpreter

* Documentation

The docs can be viewed at https://ngharrison.github.io/InformativeSampling/.

If you want to view the docs locally, first generate them by running the following command(s) from the project root:

#+begin_src shell
Expand Down

0 comments on commit 2cebb33

Please sign in to comment.