Skip to content

Commit

Permalink
docs up
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCCWang committed Apr 6, 2024
1 parent ecee05e commit 960d792
Show file tree
Hide file tree
Showing 11 changed files with 484 additions and 25 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: CI
on:
- push
- pull_request
env:
JULIA_NUM_THREADS: 2
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.9'
- '^1'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
include-all-prereleases: true
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: |
julia --project=@. -e '
using Pkg
Pkg.Registry.add(RegistrySpec(url = "https://github.com/RoyCCWang/RWPublicJuliaRegistry"))'
shell: bash
env:
DATADEPS_ALWAYS_ACCEPT: true
- uses: julia-actions/julia-buildpkg@latest
env:
DATADEPS_ALWAYS_ACCEPT: true
- uses: julia-actions/julia-runtest@latest
env:
DATADEPS_ALWAYS_ACCEPT: true
- uses: julia-actions/julia-processcoverage@v1
env:
DATADEPS_ALWAYS_ACCEPT: true
- uses: codecov/codecov-action@v3
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
julia --project=docs -e '
import Pkg; Pkg.add("Documenter")
using Pkg
Pkg.Registry.add(RegistrySpec(url = "https://github.com/RoyCCWang/RWPublicJuliaRegistry"))
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
shell: bash
env:
DATADEPS_ALWAYS_ACCEPT: true
- run: |
julia --project=docs -e '
import Pkg; Pkg.add("Documenter")
using Documenter: doctest
using Pkg
Pkg.Registry.add(RegistrySpec(url = "https://github.com/RoyCCWang/RWPublicJuliaRegistry"))
using MaternRegression
const GS = MaternRegression
doctest(MaternRegression)'
shell: bash
env:
DATADEPS_ALWAYS_ACCEPT: true
- run: julia --project=docs docs/make.jl 'using Pkg;
Pkg.Registry.add(RegistrySpec(url = "https://github.com/RoyCCWang/RWPublicJuliaRegistry"))'

shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
DATADEPS_ALWAYS_ACCEPT: true
10 changes: 10 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Wang"
given-names: "Roy Chih Chung"
orcid: "https://orcid.org/0000-0002-1391-4536"
title: "RoyCCWang/MaternRegression.jl"
version: 0.1.0
date-released: 2024-04-06
url: "https://github.com/RoyCCWang/MaternRegression.jl"
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# MaternRegression.jl
# MaternRegression.jl
This package performs univariate Gaussian process regression inference for in-fill problems with the Matern `3/2` covariance function.

## Documentation
The [documentation](https://royccwang.github.io/MaternRegression.jl/) has usage tutorials and API specifications.

## Citation
The companion publication for this package is under peer-review. For now, you can cite this repository and code via the *Cite This Repository* button on the GitHub webpage of this repository.
44 changes: 22 additions & 22 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@ makedocs(
],
)

# # github.
# makedocs(
# sitename="MaternRegression.jl",
# modules=[MaternRegression],
# format=Documenter.HTML(prettyurls = get(ENV, "CI", nothing)=="true"),
# pages = [
# "Overview" => "index.md",
# "Public API" => "api.md",
# github.
makedocs(
sitename="MaternRegression.jl",
modules=[MaternRegression],
format=Documenter.HTML(prettyurls = get(ENV, "CI", nothing)=="true"),
pages = [
"Overview" => "index.md",
"Public API" => "api.md",

# "Basic query" =>
# "generated/sde_gp_lit.md",
"Basic query" =>
"generated/sde_gp_lit.md",

# "Hyperparameter optimization" =>
# "generated/optim_lit.md",
"Hyperparameter optimization" =>
"generated/optim_lit.md",

# "Hyperparameter inference" =>
# "generated/mcmc_lit.md",
# ],
# )
# deploydocs(
# repo = "github.com/RoyCCWang/MaternRegression.jl",
# target = "build",
# branch = "gh-pages",
# versions = ["stable" => "v^", "v#.#" ],
# )
"Hyperparameter inference" =>
"generated/mcmc_lit.md",
],
)
deploydocs(
repo = "github.com/RoyCCWang/MaternRegression.jl",
target = "build",
branch = "gh-pages",
versions = ["stable" => "v^", "v#.#" ],
)
Binary file added docs/src/generated/mcmc_lit-42.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/generated/mcmc_lit-44.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/generated/mcmc_lit-46.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/generated/mcmc_lit-67.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 960d792

Please sign in to comment.