-
Notifications
You must be signed in to change notification settings - Fork 16
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 #111 from albertomercurio/dev/patch-2
Format Documents
- Loading branch information
Showing
42 changed files
with
2,495 additions
and
1,577 deletions.
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,8 @@ | ||
margin=120 | ||
always_for_in=true | ||
remove_extra_newlines=true | ||
long_to_short_function_def=true | ||
always_use_return=true | ||
format_docstrings=true | ||
indent_submodule=true | ||
format_markdown=true |
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,31 @@ | ||
name: JuliaFormatter PR | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/cache@v1 | ||
- name: Install JuliaFormatter and format | ||
run: | | ||
julia -e 'import Pkg; Pkg.add("JuliaFormatter")' | ||
julia -e 'using JuliaFormatter; format(".")' | ||
# https://github.com/marketplace/actions/create-pull-request | ||
# https://github.com/peter-evans/create-pull-request#reference-example | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Format .jl files | ||
title: 'Automatic JuliaFormatter.jl run' | ||
branch: auto-juliaformatter-pr | ||
delete-branch: true | ||
labels: formatting, automated pr, no changelog | ||
- name: Check outputs | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
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
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
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,43 +1,38 @@ | ||
using QuantumToolbox | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(QuantumToolbox, :DocTestSetup, :(using QuantumToolbox); recursive=true) | ||
DocMeta.setdocmeta!(QuantumToolbox, :DocTestSetup, :(using QuantumToolbox); recursive = true) | ||
|
||
makedocs(; | ||
modules=[QuantumToolbox], | ||
authors="Alberto Mercurio", | ||
modules = [QuantumToolbox], | ||
authors = "Alberto Mercurio", | ||
repo = Remotes.GitHub("albertomercurio", "QuantumToolbox.jl"), | ||
sitename="QuantumToolbox.jl", | ||
format=Documenter.HTML(; | ||
prettyurls=get(ENV, "CI", "false") == "true", | ||
canonical="https://albertomercurio.github.io/QuantumToolbox.jl", | ||
edit_link="main", | ||
assets=[ | ||
"assets/favicon.ico" | ||
], | ||
mathengine = MathJax3(Dict( | ||
:loader => Dict("load" => ["[tex]/physics"]), | ||
:tex => Dict( | ||
"inlineMath" => [["\$","\$"], ["\\(","\\)"]], | ||
"tags" => "ams", | ||
"packages" => ["base", "ams", "autoload", "physics"], | ||
sitename = "QuantumToolbox.jl", | ||
format = Documenter.HTML(; | ||
prettyurls = get(ENV, "CI", "false") == "true", | ||
canonical = "https://albertomercurio.github.io/QuantumToolbox.jl", | ||
edit_link = "main", | ||
assets = String[], | ||
mathengine = MathJax3( | ||
Dict( | ||
:loader => Dict("load" => ["[tex]/physics"]), | ||
:tex => Dict( | ||
"inlineMath" => [["\$", "\$"], ["\\(", "\\)"]], | ||
"tags" => "ams", | ||
"packages" => ["base", "ams", "autoload", "physics"], | ||
), | ||
), | ||
)), | ||
), | ||
), | ||
pages=[ | ||
pages = [ | ||
"index.md", | ||
"api.md", | ||
"Tutorials" => [ | ||
"Creation of the QuantulToolbox.jl logo" => "tutorials/logo.md", | ||
"Low Rank Master Equation" => "tutorials/lowrank.md", | ||
], | ||
"Benchmarks" => [ | ||
"Benchmark History" => "benchmarks/benchmark_history.md", | ||
] | ||
"Benchmarks" => ["Benchmark History" => "benchmarks/benchmark_history.md"], | ||
], | ||
) | ||
|
||
deploydocs(; | ||
repo="github.com/albertomercurio/QuantumToolbox.jl", | ||
devbranch="main", | ||
) | ||
deploydocs(; repo = "github.com/albertomercurio/QuantumToolbox.jl", devbranch = "main") |
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
Oops, something went wrong.