Skip to content

Commit

Permalink
site: generate site using Makefile redux
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Apr 9, 2024
1 parent 77e41a7 commit f94de4f
Show file tree
Hide file tree
Showing 218 changed files with 318 additions and 10,890 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,6 @@ jobs:
- run: |
make all
- uses: actions/upload-artifact@v4
with:
name: site
path: |
${{ github.workspace }}
!.git/
!.github/
create-pr:
runs-on: macos-latest
needs: generate
steps:
- uses: actions/checkout@v4

- run: |
rm -r \
_data \
api \
formula
- uses: actions/download-artifact@v4
with:
name: site

- uses: coatl-dev/actions/simple-git-diff@v3
id: git-diff

Expand Down
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TAP := coatl-dev/coatl-dev

all: tap core cleanup
all: init tap core cleanup

cleanup:
@echo "Cleaning up temporary files..."
Expand All @@ -20,6 +20,18 @@ help:
@echo " cleanup: Remove intermediate files."
@echo " help: Display this help message."

init:
@echo "Preparing _data..."
@rm -f _data/*.json
@rm -f _data/formula/*.json
@rm -f _data/formula-core/*.json
@echo "Preparing api..."
@rm -f api/formula/*.json
@rm -f api/formula-core/*.json
@echo "Preparing tap formulae..."
@rm -f formula/*.html
@rm -f formula-core/*.html

tap:
@echo "Generating formulae data for $(TAP)..."
@./script/generate-tap.sh $(TAP)
14 changes: 7 additions & 7 deletions _data/formula-core/autoconf.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"used_options": [],
"built_as_bottle": true,
"poured_from_bottle": true,
"time": 1712444481,
"time": 1712440705,
"runtime_dependencies": [
{
"full_name": "m4",
Expand Down Expand Up @@ -135,29 +135,29 @@
"analytics": {
"install": {
"30d": {
"autoconf": 95052,
"autoconf": 95056,
"autoconf --HEAD": 34
},
"90d": {
"autoconf": 286125,
"autoconf": 286101,
"autoconf --HEAD": 110
},
"365d": {
"autoconf": 617175,
"autoconf": 617201,
"autoconf --HEAD": 243
}
},
"install_on_request": {
"30d": {
"autoconf": 17687,
"autoconf": 17691,
"autoconf --HEAD": 34
},
"90d": {
"autoconf": 61208,
"autoconf": 61203,
"autoconf --HEAD": 109
},
"365d": {
"autoconf": 141739,
"autoconf": 141743,
"autoconf --HEAD": 239
}
},
Expand Down
168 changes: 0 additions & 168 deletions _data/formula-core/[email protected]

This file was deleted.

Loading

0 comments on commit f94de4f

Please sign in to comment.