Skip to content

Commit 233f2b0

Browse files
committed
docs
1 parent e795e12 commit 233f2b0

File tree

7 files changed

+108
-6
lines changed

7 files changed

+108
-6
lines changed

.github/workflows/docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master # update to match your development branch (master, main, dev, trunk, ...)
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
permissions:
13+
actions: write
14+
contents: write
15+
pull-requests: read
16+
statuses: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: julia-actions/setup-julia@v2
21+
with:
22+
version: '1'
23+
- uses: julia-actions/cache@v2
24+
- name: Install dependencies
25+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
26+
- name: Build and deploy
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
29+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
30+
run: julia --project=docs/ docs/make.jl

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
FunctionMaps = "a85aefff-f8ca-4649-a888-c8e5398bc76c"
4+
5+
[compat]
6+
Documenter = "1.8"

docs/make.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,14 @@ makedocs(;
1313
),
1414
pages=[
1515
"Home" => "index.md",
16+
"Examples" => "examples.md",
17+
"API" => Any[
18+
"Public API Reference" => "api.md",
19+
"Internal API Reference" => "internal.md"
20+
],
1621
],
1722
)
23+
24+
deploydocs(;
25+
repo="github.com/JuliaApproximation/FunctionMaps.jl", devbranch="master",
26+
)

docs/src/api.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Public API Reference
2+
3+
## Constants
4+
5+
```@autodocs
6+
Modules = [FunctionMaps]
7+
Order = [:constant]
8+
Public = true
9+
Private = false
10+
```
11+
12+
## Functions
13+
14+
```@autodocs
15+
Modules = [FunctionMaps]
16+
Order = [:function]
17+
Public = true
18+
Private = false
19+
```
20+
21+
## Types
22+
23+
```@autodocs
24+
Modules = [FunctionMaps]
25+
Order = [:type]
26+
Public = true
27+
Private = false
28+
```

docs/src/examples.md

Whitespace-only changes.

docs/src/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ CurrentModule = FunctionMaps
44

55
# FunctionMaps
66

7-
Documentation for [FunctionMaps](https://github.com/daanhb/FunctionMaps.jl).
7+
This is the documentation for [FunctionMaps](https://github.com/JuliaApproximation/FunctionMaps.jl).
88

9-
```@index
10-
```
9+
## What is FunctionMaps.jl
1110

12-
```@autodocs
13-
Modules = [FunctionMaps]
14-
```
11+
FunctionMaps.jl is a package designed to represent scalar- and vector-valued functions. It makes it easy to make new maps from existing ones, via composition or by taking products.

docs/src/internal.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Internal API Reference
2+
3+
This is an exhaustive list of all non-exported constants, types and functions
4+
in `FunctionMaps.jl`.
5+
6+
!!! warning
7+
Unexported functions and types are subject to change across different
8+
releases of the package, even if the release is said to be non-breaking.
9+
10+
## Constants
11+
12+
```@autodocs
13+
Modules = [FunctionMaps]
14+
Order = [:constant]
15+
Public = false
16+
Private = true
17+
```
18+
19+
## Functions
20+
21+
```@autodocs
22+
Modules = [FunctionMaps]
23+
Order = [:function]
24+
Public = false
25+
Private = true
26+
```
27+
28+
## Types
29+
30+
```@autodocs
31+
Modules = [FunctionMaps]
32+
Order = [:type]
33+
Public = false
34+
Private = true
35+
```

0 commit comments

Comments
 (0)