Skip to content

Commit

Permalink
Deploying to wws from @ 65cc81e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed Jun 19, 2024
1 parent 87fc8ce commit efa7a8b
Show file tree
Hide file tree
Showing 1,514 changed files with 4,985 additions and 15,556 deletions.
6 changes: 3 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<meta charset="utf-8">
<title>Page not found</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/404.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="Page not found">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -378,7 +378,7 @@
<a href="mailto:[email protected]"><svg viewBox="3 5 24 20" width="24" height="20" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1, 0, 0, 1, 0, -289.0625)"><path style="opacity:1;stroke:none;stroke-width:0.49999997;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 5 5 C 4.2955948 5 3.6803238 5.3628126 3.3242188 5.9101562 L 14.292969 16.878906 C 14.696939 17.282876 15.303061 17.282876 15.707031 16.878906 L 26.675781 5.9101562 C 26.319676 5.3628126 25.704405 5 25 5 L 5 5 z M 3 8.4140625 L 3 23 C 3 24.108 3.892 25 5 25 L 25 25 C 26.108 25 27 24.108 27 23 L 27 8.4140625 L 17.121094 18.292969 C 15.958108 19.455959 14.041892 19.455959 12.878906 18.292969 L 3 8.4140625 z " transform="translate(0,289.0625)" id="rect4592"/></g></svg></a>
<a href="https://github.com/breck7/CancerDB/archive/refs/heads/wws.zip"><svg fill="#000000" xmlns="http://www.w3.org/2000/svg" width="800px" height="800px" viewBox="0 0 52 52" enable-background="new 0 0 52 52" xml:space="preserve"><path d="M38.6,20.4c-1-6.5-6.7-11.5-13.5-11.5c-7.6,0-13.7,6.1-13.7,13.7c0,0.3,0,0.7,0.1,1c-5,0.4-8.9,4.6-8.9,9.6 c0,5.4,4.3,9.7,9.7,9.7h11.5c-0.8-0.8-8.1-8.1-8.1-8.1c-0.4-0.4-0.4-0.9,0-1.3l1.3-1.3c0.4-0.4,0.9-0.4,1.3,0l3.5,3.5 c0.4,0.4,1.1,0.1,1.1-0.4V21.8c0-0.4,0.5-0.9,1-0.9h1.9c0.5,0,0.9,0.4,0.9,0.9v13.4c0,0.6,0.8,0.8,1.1,0.4l3.5-3.5 c0.4-0.4,0.9-0.4,1.3,0l1.3,1.3c0.4,0.4,0.4,0.9,0,1.3L26,42.9h12.3v0c6.1-0.1,11-5.1,11-11.3C49.4,25.5,44.6,20.6,38.6,20.4z"/></svg></a>
<a href="https://github.com/breck7/CancerDB"><svg xmlns="http://www.w3.org/2000/svg" width="92pt" height="92pt" viewBox="0 0 92 92"><path d="M90.156 41.965 50.036 1.848a5.913 5.913 0 0 0-8.368 0l-8.332 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.043 7.043 0 0 1 1.673 7.277l10.183 10.184a7.026 7.026 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.045 7.045 0 0 1-9.961 0 7.038 7.038 0 0 1-1.532-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.034 7.034 0 0 1 2.308-1.539V33.926a7.001 7.001 0 0 1-2.308-1.535 7.049 7.049 0 0 1-1.516-7.7L29.242 14.273 1.734 41.777a5.918 5.918 0 0 0 0 8.371L41.855 90.27a5.92 5.92 0 0 0 8.368 0l39.933-39.934a5.925 5.925 0 0 0 0-8.371"/></svg></a>
<a href="https://scroll.pub" class="pageFooterScrollLink" style="display:block; margin: .5em;">Built with Scroll v96.0.0</a>
<a href="https://scroll.pub" class="pageFooterScrollLink" style="display:block; margin: .5em;">Built with Scroll v97.0.0</a>
</div>
</body>
</html>
40 changes: 23 additions & 17 deletions ScrollSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const lodash = require("lodash")
const { TreeNode } = require("scrollsdk/products/TreeNode.js")
const { Utils } = require("scrollsdk/products/Utils.js")
const { Disk } = require("scrollsdk/products/Disk.node.js")
const { ScrollFile, ScrollFileSystem } = require("scroll-cli")
const scrollFs = new ScrollFileSystem()

