Skip to content

Commit f43d51f

Browse files
authored
Improve CI (#21)
* Improve CI * Rm deps * Rm deps for real * No deps at all * Fix URL * Simpler makedocs
1 parent 24b795c commit f43d51f

File tree

6 files changed

+46
-11
lines changed

6 files changed

+46
-11
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Doc Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
doc-preview-cleanup:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- name: Checkout gh-pages branch
14+
uses: actions/checkout@v3
15+
with:
16+
ref: gh-pages
17+
- name: Delete preview and history + push changes
18+
run: |
19+
if [ -d "previews/PR$PRNUM" ]; then
20+
git config user.name "Documenter.jl"
21+
git config user.email "documenter@juliadocs.github.io"
22+
git rm -rf "previews/PR$PRNUM"
23+
git commit -m "delete preview"
24+
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
25+
git push --force origin gh-pages-new:gh-pages
26+
fi
27+
env:
28+
PRNUM: ${{ github.event.number }}

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# GraphsBase
22

3-
<!-- [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaGraphs.github.io/GraphsBase.jl/stable/) -->
43
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaGraphs.github.io/GraphsBase.jl/dev/)
54
[![Build Status](https://github.com/JuliaGraphs/GraphsBase.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/JuliaGraphs/GraphsBase.jl/actions/workflows/CI.yml?query=branch%3Amain)
65
[![Coverage](https://codecov.io/gh/JuliaGraphs/GraphsBase.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaGraphs/GraphsBase.jl)
76
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
87
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
9-
<!-- [![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
10-
[![PkgEval](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/G/GraphsBase.svg)](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/report.html) -->
118

129
Basic interface and structures for the JuliaGraphs ecosystem
1310

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
GraphsBase = "ad2ac648-372e-45be-9d57-a550431b71c3"
4+
5+
[compat]
6+
Documenter = "1"

docs/make.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ DocMeta.setdocmeta!(GraphsBase, :DocTestSetup, :(using GraphsBase); recursive=tr
66
makedocs(;
77
modules=[GraphsBase],
88
authors="JuliaGraphs contributors",
9-
repo="https://github.com/JuliaGraphs/GraphsBase.jl/blob/{commit}{path}#{line}",
109
sitename="GraphsBase.jl",
1110
format=Documenter.HTML(;
1211
prettyurls=get(ENV, "CI", "false") == "true",
13-
canonical="https://JuliaGraphs.github.io/GraphsBase.jl",
14-
edit_link="main",
12+
canonical="https://juliagraphs.org/GraphsBase.jl",
1513
assets=String[],
1614
),
1715
pages=["Home" => "index.md"],
1816
)
1917

20-
deploydocs(; repo="github.com/JuliaGraphs/GraphsBase.jl", devbranch="main")
18+
deploydocs(;
19+
repo="github.com/JuliaGraphs/GraphsBase.jl", devbranch="main", push_preview=true
20+
)

docs/src/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ CurrentModule = GraphsBase
66

77
Documentation for [GraphsBase](https://github.com/JuliaGraphs/GraphsBase.jl).
88

9-
```@index
10-
```
9+
## API reference
1110

1211
```@autodocs
1312
Modules = [GraphsBase]
1413
```
14+
15+
## Index
16+
17+
```@index
18+
```

src/GraphsBase.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
module GraphsBase
1+
"""
2+
GraphsBase
23
3-
# Write your package code here.
4+
The basic interface and graph types for the JuliaGraphs ecosystem.
5+
"""
6+
module GraphsBase
47

58
end

0 commit comments

Comments
 (0)