-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-generate docs #3278
Auto-generate docs #3278
Conversation
note: only picks up "true" doc strings with block comment format and two asterisk to start it
|
227776e
to
ea74e90
Compare
ea74e90
to
0aa1c6e
Compare
724c9b0
to
4201578
Compare
47a9a59
to
b14e7e3
Compare
b14e7e3
to
a3f9664
Compare
…tries to insert bpPerPx property into the LinearPileupDisplay
c285a61
to
d746288
Compare
Codecov Report
@@ Coverage Diff @@
## main #3278 +/- ##
==========================================
- Coverage 59.69% 59.29% -0.40%
==========================================
Files 675 733 +58
Lines 28735 29009 +274
Branches 6981 7048 +67
==========================================
+ Hits 17153 17201 +48
- Misses 11338 11531 +193
- Partials 244 277 +33
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b95ac61
to
0414cbb
Compare
d372001
to
421a56c
Compare
421a56c
to
be2e75f
Compare
3f51e44
to
863b09c
Compare
2b8d189
to
47fc0dc
Compare
47fc0dc
to
01b7d00
Compare
This begins a project of trying to automatically generate docs for config, and probably, the state model objects would also be valuable
I used the typescript compiler itself to parse out doc strings that have
!config
and!slot
stringscurrently looks like this
It currently inserts raw snippets of typescript text into the config docs. I think this is better than nothing
It is helpful to have api docs once you are getting really into the weeds. developers know their way around the codebase but as a user of a library, you don't really want to dig into the code to find these details, but if there is a bit of code in the docs, that is ok.
current output in a single long MD file looks like this:
fixes #948
BamAdapter
used to configure BAM adapter
slot: bamLocation
slot: index.indexType
slot: index.location
slot: fetchSizeLimit
slot: sequenceAdapter
CramAdapter
used to configure CRAM adapter
slot: fetchSizeLimit
slot: cramLocation
slot: craiLocation
slot: sequenceAdapter
HtsgetBamAdapter
Used to fetch data from Htsget endpoints in BAM format
Uses @gmod/bam
slot: htsgetBase
slot: htsgetTrackId
slot: sequenceAdapter
LinearAlignmentsDisplay
has a "pileup" sub-display, where you can see individual reads and a
quantitative "snpcoverage" sub-display track showing SNP frequencies
slot: pileupDisplay
slot: snpCoverageDisplay
derives from:
LinearPileupDisplay
slot: defaultRendering
slot: renderers
slot: maxFeatureScreenDensity
slot: colorScheme
derives from:
LinearSNPCoverageDisplay
slot: autoscale
slot: minScore
slot: maxScore
slot: scaleType
slot: inverted
slot: multiTicks
slot: renderers
derives from:
PileupRenderer
slot: color
slot: orientationType
slot: displayMode
slot: minSubfeatureWidth
slot: maxHeight
slot: maxClippingSize
slot: height
slot: noSpacing
slot: largeInsertionIndicatorScale
slot: mismatchAlpha
SNPCoverageAdapter
slot: subadapter
SNPCoverageRenderer
slot: clipColor
slot: indicatorThreshold
slot: drawArcs
slot: drawInterbaseCounts
slot: drawIndicators
ArcRenderer
slot: color
slot: thickness
slot: label
slot: height
slot: caption
LinearArcDisplay
slot: renderer
derives from:
OAuthConfigSchema
slot: tokenType
slot: authEndpoint
slot: tokenEndpoint
slot: needsPKCE
slot: clientId
slot: scopes
slot: responseType
slot: hasRefreshToken
derives from:
DropboxOAuthConfigSchema
slot: authEndpoint
slot: tokenEndpoint
slot: needsPKCE
slot: domains
slot: hasRefreshToken
derives from:
ExternalTokenConfigSchema
slot: validateWithHEAD
derives from:
GoogleDriveOAuthConfigSchema
slot: authEndpoint
slot: scopes
slot: domains
slot: responseType
derives from:
HTTPBasicConfigSchema
slot: tokenType
slot: validateWithHEAD
derives from:
BedAdapter
slot: bedLocation
slot: columnNames
slot: scoreColumn
slot: autoSql
slot: colRef
slot: colStart
slot: colEnd
BedTabixAdapter
slot: bedGzLocation
slot: index.indexType
slot: index.location
slot: columnNames
slot: scoreColumn
slot: autoSql
BigBedAdapter
slot: bigBedLocation
ChainAdapter
slot: assemblyNames
slot: targetAssembly
slot: queryAssembly
slot: chainLocation
DeltaAdapter
slot: assemblyNames
slot: targetAssembly
slot: queryAssembly
slot: deltaLocation
MCScanAnchorsAdapter
slot: mcscanAnchorsLocation
slot: bed1Location
slot: bed2Location
slot: assemblyNames
MCScanSimpleAnchorsAdapter
slot: mcscanSimpleAnchorsLocation
slot: bed1Location
slot: bed2Location
slot: assemblyNames
MashMapAdapter
slot: assemblyNames
slot: targetAssembly
slot: queryAssembly
slot: outLocation
PAFAdapter
slot: assemblyNames
slot: targetAssembly
slot: queryAssembly
slot: pafLocation
FromConfigAdapter
slot: features
slot: featureClass
FromConfigRegionsAdapter
used for specifying refNames+sizes of an assembly
slot: features
slot: featureClass
FromConfigSequenceAdapter
slot: features
slot: featureClass
RefNameAliasAdapter
slot: location
slot: refNameColumn
slot: color
slot: posColor
slot: negColor
slot: lineWidth
slot: colorBy
slot: thresholdsPalette
slot: thresholds
Gff3Adapter
slot: gffLocation
Gff3TabixAdapter
slot: gffGzLocation
slot: index.indexType
slot: index.indexType
slot: dontRedispatch
GtfAdapter
slot: gtfLocation
HicAdapter
slot: hicLocation
HicRenderer
slot: baseColor
slot: color
slot: maxHeight
LinearHicDisplay
slot: renderer
derives from:
ReferenceSequenceTrack
used to display base level DNA sequence tracks
slot: adapter
slot: displays
slot: name
slot: metadata