Skip to content

Commit

Permalink
chore(docs): don't forget Makefile (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Oct 2, 2024
1 parent f627023 commit 78c8bed
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy docs to GitHub Pages

on:
pull_request:
push:
branches: [main]

Expand All @@ -25,6 +26,7 @@ jobs:
run: make docs

- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
MAKEFILE_DIR := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))

FALDIR = $(MAKEFILE_DIR)/projects/fal
FALCLIENTDIR = $(MAKEFILE_DIR)/projects/fal_client

.PHONY: docs

docs:
$(MAKE) -C $(FALDIR) docs
$(MAKE) -C $(FALCLIENTDIR) docs
rm -rf docs
mkdir -p docs/_build/html
mkdir -p docs/_build/html/fal_sdk
mkdir -p docs/_build/html/fal_client
cp -a $(FALDIR)/docs/_build/html docs/_build/html/fal_sdk
cp -a $(FALCLIENTDIR)/docs/_build/html docs/_build/html/fal_client

0 comments on commit 78c8bed

Please sign in to comment.