Skip to content

Commit f879906

Browse files
Deploy via netlify (#180)
1 parent 4d0683f commit f879906

3 files changed

Lines changed: 8 additions & 89 deletions

File tree

Makefile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help prepare html serve serve-dev clean github calendars teams teams-clean
1+
.PHONY: help prepare html serve serve-dev clean calendars teams teams-clean
22
.DEFAULT_GOAL := help
33
SHELL:=/bin/bash
44

@@ -12,7 +12,6 @@ help: ## show this help
1212
prepare:
1313
git submodule update --init
1414

15-
1615
CALENDAR_DIR = content/calendars
1716

1817
$(CALENDAR_DIR):
@@ -44,8 +43,6 @@ teams: | teams-clean $(patsubst %,$(TEAMS_DIR)/%.md,$(TEAMS)) ## generates team
4443

4544
html: prepare calendars ## build the website in ./public
4645
@hugo
47-
@touch public/.nojekyll
48-
@echo "scientific-python.org" > public/CNAME
4946

5047
serve: prepare calendars ## serve the website
5148
@hugo --i18n-warnings server
@@ -55,12 +52,3 @@ serve-dev: prepare calendars
5552

5653
clean:
5754
rm -rf public content/calendars/*.ics
58-
59-
github: | clean html
60-
./push_dir_to_repo.py \
61-
--branch main \
62-
--email sprintbot@sprintbot \
63-
--committer "sprintbot" \
64-
--message "Update website" \
65-
--force \
66-
./public git@github.com:scientific-python/scientific-python.org-deployed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# scientific-python.org
22

3+
The scientific-python.org website is built using
4+
[scientific-python-hugo-theme](https://github.com/scientific-python/scientific-python-hugo-theme)
5+
and [Hugo](https://gohugo.io).
6+
7+
It is deployed via [Netlify](https://www.netlify.com/) when commits changes are made to the `main` branch.
8+
39
## Installing Hugo
410

5-
This site is built using Hugo. Please download the latest binary from
11+
Please download the latest binary from
612

713
https://github.com/gohugoio/hugo/releases
814

915
and place it somewhere on your path.
1016

1117
## Building the website
1218

13-
Before building, you will need the site theme:
14-
15-
```
16-
git submodule update --init
17-
```
18-
1919
For development, start the development server using
2020

2121
```
@@ -24,8 +24,6 @@ make serve-dev
2424

2525
and browse to http://localhost:1313.
2626

27-
To deploy to https://scientific-python.org, run `make github`.
28-
2927
## Rebuilding teams
3028

3129
Create a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)

push_dir_to_repo.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)