class ScrollSetCLI {
constructor() {
Expand Down Expand Up @@ -48,12 +50,15 @@ class ScrollSetCLI {
setAndSave(file, measurementPath, measurementValue) {
const tree = this.getTree(file)
tree.set(measurementPath, measurementValue)
return this.save(file, tree)
return this.formatAndSave(file, tree)
}

save(file, tree) {
const dest = this.makeFilePath(file.id)
return Disk.write(dest, tree.toString())
formatAndSave(file, tree) {
return new ScrollFile(
tree.toString(),
this.makeFilePath(file.id),
scrollFs
).formatAndSave()
}

makeNameSearchIndex(files = this.concepts.slice(0).reverse()) {
Expand Down Expand Up @@ -84,7 +89,7 @@ class ScrollSetCLI {
console.log(lodash.pickBy(this.searchForConcept(query), lodash.identity))
}

grammarFile = ""
parsersFile = ""
scrollSetName = "myScrollSet"

get concepts() {
Expand All @@ -93,27 +98,28 @@ class ScrollSetCLI {

async updateIdsCommand() {
this.concepts.forEach((file) => {
const tree = this.getTree(file)
const dest = path.join(this.conceptsFolder, file.filename)
const tree = new TreeNode(Disk.read(dest))
const newTree = tree.toString().replace(
`import ../code/conceptPage.scroll
id `,
`import ../code/conceptPage.scroll
id ${file.filename.replace(".scroll", "")}
name `
)
this.save(file, newTree.toString())
Disk.write(dest, newTree.toString())
})
}

buildGrammarFileCommand() {
const code = `node_modules/scroll-cli/grammar/cellTypes.grammar
node_modules/scroll-cli/grammar/root.grammar
node_modules/scroll-cli/grammar/comments.grammar
node_modules/scroll-cli/grammar/blankLine.grammar
node_modules/scroll-cli/grammar/measures.grammar
node_modules/scroll-cli/grammar/import.grammar
node_modules/scroll-cli/grammar/errors.grammar
${this.grammarFile}`
buildParsersFile() {
const code = `node_modules/scroll-cli/parsers/cellTypes.parsers
node_modules/scroll-cli/parsers/root.parsers
node_modules/scroll-cli/parsers/comments.parsers
node_modules/scroll-cli/parsers/blankLine.parsers
node_modules/scroll-cli/parsers/measures.parsers
node_modules/scroll-cli/parsers/import.parsers
node_modules/scroll-cli/parsers/errors.parsers
${this.parsersFile}`
.trim()
.split("\n")
.map((filepath) => Disk.read(path.join(__dirname, filepath)))
Expand All @@ -124,7 +130,7 @@ ${this.grammarFile}`
)
.replace(/^importOnly\n/gm, "")
.replace(/^import .+/gm, "")
Disk.write(path.join(__dirname, `${this.scrollSetName}.grammar`), code)
Disk.write(path.join(__dirname, `${this.scrollSetName}.parsers`), code)
}
}

Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { ScrollSetCLI } = require("./ScrollSet.js")

class CancerDBCli extends ScrollSetCLI {
conceptsFolder = path.join(__dirname, "concepts")
grammarFile = "code/measures.parsers"
parsersFile = "code/measures.parsers"
scrollSetName = "cancerdb"
compiledConcepts = "./cancerdb.json"
}
Expand Down
2 changes: 1 addition & 1 deletion code/measures.parsers
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ rumbleParser
// socialMedia
abstractSocialMediaParser
extends abstractUrlMeasureParser
// todo remove the need for the below from grammar
// todo remove the need for the below from parsers
string sortKey abstractSocialMediaParser
contentKey url
float sortIndex 10
Expand Down
6 changes: 3 additions & 3 deletions concepts/3d-crt.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>3D-CRT</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/3d-crt.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="3D-CRT">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -375,7 +375,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/a-lucky-man-a-memoir.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>A Lucky Man: A Memoir</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/a-lucky-man-a-memoir.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="A Lucky Man: A Memoir">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -375,7 +375,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/a-new-war-on-cancer-book.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>A New War on Cancer: The Unlikely Heroes Revolutionizing Prevention</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/a-new-war-on-cancer-book.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="A New War on Cancer: The Unlikely Heroes Revolutionizing Prevention">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -376,7 +376,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/aaccr-et.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>AACCR</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/aaccr-et.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="AACCR">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -378,7 +378,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/aaci.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>Association of American Cancer Institutes</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/aaci.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="Association of American Cancer Institutes">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -385,7 +385,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/aacr.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>AACR</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/aacr.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="AACR">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -386,7 +386,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/aad.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>American Academy of Dermatology</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/aad.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="American Academy of Dermatology">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -383,7 +383,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/abbott.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>Abbott Laboratories</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/abbott.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="Abbott Laboratories">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -378,7 +378,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions concepts/abbvie.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<head>
<meta charset="utf-8">
<title>AbbVie</title>
<script>/* This HTML was generated by 📜 Scroll v96.0.0. https://scroll.pub */</script>
<script>/* This HTML was generated by 📜 Scroll v97.0.0. https://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/abbvie.html">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="CancerDB: Datasets about Cancer">
<meta name="generator" content="Scroll v96.0.0">
<meta name="generator" content="Scroll v97.0.0">
<meta property="og:title" content="AbbVie">
<meta property="og:description" content="CancerDB: Datasets about Cancer">
<meta property="og:image" content="">
Expand Down Expand Up @@ -388,7 +388,7 @@
<span>·</span>
<a href="../pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 652</a>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 653</a>
<span>·</span>
<a href="https://scroll.pub/wws.html">Part of the World Wide Scroll</a>
</div>
Expand Down
Loading

0 comments on commit efa7a8b

Please sign in to comment.