Skip to content

Commit eeef0ea

Browse files
committed
WIP: move docs target to a Makefile inside 'docs'
1 parent c9a750f commit eeef0ea

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.github/workflows/build+test+deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- name: Restore dependencies
115115
run: dotnet restore
116116
- name: Run Fornax
117-
run: make docs
117+
run: make --directory=docs
118118
- name: Deploy (if tag)
119119
if: startsWith(github.ref, 'refs/tags/')
120120
uses: peaceiris/actions-gh-pages@v3

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ FodyWeavers.xsd
405405
tmp/
406406
temp/
407407
.fsdocs
408-
docs/
408+
docs/*
409+
!docs/Makefile
409410

410411
# ===================================================
411412
# OS files

Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,3 @@ check:
77

88
selfcheck:
99
dotnet fsi build.fsx --target SelfCheck
10-
11-
# add docs to .PHONY target because docs directory already exists and Make considers it "up to date" and skips execution.
12-
.PHONY: docs
13-
docs:
14-
dotnet fsi build.fsx --target Docs
15-

docs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
all:
2+
dotnet fsi build.fsx --target Docs

0 commit comments

Comments
 (0)