Skip to content

Commit 4f6460a

Browse files
authored
Deploy docs (#6)
* fix & deploy docs * fix failing CI by adding ProximalCore to test dependencies * fix wrong link to docs
1 parent 66e3373 commit 4f6460a

7 files changed

Lines changed: 44 additions & 8 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
Documentation:
12+
name: Documentation
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
statuses: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: julia-actions/setup-julia@v2
22+
with:
23+
version: '1'
24+
show-versioninfo: true # this causes versioninfo to be printed to the action log
25+
- uses: julia-actions/cache@v2
26+
- uses: julia-actions/julia-docdeploy@v1
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Manifest.toml
2+
Manifest-*.toml
23
docs/build

Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
99
[compat]
1010
LinearAlgebra = "1.2"
1111
julia = "1.2"
12+
13+
[workspace]
14+
projects = ["docs", "test"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
[![Build status](https://github.com/JuliaFirstOrder/ProximalCore.jl/workflows/Test/badge.svg)](https://github.com/JuliaFirstOrder/ProximalCore.jl/actions?query=workflow%3ATest)
44
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
5+
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliafirstorder.github.io/ProximalCore.jl/stable/)
56

67
Core definitions for the [ProximalOperators](https://github.com/JuliaFirstOrder/ProximalOperators.jl) and [ProximalAlgorithms](https://github.com/JuliaFirstOrder/ProximalAlgorithms.jl) ecosystem.

docs/make.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using Documenter
22
using ProximalCore
33

4+
DocMeta.setdocmeta!(ProximalCore, :DocTestSetup, :(using ProximalCore); recursive=true)
5+
46
makedocs(
57
sitename = "ProximalCore.jl",
68
format = Documenter.HTML(),
@@ -11,7 +13,7 @@ makedocs(
1113
]
1214
)
1315

14-
#=deploydocs(
16+
deploydocs(
1517
repo = "github.com/JuliaFirstOrder/ProximalCore.jl",
1618
devbranch = "main"
17-
)=#
19+
)

src/base_functions.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Constructs the zero function, i.e., the function that is zero everywhere.
55
66
# Example
77
```jldoctest
8-
julia> f = Zero()
9-
Zero()
8+
julia> f = ProximalCore.Zero()
9+
ProximalCore.Zero()
1010
1111
julia> f(rand(3))
1212
0.0
@@ -36,13 +36,13 @@ Constructs the indicator function of the zero set, i.e., the function that is ze
3636
3737
# Example
3838
```jldoctest
39-
julia> f = IndZero()
40-
IndZero()
39+
julia> f = ProximalCore.IndZero()
40+
ProximalCore.IndZero()
4141
42-
julia> f([1, 2, 3])
42+
julia> f([1.0, 2.0, 3.0])
4343
Inf
4444
45-
julia> f([0, 0, 0])
45+
julia> f([0.0, 0.0, 0.0])
4646
0.0
4747
```
4848
"""

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
22
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
33
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
4+
ProximalCore = "dc4f5ac2-75d1-4f31-931e-60435d74994b"
45
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

0 commit comments

Comments
 (0)