mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-23 19:31:14 +08:00
e8433b7fe6
- **Installation**: includes how to install Gitea and related other tools, also includes upgrade Gitea - **Administration**: includes how to configure Gitea, customize Gitea and manage Gitea instance out of Gitea admin UI - **Usage**: includes how to use Gitea's functionalities. A sub documentation is about packages, in future we could also include CI/CD and others. - **Development**: includes how to integrate with Gitea's API, how to develop new features within Gitea - **Contributing**: includes how to contribute code to Gitea repositories. After this is merged, I think we can have a sub-documentation of `Usage` part named `Actions` to describe how to use Gitea actions --------- Co-authored-by: John Olheiser <john.olheiser@gmail.com>
37 lines
681 B
Makefile
37 lines
681 B
Makefile
THEME := themes/gitea
|
|
PUBLIC := public
|
|
ARCHIVE := https://dl.gitea.com/theme/main.tar.gz
|
|
|
|
HUGO_PACKAGE := github.com/gohugoio/hugo@v0.111.3
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(PUBLIC) $(THEME)
|
|
|
|
.PHONY: trans-copy
|
|
trans-copy:
|
|
bash scripts/trans-copy.sh
|
|
|
|
.PHONY: server
|
|
server: $(THEME)
|
|
go run $(HUGO_PACKAGE) server
|
|
|
|
.PHONY: build
|
|
build: $(THEME)
|
|
go run $(HUGO_PACKAGE) --cleanDestinationDir
|
|
|
|
.PHONY: build-offline
|
|
build-offline: $(THEME)
|
|
go run $(HUGO_PACKAGE) --baseURL="/" --cleanDestinationDir
|
|
|
|
.PHONY: update
|
|
update: $(THEME)
|
|
|
|
$(THEME): $(THEME)/theme.toml
|
|
$(THEME)/theme.toml:
|
|
mkdir -p $$(dirname $@)
|
|
curl -L -s $(ARCHIVE) | tar xz -C $$(dirname $@)
|