Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Documentation

on:
push:
branches:
- master
tags: '*'
pull_request:
merge_group:
types: [checks_requested]

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: write
pull-requests: read

jobs:
docs:
runs-on: ubuntu-latest

steps:
- name: Build and deploy Documenter.jl docs
uses: TuringLang/actions/DocsDocumenter@main
37 changes: 37 additions & 0 deletions .github/workflows/DocsNav.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rebuild docs with newest navbar

on:
# 3:25 AM UTC every Sunday -- choose an uncommon time to avoid
# periods of heavy GitHub Actions usage
schedule:
- cron: '25 3 * * 0'
# Whenever needed
workflow_dispatch:

permissions:
contents: write

jobs:
update-navbar:
runs-on: ubuntu-latest

steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Insert navbar
uses: TuringLang/actions/DocsNav@main
with:
doc-path: '.'

- name: Commit and push changes
run: |
if [[ -n $(git status -s) ]]; then
git add -A
git commit -m "Update navbar (automated)"
git push
else
echo "No changes to commit"
fi
30 changes: 0 additions & 30 deletions .github/workflows/documentation.yml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ using AdvancedMH
# cp(joinpath(@__DIR__, "../README.md"), joinpath(@__DIR__, "src/index.md"))

makedocs(sitename = "AdvancedMH", format = Documenter.HTML(), modules = [AdvancedMH], checkdocs = :exports)

deploydocs(
repo = "github.com/TuringLang/AdvancedMH.jl.git",
push_preview = true, # allow PR to deploy
)
Loading