Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/html-proofer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Install jekyll site dependencies.
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.3
ruby-version: 3.3.4
bundler-cache: true

- uses: c-hive/gha-npm-cache@v1
- uses: actions/setup-node@v4

- name: Install proofer dependencies.
run: npm install
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
env:
PR_NUMBER: ${{ github.event.number }}



# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -26,20 +28,29 @@ jobs:

- run: echo "PREVIEW_PATH=pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"

- name: Set Repo Name
run: |
REPO_NAME="${GITHUB_REPOSITORY##*/}"
echo "REPO_NAME=$REPO_NAME" >> "$GITHUB_ENV"

- name: Setup Ruby
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems

- uses: actions/setup-node@v4
- name: Install Node Dependencies
run: npm install

- name: Install and Build
if: github.event.action != 'closed' # Skip the build if the PR has been closed
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
run: gulp build && bundle exec jekyll build --baseurl "/${{ env.REPO_NAME }}/pr-preview/pr-${{ github.event.number }}"
env:
JEKYLL_ENV: preview

- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./_site/
source-dir: ./_site/
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<div class="four-oh-four">
<h1>404 / Page not found</h1>

<p>You might want to double-check your link and try again, or return to the <a href="http://opportunity.census.gov/">homepage</a>.
<p>You might want to double-check your link and try again, or return to the <a href="//opportunity.census.gov/">homepage</a>.
</p>
</div>
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ GEM
uri
nokogiri (1.18.8-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.8-x86_64-linux-gnu)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
Expand Down Expand Up @@ -319,6 +321,7 @@ GEM
PLATFORMS
arm64-darwin-22
arm64-darwin-24
x86_64-linux

DEPENDENCIES
ffi
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ The following are necessary only if you are importing new data from Airtable. Se
1. [airtable-export](https://pypi.org/project/airtable-export/)
2. [Python 3](https://www.python.org/downloads/)

Note - if attempting to import records from behind an enterprise firewall with SSL inspection, you will need to use a custom extension of the Airtable Export plugin found here: [airtable-export](https://pypi.org/project/airtable-export/). Once you’ve cloned the package to your development directory and have selected your preferred Python environment for installation, you can install it from the current repo’s directory like so:

```sh
pip install ../airtable-export
```

To run the script, run the following:
```sh
npm run airtable -- --no-verify
```


<br/>

Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,4 @@ exclude:
- gulpfile.js
- circle.yml
- css
- scripts
Loading
Loading