Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change treatments folder to truebase
  • Loading branch information
breck7 committed Feb 24, 2023
1 parent 99f3e85 commit 298bb58
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -10,5 +10,5 @@ site/scroll.css
*.xml
site/*.scroll
*.log
site/treatments/*.scroll
site/truebase/*.scroll
dist/
8 changes: 4 additions & 4 deletions code/CancerDB.js
Expand Up @@ -18,7 +18,7 @@ const distFolder = path.join(siteFolder, "dist")
const nodeModulesFolder = path.join(baseFolder, "node_modules")
const jtreeFolder = path.join(nodeModulesFolder, "jtree")
const truebaseModulesFolder = path.join(nodeModulesFolder, "truebase")
const treatmentsFolder = path.join(siteFolder, "treatments")
const publishedFolder = path.join(siteFolder, "truebase")

const combineJsFiles = (baseDir = "", filepaths = []) =>
filepaths
Expand All @@ -34,7 +34,7 @@ const scrollFooter = Disk.read(path.join(siteFolder, "footer.scroll"))

class CancerDBFile extends TrueBaseFile {
get webPermalink() {
return `/treatments/${this.permalink}`
return `/truebase/${this.permalink}`
}
}

Expand Down Expand Up @@ -154,7 +154,7 @@ class CancerDBServer extends TrueBaseServer {
return {
label: file.get("title"),
id: file.id,
url: `/treatments/${file.id}.html`
url: `/truebase/${file.id}.html`
}
}),
undefined,
Expand Down Expand Up @@ -272,7 +272,7 @@ class CancerDBServerCommands {
buildAllCommand() {
cancerDBFolder.forEach(file =>
Disk.write(
path.join(treatmentsFolder, `${file.id}.scroll`),
path.join(publishedFolder, `${file.id}.scroll`),
new TreatmentPageTemplate(file).toScroll()
)
)
Expand Down
2 changes: 1 addition & 1 deletion site/header.scroll
Expand Up @@ -26,7 +26,7 @@ stumpNoSnippet
name q
placeholder Search
autocomplete off
a Treatments
a Everything
href BASE_URL/search.html?q=select+type
a Types
href BASE_URL/search.html?q=where+type+%3D+cancerType%0D%0Aselect+mainType+tissue+subTypes+nciCode+umls+oncoTreeId+parentOncoTreeId%0D%0AsortBy+oncoTreeLevel
Expand Down
2 changes: 0 additions & 2 deletions site/treatments/header.scroll

This file was deleted.

0 comments on commit 298bb58

Please sign in to comment.