Skip to content

Commit c25b675

Browse files
authored
Merge pull request #967 from uscensusbureau/lk-top-gh-pages-debug
Migrate TOP to GH Pages
2 parents c3baae3 + 88597c3 commit c25b675

20 files changed

Lines changed: 1945 additions & 2804 deletions

.github/workflows/html-proofer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- name: Install jekyll site dependencies.
1515
uses: ruby/setup-ruby@v1
1616
with:
17-
ruby-version: 3.1.3
17+
ruby-version: 3.3.4
1818
bundler-cache: true
1919

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

2222
- name: Install proofer dependencies.
2323
run: npm install

.github/workflows/preview.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
env:
1111
PR_NUMBER: ${{ github.event.number }}
1212

13+
14+
1315
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1416
permissions:
1517
contents: read
@@ -26,20 +28,29 @@ jobs:
2628

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

31+
- name: Set Repo Name
32+
run: |
33+
REPO_NAME="${GITHUB_REPOSITORY##*/}"
34+
echo "REPO_NAME=$REPO_NAME" >> "$GITHUB_ENV"
35+
2936
- name: Setup Ruby
3037
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
3138
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
3239
with:
3340
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3441
cache-version: 0 # Increment this number if you need to re-download cached gems
3542

43+
- uses: actions/setup-node@v4
44+
- name: Install Node Dependencies
45+
run: npm install
46+
3647
- name: Install and Build
3748
if: github.event.action != 'closed' # Skip the build if the PR has been closed
38-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
49+
run: gulp build && bundle exec jekyll build --baseurl "/${{ env.REPO_NAME }}/pr-preview/pr-${{ github.event.number }}"
3950
env:
4051
JEKYLL_ENV: preview
4152

4253
- name: Deploy preview
4354
uses: rossjrw/pr-preview-action@v1
4455
with:
45-
source-dir: ./_site/
56+
source-dir: ./_site/

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<div class="four-oh-four">
77
<h1>404 / Page not found</h1>
88

9-
<p>You might want to double-check your link and try again, or return to the <a href="http://opportunity.census.gov/">homepage</a>.
9+
<p>You might want to double-check your link and try again, or return to the <a href="//opportunity.census.gov/">homepage</a>.
1010
</p>
1111
</div>

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ GEM
262262
uri
263263
nokogiri (1.18.8-arm64-darwin)
264264
racc (~> 1.4)
265+
nokogiri (1.18.8-x86_64-linux-gnu)
266+
racc (~> 1.4)
265267
octokit (4.25.1)
266268
faraday (>= 1, < 3)
267269
sawyer (~> 0.9)
@@ -319,6 +321,7 @@ GEM
319321
PLATFORMS
320322
arm64-darwin-22
321323
arm64-darwin-24
324+
x86_64-linux
322325

323326
DEPENDENCIES
324327
ffi

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ The following are necessary only if you are importing new data from Airtable. Se
5252
1. [airtable-export](https://pypi.org/project/airtable-export/)
5353
2. [Python 3](https://www.python.org/downloads/)
5454

55+
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:
56+
57+
```sh
58+
pip install ../airtable-export
59+
```
60+
61+
To run the script, run the following:
62+
```sh
63+
npm run airtable -- --no-verify
64+
```
65+
5566

5667
<br/>
5768

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ exclude:
103103
- gulpfile.js
104104
- circle.yml
105105
- css
106+
- scripts

0 commit comments

Comments
 (0)