Skip to content

Commit 425c3ed

Browse files
committed
various ci + docs edits
1 parent 5b7cfe8 commit 425c3ed

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed

.github/workflows/documentation.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,34 @@ name: Documentation
33
on:
44
push:
55
branches:
6-
- main # update to match your development branch (master, main, dev, trunk, ...)
6+
- dev # update to match your development branch (master, main, dev, trunk, ...)
77
tags: '*'
88
pull_request:
99

1010
jobs:
1111
build:
12+
# These permissions are needed to:
13+
# - Deploy the documentation: https://documenter.juliadocs.org/stable/man/hosting/#Permissions
14+
# - Delete old caches: https://github.com/julia-actions/cache#usage
1215
permissions:
16+
actions: write
1317
contents: write
18+
pull-requests: read
19+
statuses: write
1420
runs-on: ubuntu-latest
1521
steps:
16-
- uses: actions/checkout@v2
17-
- uses: julia-actions/setup-julia@v1
22+
- uses: actions/checkout@v4
23+
- uses: julia-actions/setup-julia@v2
1824
with:
19-
version: '1.8'
25+
version: '1'
26+
- uses: julia-actions/cache@v2
2027
- name: Install dependencies
21-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
28+
shell: julia --color=yes --project=docs {0}
29+
run: |
30+
using Pkg
31+
Pkg.develop(PackageSpec(path=pwd()))
32+
Pkg.instantiate()
2233
- name: Build and deploy
34+
run: julia --color=yes --project=docs docs/make.jl
2335
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
2536
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
26-
run: julia --project=docs/ docs/make.jl

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
Manifest.toml
33
.DS_Store
44
*.cov
5+
docs/build/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TensorRenormalizationGroups.jl
22

3-
A Julia package for performing contractions of infinite two-dimensional tensor networks based on [TensorKit.jl](https://github.com/Jutho/TensorKit.jl).
3+
*A Julia package implementing various two-dimensional tensor renormalization group-like algorithms in an application agnostic way under a single interface. Based on [TensorKit.jl](https://github.com/Jutho/TensorKit.jl).*
44

5-
> This is alpha software and is currently incomplete.
5+
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://jack-dunham.github.io/TensorRenormalizationGroups.jl/dev)

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
4+
TensorRenormalizationGroups = "742c4823-a45f-4b1c-bad3-1a5bdcda2a0b"

docs/make.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
push!(LOAD_PATH, "../src/")
2-
31
using Documenter
42
using TensorRenormalizationGroups
53

64
makedocs(
7-
sitename = "TensorRenormalizationGroups.jl",
8-
authors = "Jack Dunham",
9-
pages = [
5+
sitename="TensorRenormalizationGroups.jl",
6+
authors="Jack Dunham",
7+
pages=[
108
"Home" => "index.md",
119
"Library" => "library.md",
1210
"Index" => "_index.md"
1311
]
1412
)
1513

1614
deploydocs(
17-
repo = "github.com/jack-dunham/TensorRenormalizationGroups.jl.git",
15+
repo="github.com/jack-dunham/TensorRenormalizationGroups.jl.git",
16+
devbranch="dev",
1817
)

0 commit comments

Comments
 (0)