-
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.
Merge pull request #10 from iitis/lp/docs-example
Documentation
- Loading branch information
Showing
8 changed files
with
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- lp/docs-example | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: '1.5' | ||
- name: Install dependencies | ||
run: julia --project=docs/ -e 'using Pkg; Pkg.add("Documenter"); Pkg.add("DocumenterCitations"); Pkg.add(PackageSpec(path=pwd())); Pkg.instantiate();' | ||
- name: Build and deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: julia --project=docs/ docs/make.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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
*.npy | ||
results | ||
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[![Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://iitis.github.io/SpinGlassPEPS.jl/dev/) | ||
[![Build Status](https://travis-ci.org/iitis/SpinGlassPEPS.jl.svg?branch=master)](https://travis-ci.org/iitis/SpinGlassPEPS.jl) | ||
[![Coverage Status](https://coveralls.io/repos/github/iitis/SpinGlassPEPS.jl/badge.svg?branch=master)](https://coveralls.io/github/iitis/SpinGlassPEPS.jl?branch=master) | ||
[![Coverage Status](https://coveralls.io/repos/github/iitis/SpinGlassPEPS.jl/badge.svg?branch=master)](https://coveralls.io/github/iitis/SpinGlassPEPS.jl?branch=master) |
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,40 @@ | ||
using Documenter, SpinGlassPEPS | ||
|
||
format = Documenter.HTML( | ||
edit_link = "master", | ||
prettyurls = !("local" in ARGS), | ||
mathengine = mathengine = MathJax3(Dict( | ||
:tex=>Dict( | ||
"inlineMath"=>[ ["\$","\$"], ["\\(","\\)"] ], | ||
"processEscapes"=>true, | ||
"macros"=>Dict( | ||
"bra"=> ["{\\langle #1|}",1], | ||
"ket"=> ["{| #1\\rangle}",1], | ||
"ketbra"=> ["{\\left| #1 \\rangle \\langle #2 \\right|}",2], | ||
"braket"=> ["{\\langle #1|#2\\rangle}",2], | ||
"Tr"=> ["\\mathrm{Tr}",0], | ||
"tr"=> ["\\Tr",0], | ||
"ee"=> ["\\mathrm{e}"], | ||
"ii"=> ["\\mathrm{i}"], | ||
"dd"=> ["\\mathrm{d}"], | ||
"1"=> ["{\\mathbb{1}}"] | ||
) | ||
) | ||
)) | ||
) | ||
|
||
makedocs( | ||
clean = true, | ||
format = format, | ||
sitename = "SpinGlassPEPS.jl", | ||
authors = "Krzysztof Domino, Bartłomiej Gardas, Konrad Jałowiecki, Łukasz Pawela, Marek Rams", | ||
pages = [ | ||
"Home" => "index.md", | ||
"Library" => "lib/SpinGlassPEPS.md" | ||
] | ||
) | ||
|
||
deploydocs( | ||
repo = "github.com/iitis/SpinGlassPEPS.jl.git", | ||
devbranch = "lp/docs-example" | ||
) |
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,7 @@ | ||
```@meta | ||
Author = "Krzysztof Domino, Bartłomiej Gardas, Konrad Jałowiecki, Łukasz Pawela, Marek Rams" | ||
``` | ||
|
||
# Home | ||
|
||
A Julia package for numerical computation in quantum information theory. |
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,14 @@ | ||
# Documentation | ||
|
||
|
||
## Index | ||
|
||
A list of all documentation sorted by module. | ||
|
||
```@index | ||
``` | ||
|
||
|
||
```@autodocs | ||
Modules = [SpinGlassPEPS] | ||
``` |
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