This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
460c03f
commit 8643bac
Showing
23 changed files
with
101 additions
and
32 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
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
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
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
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
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
title: "Help during life's major events" | ||
summary: "Life’s big milestones can be challenging, but figuring out which federal government benefits might be available to help shouldn’t be. Get started here." | ||
title: landing-page.title | ||
summary: landing-page.summary | ||
lifeEvent: death-of-a-loved-one | ||
processListSteps: | ||
- "Answer a few questions" | ||
- "Review a custom list of potential federal benefits" | ||
- "Find out how to apply" | ||
- landing-pae.processListSteps.value1 | ||
- landing-pae.processListSteps.value2 | ||
- landing-pae.processListSteps.value3 | ||
--- |
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"title": "\"Help during life's major events\"", | ||
"summary": "\"Life\u2019s big milestones can be challenging, but figuring out which federal government benefits might be available to help shouldn\u2019t be. Get started here.\"", | ||
"processListSteps": "" | ||
"landing-page.title": "\"Help during life's major events\"", | ||
"landing-page.summary": "\"Life\u2019s big milestones can be challenging, but figuring out which federal government benefits might be available to help shouldn\u2019t be. Get started here.\"", | ||
"landing-page.processListSteps.value1": "Answer a few questions" , | ||
"landing-page.processListSteps.value2": "Review a custom list of potential federal benefits" , | ||
"landing-page.processListSteps.value3": "Find out how to apply" | ||
} |
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,58 @@ | ||
import json, os | ||
|
||
localesPath = "./locales/en/" | ||
mdPath = "./content/" | ||
|
||
ignoreFiles = [ | ||
".DS_Store", | ||
"readme.md", | ||
"disclaimer.md", | ||
"criteria.csv", | ||
"landing-page.md", | ||
] | ||
files = os.listdir(mdPath) | ||
|
||
allFiles = {"agencies": [], "benefits": [], "life-events": [], "types": []} | ||
|
||
ignoreLines = [ | ||
"criteriaKey", | ||
"disableGroupKey", | ||
"disableGroupWhen", | ||
] | ||
|
||
for file in files: | ||
if file in ignoreFiles: | ||
continue | ||
else: | ||
if "." not in file: | ||
moreFiles = os.listdir(os.path.join(mdPath, file)) | ||
for moreFile in moreFiles: | ||
if moreFile in ignoreFiles: | ||
continue | ||
else: | ||
allFiles[file].append( | ||
{"path": os.path.join(mdPath, file, moreFile)} | ||
) | ||
else: | ||
allFiles[file] = {"path": os.path.join(mdPath, file)} | ||
|
||
|
||
usedVariables = {} | ||
changedFiles = [] | ||
keys = list(allFiles.keys()) | ||
for fileOrDir in keys: | ||
for file in allFiles[fileOrDir]: | ||
newLines = [] | ||
filePath = file["path"] | ||
baseTitle = filePath.split("/")[-1].replace(".md", "") | ||
title = filePath.replace(".md", ".json").replace("./content/", "") | ||
jsonData = {} | ||
with open(filePath, 'r') as f: | ||
data = f.readlines() | ||
for line in data: | ||
nline = line | ||
if 'link: ' in line: | ||
link = line.split(': ')[1].replace('\n', '') | ||
jsonData[baseTitle+'.source.link'] = link | ||
line = line.split(': ')[0] + ': ' + baseTitle + '.source.link' | ||
newLines.append() |