-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Pelican to generate the site and blog
- This PR doesn't change the look and feel of the site at all. It just changes how it is built. - Use Pelican with a custom theme - publishers.html -> publishers/, advertisers.html -> advertisers/ - Still uses GitHub actions to generate and deploy the site - Blog isn't enabled yet but can be enabled by uncommenting a line in `pelicanconf.py`
- Loading branch information
1 parent
119a8bd
commit 2e29b8f
Showing
44 changed files
with
4,160 additions
and
1,052 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,19 +7,41 @@ on: | |
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Build static assets | ||
run: | | ||
npm install | ||
npm run dist | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: pelican-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
pelican- | ||
- name: Install Pelican | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Run Pelican | ||
id: run-pelican | ||
run: | | ||
pelican content --output docs --settings publishconf.py | ||
- name: Install SSH Client | ||
uses: webfactory/[email protected] # This step installs the ssh client into the workflow run. There's many options available for this on the action marketplace. | ||
with: | ||
|
@@ -30,6 +52,6 @@ jobs: | |
with: | ||
BASE_BRANCH: master | ||
BRANCH: gh-pages | ||
FOLDER: www | ||
FOLDER: output | ||
CLEAN: true | ||
SSH: true # SSH must be set to true so the deploy action knows which protocol to deploy with. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,4 @@ docs/build/* | |
node_modules | ||
|
||
# Specific to ethicalads.io | ||
www/bundle | ||
output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
exclude: 'ethicalads-theme/.*$' | ||
- id: trailing-whitespace | ||
exclude: 'ethicalads-theme/.*$' | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
# Since the pre-commit runs on a file by file basis rather than a whole project, | ||
# The excludes in pyproject.toml are ignored | ||
exclude: migrations | ||
language_version: python3 | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v1.3.2 | ||
hooks: | ||
- id: reorder-python-imports | ||
language_version: python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Title: Advertisers | ||
description: Reach a millions of engaged developers with relevant advertising that respects their privacy. Whether you are recruiting talent or promoting your products, EthicalAds is the best channel to reach your target audience. | ||
template: ea/advertisers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Title: Whoops - there was a problem reaching us | ||
Slug: contact-error | ||
description: There was a problem reaching us so please email us directly | ||
status: hidden | ||
|
||
Our email system couldn't process your note to us. Please email us at [email protected] and we'll get back to you as soon as we can. | ||
|
||
[Learn more about EthicalAds](/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Title: We got your message | ||
Slug: contact-success | ||
description: We got your message and we'll get back to you as soon as we can. | ||
status: hidden | ||
|
||
Thanks for contacting us and we'll get back to you as soon as we can. | ||
|
||
[Learn more about EthicalAds](/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Title: Home page | ||
save_as: index.html | ||
template: ea/homepage | ||
status: hidden | ||
description: EthicalAds: A developer-focused, privacy-obsessed ad network from the fine folks at Read the Docs |
Oops, something went wrong.