Skip to content

Commit

Permalink
Add API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
neelsmith committed Jun 3, 2021
1 parent c096736 commit 66497a7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CitableBase"
uuid = "d6f014bd-995c-41bd-9893-703339864534"
authors = ["Neel Smith <[email protected]>"]
version = "1.2.0"
version = "1.2.1"

[deps]
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand Down
3 changes: 2 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ using Documenter, DocStringExtensions, CitableBase
makedocs(
sitename = "CitableBase.jl",
pages = [
"Home" => "index.md"
"Home" => "index.md",
"API documentation" => "apis.md"
]
)

Expand Down
23 changes: 23 additions & 0 deletions docs/src/apis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

```@meta
CurrentModule = CitableBase
```

## Types
```@docs
Urn
Citable
```

## Functions
```@docs
validurn
components
parts
```

## Functions to implement for specific URN types
```@docs
addversion
dropversion
```
25 changes: 5 additions & 20 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
# CitableBase.jl Documentation
```@meta
CurrentModule = CitableBase
```
# CitableBase.jl

## Types
```@docs
Urn
Citable
```
CitableBase.jl defines two core abstractions of the CITE architecture:

1. identifiers expressible using the syntax of the IETF URN specification
2. citable units, identified by URN, and including a human-readable label

## Functions
```@docs
validurn
components
parts
```

## Functions to implement for specific URN types
```@docs
addversion
dropversion
```

0 comments on commit 66497a7

Please sign in to comment.