Skip to content

Commit 3d72aa5

Browse files
committed
Update deps, add github action, final make_tutorials
1 parent d94d74e commit 3d72aa5

5 files changed

Lines changed: 387 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Doc Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
# Ensure that only one "Doc Preview Cleanup" workflow is force pushing at a time
8+
concurrency:
9+
group: doc-preview-cleanup
10+
cancel-in-progress: false
11+
12+
jobs:
13+
doc-preview-cleanup:
14+
runs-on: ubuntu-latest
15+
# This workflow pushes to gh-pages; permissions are per-job and independent of docs.yml
16+
permissions:
17+
contents: write
18+
steps:
19+
- name: Checkout gh-pages branch
20+
uses: actions/checkout@v4
21+
with:
22+
ref: gh-pages
23+
- name: Delete preview and history + push changes
24+
run: |
25+
if [ -d "${preview_dir}" ]; then
26+
git config user.name "Documenter.jl"
27+
git config user.email "documenter@juliadocs.github.io"
28+
git rm -rf "${preview_dir}"
29+
git commit -m "delete preview"
30+
git branch gh-pages-new "$(echo "delete history" | git commit-tree "HEAD^{tree}")"
31+
git push --force origin gh-pages-new:gh-pages
32+
fi
33+
env:
34+
preview_dir: previews/PR${{ github.event.number }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ deps/src/
1919
docs/build/
2020
docs/site/
2121

22+
## Autogenerated code during the documentation process
23+
generated*.md
24+
2225
#Jupyter Ignores
2326
.ipynb_checkpoints/
2427
.ipynb_checkpoints

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
[deps]
2+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
23
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
34
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
45
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"
6+
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
57
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
68
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
79
PowerFlows = "94fada2c-fd9a-4e89-8d82-81405f5cb4f6"
810
PowerNetworkMatrices = "bed98974-b02a-5e2f-9fe0-a103f5c450dd"
911
PowerSimulationsDynamics = "398b2ede-47ed-4edc-b52e-69e4a48b4336"
1012
PowerSystemCaseBuilder = "f00506e0-b84f-492a-93c2-c0a9afc4364e"
1113
PowerSystems = "bcd98974-b02a-5e2f-9ee0-a103f5c450dd"
14+
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
1215
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
1316
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
1417

docs/make.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
using Documenter, PowerSystems, DocStringExtensions, PowerSimulationsDynamics
2+
using Literate
3+
4+
# UPDATE FOR CURRENT MODULE NAME HERE
5+
const _DOCS_BASE_URL = "https://nrel-sienna.github.io/PowerSimulationsDynamics.jl/stable"
6+
7+
include(joinpath(@__DIR__, "make_tutorials.jl"))
8+
make_tutorials()
29

310
makedocs(;
411
modules = [PowerSimulationsDynamics],

0 commit comments

Comments
 (0)