Skip to content

Commit e608c0b

Browse files
Merge branch 'main' into fix-http-links
2 parents 26be9be + 02e1ce2 commit e608c0b

File tree

6 files changed

+26
-3
lines changed

6 files changed

+26
-3
lines changed

pydis_site/apps/content/resources/guides/pydis-guides/contributing/sir-lancebot.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ toc: 1
1616
- [MacOS Installer](https://git-scm.com/download/mac) or `brew install git`
1717
- [Linux](https://git-scm.com/download/linux)
1818

19+
## Using Gitpod
20+
Sir Lancebot can be edited and tested on Gitpod. Gitpod will automatically install the correct dependencies and Python version, so you can get straight to coding.
21+
To do this, you will need a Gitpod account, which you can get [here](https://www.gitpod.io/#get-started), and a fork of Sir Lancebot. This guide covers forking the repository [here](#fork-the-project). Afterwards, either click the button on Sir Lancebot's README or go to [https://gitpod.io/#/python-discord/sir-lancebot]() and run the following commands in the terminal:
22+
```sh
23+
git remote rename origin upstream
24+
git add remote origin https://github.com/{your_username}/sir-lancebot
25+
```
26+
Make sure you replace `{your_username}` with your Github username. These commands will set Python Discord as the parent repository, and your branch as the fork. This means you can easily grab new changes from the parent repository. Once you set your environment variables to test your code, you are ready to begin contributing to Sir Lancebot.
27+
1928
## Using Docker
2029
Sir Lancebot can be started using Docker. Using Docker is generally recommended (but not strictly required) because it abstracts away some additional set up work.
2130

pydis_site/hosts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
# Internal API ingress (cluster local)
1010
host(r'pydis-api', 'pydis_site.apps.api.urls', name='internal_api'),
1111
host(r'staff', 'pydis_site.apps.staff.urls', name='staff'),
12-
host(r'.*', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST)
12+
host(r'www', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST),
13+
host(r'.*', 'pydis_site.apps.home.urls', name="fallback")
1314
)

pydis_site/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
ALLOWED_HOSTS = env.list(
5656
'ALLOWED_HOSTS',
5757
default=[
58+
'www.pythondiscord.com',
5859
'pythondiscord.com',
5960
'admin.pythondiscord.com',
6061
'api.pythondiscord.com',

pydis_site/static/css/home/index.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,20 @@ h1 {
215215
}
216216

217217
#sponsors .columns {
218+
display: block;
218219
justify-content: center;
219220
margin: auto;
220221
max-width: 80%;
221222
}
222223

224+
#sponsors a {
225+
margin: auto;
226+
display: inline-block;
227+
}
228+
223229
#sponsors img {
224-
height: 5rem;
225-
margin: auto 1rem;
230+
width: auto;
231+
height: auto;
232+
233+
max-height: 5rem;
226234
}
173 KB
Loading

pydis_site/templates/home/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ <h1 class="title is-6 has-text-grey">
187187
</a>
188188
<a href="https://streamyard.com" class="column is-narrow">
189189
<img src="{% static "images/sponsors/streamyard.png" %}" alt="StreamYard"/>
190+
</a>
191+
<a href="https://www.netlify.com/" class="column is-narrow">
192+
<img src="{% static "images/sponsors/netlify.png" %}" alt="Netlify"/>
193+
</a>
190194
<a href="https://www.cloudflare.com/" class="column is-narrow">
191195
<img src="{% static "images/sponsors/cloudflare.png" %}" alt="Cloudflare"/>
192196
</a>

0 commit comments

Comments
 (0)