Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Breck Yunits authored and Breck Yunits committed Jun 18, 2024
1 parent ebaa67c commit 0c95f8b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 11 deletions.
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.scroll"
grammarFile = "code/measures.parsers"
scrollSetName = "cancerdb"
compiledConcepts = "./cancerdb.json"
}
Expand Down
2 changes: 1 addition & 1 deletion code/conceptPage.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ replaceJs TEMPLATE
}
viewSourceBaseUrl https://github.com/breck7/CancerDB/blob/main/concepts/

import measures.scroll
import measures.parsers

keyboardNav

Expand Down
3 changes: 0 additions & 3 deletions code/measures.scroll → code/measures.parsers
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
importOnly

// parsersOnly
idParser
extends abstractIdParser
nameParser
Expand Down
2 changes: 1 addition & 1 deletion csv.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Download the CancerDB ScrollSet as: CSV | TSV | JSON
link cancerdb.tsv TSV
link cancerdb.json JSON

import code/measures.scroll
import code/measures.parsers
loadConcepts concepts

Statistics on the measures (columns) are below and can be downloaded as: CSV | TSV | JSON
Expand Down
2 changes: 0 additions & 2 deletions magicSquares.scroll → magicSquares.parsers
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
importOnly

magicSquaresCatchAllParser
// todo Fill this out
catchAllCellType anyCell
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"homepage": "https://cancerdb.com",
"devDependencies": {
"lodash": "^4.17.21",
"scroll-cli": "^95.0.0",
"scroll-cli": "^96.0.0",
"scrollsdk": "^78.0.0"
}
}
2 changes: 1 addition & 1 deletion posts/cancer-heatmaps.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ printAuthor

endSnippet

import ../magicSquares.scroll
import ../magicSquares.parsers

<center>
Cancer deaths per year in the USA by cancer type and age
Expand Down
2 changes: 1 addition & 1 deletion readme.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Advanced method: Create a new file in `concepts` with a unique URL friendly file
Advanced method: Edit the corresponding `concepts/*.scroll` file and send a pull request.

## To add a new measure
Advanced method: Add your measure to `code/measures.scroll` and add at least 1 example to a concept in `concepts` and send a pull request.
Advanced method: Add your measure to `code/measures.parsers` and add at least 1 example to a concept in `concepts` and send a pull request.

## To run the site locally
code
Expand Down

0 comments on commit 0c95f8b

Please sign in to comment.