Skip to content

Commit

Permalink
Merge pull request #307 from jdebacker/fixes
Browse files Browse the repository at this point in the history
Some small fixes to website
  • Loading branch information
jdebacker authored Mar 8, 2024
2 parents 46445ff + 412a8be commit b8332e5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions Tools/Catalog-Builder/catalog_builder/tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def mock_gh_api(mock_markdown_doc, mock_catalog_meta, monkeypatch):
"""

def _gh_api(org, repo, branch, filename):
url = f"https://api.github.com/repos/{org}/{
repo}/contents/{filename}?ref={branch}"
url = f"https://api.github.com/repos/{org}/{repo}/contents/{filename}?ref={branch}"
response = requests.get(url)
return response.text

Expand Down
3 changes: 1 addition & 2 deletions Tools/Catalog-Builder/catalog_builder/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ def _get_from_github_api(org, repo, branch, filename):
"For more information, check out the catalog configuration "
"docs: Tools/Catalog-Builder/README.md"
)
url = f"https://api.github.com/repos/{org}/{
repo}/contents/{filename}?ref={branch}"
url = f"https://api.github.com/repos/{org}/{repo}/contents/{filename}?ref={branch}"
response = requests.request('GET', url, headers=HEADER)
print(f"GET: {url} {response.status_code}")
if response.status_code == 403:
Expand Down
10 changes: 5 additions & 5 deletions Tools/Page-Builder/make_pages.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
py ./page_builder.py ../../Community/contribute.md ../../Community/contribute.html
py ./page_builder.py ../../Community/council.md ../../Community/council.html
py ./page_builder.py ../../Community/roadmap.md ../../Community/roadmap.html
py ./page_builder.py ../../Community/initiatives.md ../../Community/initiatives.html
py ./page_builder.py ../../Catalog/library_criteria.md ../../Catalog/library_criteria.html
python ./page_builder.py ../../Community/contribute.md ../../Community/contribute.html
python ./page_builder.py ../../Community/council.md ../../Community/council.html
python ./page_builder.py ../../Community/roadmap.md ../../Community/roadmap.html
python ./page_builder.py ../../Community/initiatives.md ../../Community/initiatives.html
python ./page_builder.py ../../Catalog/library_criteria.md ../../Catalog/library_criteria.html
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dependencies:
- bs4
- jinja2
- requests
- requests_mock
- pandoc
12 changes: 6 additions & 6 deletions users.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"link": "https://www.cbo.gov/"
},
{
"name": "Office of Tax Analysis, Treasury",
"name": "Office of Tax Analysis, U.S. Treasury",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Seal_of_the_United_States_Department_of_the_Treasury.svg/600px-Seal_of_the_United_States_Department_of_the_Treasury.svg.png",
"link": "https://home.treasury.gov/policy-issues/tax-policy/office-of-tax-analysis"
},
Expand All @@ -31,12 +31,12 @@
"link": "https://www.congress.gov/"
},
{
"name": "Senate Finance, United States Congress",
"name": "Senate Finance Committee, United States Congress",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Seal_of_the_United_States_Senate.svg/138px-Seal_of_the_United_States_Senate.svg.png",
"link": "https://www.finance.senate.gov/"
},
{
"name": "Ways and Means, United States Congress",
"name": "Ways and Means Committee, United States Congress",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Ways_and_Means_%28118th_Congress%29.svg/250px-Ways_and_Means_%28118th_Congress%29.svg.png",
"link": "https://waysandmeans.house.gov/"
}
Expand Down Expand Up @@ -73,7 +73,7 @@
"link": "https://www.thecgo.org/"
},
{
"name": "Committee for Responsible Federal Budget",
"name": "Committee for a Responsible Federal Budget",
"image": "https://upload.wikimedia.org/wikipedia/en/2/21/Committee_Responsible_Federal_Budget_Logo.jpg",
"link": "https://www.crfb.org/"
},
Expand Down Expand Up @@ -130,7 +130,7 @@
"link": "https://www.wisconsin.edu/"
},
{
"name": "University of Virgninia",
"name": "University of Virginia",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/University_of_Virginia_Rotunda_logo.svg/800px-University_of_Virginia_Rotunda_logo.svg.png",
"link": "https://www.virginia.edu/"
},
Expand Down Expand Up @@ -194,7 +194,7 @@
"link": "https://www.un.org/en/"
},
{
"name": "Eurpoean Commission",
"name": "European Commission",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/84/European_Commission.svg/1280px-European_Commission.svg.png",
"link": "https://commission.europa.eu/index_en"
},
Expand Down

0 comments on commit b8332e5

Please sign in to comment.