forked from JuliaGeometry/Quaternions.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation with Documenter.jl (JuliaGeometry#68)
* add docs * update gitignore * add docs in ci.yml * update document badges in README * Update docs/Project.toml Co-authored-by: Seth Axen <[email protected]> * Update docs/src/index.md Co-authored-by: Seth Axen <[email protected]> Co-authored-by: Seth Axen <[email protected]>
- Loading branch information
Showing
6 changed files
with
69 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/Manifest.toml | ||
Manifest.toml | ||
/test/coverage/Manifest.toml | ||
docs/build |
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 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" |
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,22 @@ | ||
using Quaternions | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(Quaternions, :DocTestSetup, :(using Quaternions); recursive=true) | ||
|
||
makedocs(; | ||
modules=[Quaternions], | ||
repo="https://github.com/JuliaGeometry/Quaternions.jl/blob/{commit}{path}#{line}", | ||
sitename="Quaternions.jl", | ||
format=Documenter.HTML(; | ||
prettyurls=get(ENV, "CI", "false") == "true", | ||
canonical="https://JuliaGeometry.github.io/Quaternions.jl", | ||
assets = ["assets/custom.css"], | ||
), | ||
pages=[ | ||
"Home" => "index.md", | ||
], | ||
) | ||
|
||
deploydocs(; | ||
repo="github.com/JuliaGeometry/Quaternions.jl", | ||
) |
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,25 @@ | ||
# Quaternions.jl | ||
|
||
A Julia package implementing [quaternions](https://en.wikipedia.org/wiki/Quaternion), [octonions](https://en.wikipedia.org/wiki/Octonion) and [dual-quaternions](https://en.wikipedia.org/wiki/Dual_quaternion) | ||
|
||
!!! note "Documentation" | ||
The documentation is still work in progress. | ||
For more information, see also | ||
* [README in the repository](https://github.com/JuliaGeometry/Quaternions.jl) | ||
* [Tests in the repository](https://github.com/JuliaGeometry/Quaternions.jl/tree/master/test) | ||
Feel free to [open pull requests](https://github.com/JuliaGeometry/Quaternions.jl/pulls) and improve this document! | ||
|
||
## Installation | ||
``` | ||
pkg> add Quaternions | ||
``` | ||
|
||
## First example | ||
|
||
```@repl | ||
using Quaternions | ||
q = quat(0.0, 0.0, 0.0, 1.0) | ||
r = quat(0, 0, 1, 0) | ||
q*r | ||
q+r | ||
``` |