loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add `deps-docs` command to makefile (#23686)

Refactored `deps-docs` out of `docs` because #23629 broke Gitpod's docs
setup (which grepped to get the hugo install command).

Now `make deps` really installs everything to develop (includes `docs`).

authored by

Yarden Shoham and committed by
GitHub
aa3c6736 d673a6f8

+13 -6
+5 -2
.gitpod.yml
··· 24 24 make watch-frontend 25 25 openMode: split-right 26 26 - name: Run docs 27 - before: sudo bash -c "$(grep 'https://github.com/gohugoio/hugo/releases/download' Makefile | tr -d '\')" # install hugo 28 - command: cd docs && make clean update && hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 27 + command: | 28 + gp sync-await setup 29 + cd docs 30 + make clean update 31 + hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 29 32 openMode: split-right 30 33 31 34 vscode:
+8 -4
Makefile
··· 189 189 @echo " - clean delete backend and integration files" 190 190 @echo " - clean-all delete backend, frontend and integration files" 191 191 @echo " - deps install dependencies" 192 + @echo " - deps-docs install docs dependencies" 192 193 @echo " - deps-frontend install frontend dependencies" 193 194 @echo " - deps-backend install backend dependencies" 194 195 @echo " - deps-tools install tool dependencies" ··· 816 817 tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs/public . 817 818 818 819 .PHONY: docs 819 - docs: 820 + docs: deps-docs 821 + cd docs; make trans-copy clean build-offline; 822 + 823 + .PHONY: deps-docs 824 + deps-docs: 820 825 @hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ 821 - curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mv /tmp/hugo /usr/bin/hugo && chmod +x /usr/bin/hugo; \ 826 + curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mv /tmp/hugo ~/go/bin/hugo && chmod +x ~/go/bin/hugo; \ 822 827 fi 823 - cd docs; make trans-copy clean build-offline; 824 828 825 829 .PHONY: deps 826 - deps: deps-frontend deps-backend deps-tools 830 + deps: deps-frontend deps-backend deps-tools deps-docs 827 831 828 832 .PHONY: deps-frontend 829 833 deps-frontend: node_modules