-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from SciML/docs
Build a proper documentation
- Loading branch information
Showing
10 changed files
with
303 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'release-' | ||
tags: '*' | ||
pull_request: | ||
schedule: | ||
- cron: '34 21 * * 4' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: '1' | ||
- name: Install dependencies | ||
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
- name: Build and deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | ||
run: julia --project=docs/ --code-coverage=user docs/make.jl | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
with: | ||
directories: src | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
SurrogatesBase = "89f642e6-4179-4274-8202-c11f4bd9a72c" | ||
|
||
[compat] | ||
Documenter = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Documenter, SurrogatesBase | ||
|
||
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true) | ||
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true) | ||
|
||
pages = [ | ||
"Home" => "index.md", | ||
"interface.md", | ||
"api.md" | ||
] | ||
|
||
ENV["GKSwstype"] = "100" | ||
|
||
makedocs(modules = [SurrogatesBase], | ||
sitename = "SurrogatesBase.jl", | ||
clean = true, | ||
doctest = false, | ||
linkcheck = true, | ||
format = Documenter.HTML(assets = ["assets/favicon.ico"], | ||
canonical = "https://docs.sciml.ai/SurrogatesBase/stable/"), | ||
pages = pages) | ||
|
||
deploydocs(repo = "github.com/SciML/SurrogatesBase.jl"; push_preview = true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# API | ||
|
||
```@autodocs | ||
Modules = [SurrogatesBase] | ||
``` |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# SurrogatesBase.jl: A Common Interface for Surrogate Libraries | ||
|
||
API for deterministic and stochastic surrogates. | ||
|
||
Given data $((x_1, y_1), \ldots, (x_N, y_N))$ obtained by evaluating a function $y_i = | ||
f(x_i)$ or sampling from a conditional probability density $p_{Y|X}(Y = y_i|X = x_i)$, | ||
a **deterministic surrogate** is a function $s(x)$ (e.g. a [radial basis function | ||
interpolator](https://en.wikipedia.org/wiki/Radial_basis_function_interpolation)) that | ||
uses the data to approximate $f$ or some statistic of $p_{Y|X}$ (e.g. the mean), | ||
whereas a **stochastic surrogate** is a stochastic process (e.g. a [Gaussian process | ||
approximation](https://en.wikipedia.org/wiki/Gaussian_process_approximations)) that uses | ||
the data to approximate $f$ or $p_{Y|X}$ *and* quantify the uncertainty of the | ||
approximation. | ||
|
||
## Installation | ||
|
||
To install SurrogatesBase.jl, use the Julia package manager: | ||
|
||
```julia | ||
using Pkg | ||
Pkg.add("SurrogatesBase") | ||
``` | ||
|
||
## Contributing | ||
|
||
- Please refer to the | ||
[SciML ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://github.com/SciML/ColPrac/blob/master/README.md) | ||
for guidance on PRs, issues, and other matters relating to contributing to SciML. | ||
|
||
- See the [SciML Style Guide](https://github.com/SciML/SciMLStyle) for common coding practices and other style decisions. | ||
- There are a few community forums: | ||
|
||
+ The #diffeq-bridged and #sciml-bridged channels in the | ||
[Julia Slack](https://julialang.org/slack/) | ||
+ The #diffeq-bridged and #sciml-bridged channels in the | ||
[Julia Zulip](https://julialang.zulipchat.com/#narrow/stream/279055-sciml-bridged) | ||
+ On the [Julia Discourse forums](https://discourse.julialang.org) | ||
+ See also [SciML Community page](https://sciml.ai/community/) | ||
|
||
## Reproducibility | ||
|
||
```@raw html | ||
<details><summary>The documentation of this SciML package was built using these direct dependencies,</summary> | ||
``` | ||
|
||
```@example | ||
using Pkg # hide | ||
Pkg.status() # hide | ||
``` | ||
|
||
```@raw html | ||
</details> | ||
``` | ||
|
||
```@raw html | ||
<details><summary>and using this machine and Julia version.</summary> | ||
``` | ||
|
||
```@example | ||
using InteractiveUtils # hide | ||
versioninfo() # hide | ||
``` | ||
|
||
```@raw html | ||
</details> | ||
``` | ||
|
||
```@raw html | ||
<details><summary>A more complete overview of all dependencies and their versions is also provided.</summary> | ||
``` | ||
|
||
```@example | ||
using Pkg # hide | ||
Pkg.status(; mode = PKGMODE_MANIFEST) # hide | ||
``` | ||
|
||
```@raw html | ||
</details> | ||
``` | ||
|
||
```@eval | ||
using TOML | ||
using Markdown | ||
version = TOML.parse(read("../../Project.toml", String))["version"] | ||
name = TOML.parse(read("../../Project.toml", String))["name"] | ||
link_manifest = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version * | ||
"/assets/Manifest.toml" | ||
link_project = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version * | ||
"/assets/Project.toml" | ||
Markdown.parse("""You can also download the | ||
[manifest]($link_manifest) | ||
file and the | ||
[project]($link_project) | ||
file. | ||
""") | ||
``` |
Oops, something went wrong.