Skip to content

Commit 14ddbc2

Browse files
committed
Add docs badge and links
1 parent 2202df1 commit 14ddbc2

File tree

4 files changed

+49
-22
lines changed

4 files changed

+49
-22
lines changed

.github/workflows/documentation.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,36 @@ on:
44
push:
55
branches:
66
- main
7-
tags: '*'
7+
tags:
8+
- '*'
89
pull_request:
910

1011
jobs:
11-
build:
12+
docs:
1213
runs-on: ubuntu-latest
14+
1315
steps:
14-
- uses: actions/checkout@v2
15-
- uses: julia-actions/setup-julia@latest
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Julia
20+
uses: julia-actions/setup-julia@v2
1621
with:
17-
version: '1'
22+
version: '1.10'
23+
24+
- name: Cache Julia artifacts
25+
uses: julia-actions/cache@v2
26+
1827
- name: Install dependencies
19-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20-
- name: Build and deploy
28+
run: |
29+
julia --project=docs -e '
30+
using Pkg
31+
Pkg.develop(PackageSpec(path=pwd()))
32+
Pkg.instantiate()
33+
'
34+
35+
- name: Build and deploy documentation
2136
env:
2237
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
24-
run: julia --project=docs/ docs/make.jl
38+
run: |
39+
julia --project=docs docs/make.jl

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# Stereonet.jl
22

3+
# Stereonet.jl
4+
5+
[![Docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://ruzcategui.github.io/Stereonet.jl/)
6+
7+
A Julia package for plotting orientation data on stereonets using Makie.
8+
9+
310
Stereonet.jl is a plotting package for visualizing three-dimensional
411
orientation data on two-dimensional nets using Makie.
512

613
It provides methods to visualize planar, linear features, and
714
small circles on equal-angle (Wulff) and equal-area (Schmidt) nets,
8-
with support for arbitrary viewing directions.
15+
with support for arbitrary viewing directions.
16+
17+
📘 **Documentation**: https://ruzcategui.github.io/Stereonet.jl/

docs/src/guide_and_examples.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ CurrentModule = Stereonet
44

55
## User Guide
66

7-
### Installation
8-
9-
Stereonet is not yet registered in the General Julia registry.
10-
You can install it directly from GitHub:
11-
12-
```julia
13-
using Pkg
14-
15-
] add https://github.com/RUzcategui/Stereonet.jl
16-
```
17-
187
### Creating a Stereonet
198

209
Create a stereonet with default attributes:

docs/src/index.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ It provides methods to visualize planar, linear features, and
1010
small circles on equal-angle (Wulff) and equal-area (Schmidt) nets,
1111
with support for arbitrary viewing directions.
1212

13-
### Acknowledgements
13+
## Installation
14+
15+
16+
You can install Stereonet by typing the following in the Julia REPL:
17+
```julia
18+
] add Stereonet
19+
```
20+
21+
followed by
22+
```julia
23+
using Stereonet
24+
```
25+
to load the package.
26+
27+
## Acknowledgements
1428

1529
This package makes extensive use of Makie.jl, whose powerful and flexible visualization framework made this package possible. I would like to thank the developers and contributors of Makie for their outstanding work and for providing such a rich ecosystem for scientific visualization in Julia.

0 commit comments

Comments
 (0)