Skip to content

Commit 01cb039

Browse files
authored
Merge pull request #30 from ZenanH/main
🎉 Release new version v0.4.1
2 parents dfb69f8 + 563854d commit 01cb039

33 files changed

Lines changed: 1039 additions & 276 deletions
Lines changed: 81 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,93 @@
1+
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2+
#
13
name: Documentation
24

35
on:
6+
# Runs on pushes targeting the `master` branch. Change this to `main` if you're
7+
# using the `main` branch as the default branch.
48
push:
59
branches:
6-
- main # update to match your development branch (master, main, dev, trunk, ...)
7-
tags: '*'
10+
- main
11+
tags: ['*']
812
pull_request:
913

14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: write
20+
pages: write
21+
id-token: write
22+
statuses: write
23+
24+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
25+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
26+
concurrency:
27+
group: pages
28+
cancel-in-progress: false
29+
1030
jobs:
31+
# Build job
1132
build:
12-
permissions:
13-
actions: write
14-
contents: write
15-
pull-requests: read
16-
statuses: write
1733
runs-on: ubuntu-latest
1834
steps:
19-
- uses: actions/checkout@v4
20-
- uses: julia-actions/setup-julia@v2
21-
with:
22-
version: '1'
23-
- uses: julia-actions/cache@v2
24-
- name: Install dependencies
25-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
26-
- name: Build and deploy
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
- name: Setup Julia
38+
uses: julia-actions/setup-julia@v2
39+
- name: Pull Julia cache
40+
uses: julia-actions/cache@v2
41+
- name: Install documentation dependencies
42+
run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()'
43+
#- name: Creating new mds from src
44+
- name: Build and deploy docs
45+
uses: julia-actions/julia-docdeploy@v1
2746
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
29-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
30-
run: julia --project=docs/ docs/make.jl
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
48+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
49+
GKSwstype: "100" # for Plots.jl plots (if you have them)
50+
JULIA_DEBUG: "Documenter"
51+
DATADEPS_ALWAYS_ACCEPT: true
52+
53+
54+
55+
56+
57+
58+
59+
60+
#------------------------------------------------------------------------------------------#
61+
# This is a workflow for Documenter.jl CI file #
62+
#------------------------------------------------------------------------------------------#
63+
# name: Documentation
64+
65+
# on:
66+
# push:
67+
# branches:
68+
# - main # update to match your development branch (master, main, dev, trunk, ...)
69+
# tags: '*'
70+
# pull_request:
71+
72+
# jobs:
73+
# build:
74+
# permissions:
75+
# actions: write
76+
# contents: write
77+
# pull-requests: read
78+
# statuses: write
79+
# runs-on: ubuntu-latest
80+
# steps:
81+
# - uses: actions/checkout@v4
82+
# - uses: julia-actions/setup-julia@v2
83+
# with:
84+
# version: '1'
85+
# - uses: julia-actions/cache@v2
86+
# - name: Install dependencies
87+
# run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
88+
# - name: Build and deploy
89+
# env:
90+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
91+
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
92+
# run: julia --project=docs/ docs/make.jl
93+
#------------------------------------------------------------------------------------------#

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MaterialPointSolver"
22
uuid = "dc4aa359-7d89-437d-91bb-f4b330c522c1"
33
authors = ["Zenan Huo <zenan.huo@outlook.com>"]
4-
version = "0.4.0"
4+
version = "0.4.1"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/LandslideSIM/MaterialPointSolver.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/LandslideSIM/MaterialPointSolver.jl/actions/workflows/ci.yml)
44
[![](https://img.shields.io/badge/docs-stable-blue.svg?logo=quicklook)](https://landslidesim.github.io/MaterialPointSolver.jl/stable/)
5-
[![](https://img.shields.io/badge/version-v0.4.0-pink)]()
5+
[![](https://img.shields.io/badge/version-v0.4.1-pink)]()
66

77
[![](https://img.shields.io/badge/NVIDIA-CUDA-green.svg?logo=nvidia)](https://developer.nvidia.com/cuda-toolkit)
88
[![](https://img.shields.io/badge/AMD-ROCm-red.svg?logo=amd)](https://www.amd.com/en/products/software/rocm.html)
@@ -64,7 +64,7 @@ julia> ]
6464
- ✅ one-click switch between `FP64` and `FP32`
6565
- ✅ user-defined algorithms/extensions at any level
6666

67-
## Citation
67+
## Citation 🔥
6868

6969
If you find `MaterialPointSolver.jl` useful or have used it in your research, please cite it as follows:
7070

docs/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build/
2+
node_modules/
3+
package-lock.json
4+
Manifest.toml

docs/Project.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3-
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"
3+
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
4+
MaterialPointSolver = "dc4aa359-7d89-437d-91bb-f4b330c522c1"
5+
6+
[sources]
7+
MaterialPointSolver = {path = ".."}
48

59
[compat]
6-
Documenter = "1.7"
7-
DocumenterTools = "0.1"
10+
Documenter = "1.8"
11+
DocumenterVitepress = "0.1"

docs/assets/logo_src/favicon.ico

4.19 KB
Binary file not shown.

docs/assets/logo_src/logo.png

61.1 KB
Loading

docs/make.jl

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
using Documenter, DocumenterTools, MaterialPointSolver
1+
using Documenter, DocumenterVitepress, MaterialPointSolver
22

33
makedocs(
44
modules = [MaterialPointSolver],
5-
format = Documenter.HTML(
6-
assets = ["assets/favicon.ico"],
7-
prettyurls = true
5+
format = DocumenterVitepress.MarkdownVitepress(
6+
repo = "github.com/LandslideSIM/MaterialPointSolver.jl",
7+
devbranch = "main",
8+
devurl = "dev"
89
),
9-
clean = false,
1010
sitename = "MaterialPointSolver.jl",
1111
authors = "Zenan Huo",
1212
pages = [
1313
"Home" => "index.md",
14+
"Introduction" => Any[
15+
"introduction/getstarted.md",
16+
"introduction/why.md",
17+
"introduction/ecosystem.md",
18+
"introduction/tips.md",
19+
],
1420
"Interface" => Any[
1521
"interface/structs.md",
1622
"interface/backendagnostic.md",
@@ -32,14 +38,16 @@ makedocs(
3238
"advancedtopics/customextension.md",
3339
"advancedtopics/customfriction.md"
3440
],
35-
"utils.md"
41+
"utils.md",
42+
"showcases.md"
3643
],
3744
warnonly = [:missing_docs, :cross_references],
3845
)
3946

4047
deploydocs(
41-
repo = "github.com/LandslideSIM/MaterialPointSolver.jl.git",
48+
repo = "github.com/LandslideSIM/MaterialPointSolver.jl",
4249
target = "build",
50+
devbranch = "main",
4351
branch = "gh-pages",
44-
versions=["stable" => "v^", "dev" => "dev"]
52+
push_preview = true,
4553
)

docs/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"scripts": {
3+
"docs:dev": "vitepress dev build/.documenter",
4+
"docs:build": "vitepress build build/.documenter",
5+
"docs:preview": "vitepress preview build/.documenter"
6+
},
7+
"dependencies": {
8+
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.14.0",
9+
"markdown-it": "^14.1.0",
10+
"markdown-it-footnote": "^4.0.0",
11+
"markdown-it-mathjax3": "^4.3.2",
12+
"vitepress": "^1.6.3",
13+
"vitepress-plugin-tabs": "^0.6.0"
14+
}
15+
}

0 commit comments

Comments
 (0)