Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Documentation

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

jobs:
Documentation:
name: Documentation
runs-on: ubuntu-latest

permissions:
contents: write
statuses: write

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
show-versioninfo: true # this causes versioninfo to be printed to the action log
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Manifest.toml
Manifest-*.toml
docs/build
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
[compat]
LinearAlgebra = "1.2"
julia = "1.2"

[workspace]
projects = ["docs", "test"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

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

Core definitions for the [ProximalOperators](https://github.com/JuliaFirstOrder/ProximalOperators.jl) and [ProximalAlgorithms](https://github.com/JuliaFirstOrder/ProximalAlgorithms.jl) ecosystem.
6 changes: 4 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Documenter
using ProximalCore

DocMeta.setdocmeta!(ProximalCore, :DocTestSetup, :(using ProximalCore); recursive=true)

makedocs(
sitename = "ProximalCore.jl",
format = Documenter.HTML(),
Expand All @@ -11,7 +13,7 @@ makedocs(
]
)

#=deploydocs(
deploydocs(
repo = "github.com/JuliaFirstOrder/ProximalCore.jl",
devbranch = "main"
)=#
)
12 changes: 6 additions & 6 deletions src/base_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Constructs the zero function, i.e., the function that is zero everywhere.

# Example
```jldoctest
julia> f = Zero()
Zero()
julia> f = ProximalCore.Zero()
ProximalCore.Zero()

julia> f(rand(3))
0.0
Expand Down Expand Up @@ -36,13 +36,13 @@ Constructs the indicator function of the zero set, i.e., the function that is ze

# Example
```jldoctest
julia> f = IndZero()
IndZero()
julia> f = ProximalCore.IndZero()
ProximalCore.IndZero()

julia> f([1, 2, 3])
julia> f([1.0, 2.0, 3.0])
Inf

julia> f([0, 0, 0])
julia> f([0.0, 0.0, 0.0])
0.0
```
"""
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
ProximalCore = "dc4f5ac2-75d1-4f31-931e-60435d74994b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Loading