Skip to content

Instantly share code, notes, and snippets.

@charlesreid1
Created October 6, 2018 02:00
Show Gist options
  • Save charlesreid1/1fe12d479859fe52374e1a55b729b11f to your computer and use it in GitHub Desktop.
Save charlesreid1/1fe12d479859fe52374e1a55b729b11f to your computer and use it in GitHub Desktop.
make table of contents snippet
1M.1.DEMO.md Searching
1M.1.FULLSTACKS.md Common IDs
1M.2.PRODUCT.md API Registry
2M.1.DEMO.md Uploads and Minting
2M.1.FULLSTACKS.md TopMed Workflows
2M.1.PRODUCT.md Draft DCPPC website
2M.2.PRODUCT.md GUIDs Core Metadata
3M.1.DEMO.md Searching metadata
3M.1.PRODUCT.md Draft FAIR metadata specification
3M.2.DEMO.md FAIRness assessment
3M.3.DEMO.md GUID Object Resolution
3M.4.DEMO.md Analysis And Training
3M.4.FULLSTACKS.md Incorporate KC Standards
3M.5.FULLSTACKS.md Test-user log-on
3M.6.FULLSTACKS.md Draft of Ethics Security and Privacy Policy Council
4M.1.DEMO.md Automatically Generated Jupyter Notebooks
4M.2.DEMO.md FAIRness assessment: Demonstration
4M.2.DEMO.md APIs: Portable workflows across stacks
4M.5.DEMO.md TopMed Open Sandboxes
4M.1.FULLSTACKS.md Richer metadata and identifiers
4M.2.FULLSTACKS.md Incorporate KC Standards
4M.3.FULLSTACKS.md Pilot Users Onboarded
4M.4.FULLSTACKS.md Cross-stack Compute
4M.1.PRODUCT.md FAIR reporting assessment tool
4M.3.PRODUCT.md Namespace Service
5M.1.DEMO.md Single Shared Sign-on
5M.3.DEMO.md Data Analysis:
5M.1.FULLSTACKS.md Incorporate KC Standards
5M.2.PRODUCT.md Draft Plan for Data Commons
5M.3.PRODUCT.md Use Case Library
5M.4.PRODUCT.md Draft Policy: Restricted Data Access
5M.5.PRODUCT.md Draft External User Engagement Plan
5M.6.PRODUCT.GUIDs.md Object GUID Services
5M.6.PRODUCT.Resolver.md Resolver Service
5M.7.PRODUCT.md Draft report on Blockchain
5M.8.PRODUCT.md Centillion: Search Engine
5M.9.PRODUCT.md Internal Website for DCPPC
6M.1.DEMO.md Registration: Display audit trail
6M.2.DEMO.md Run scalable; cost-controlled analysis
6M.3.DEMO.md Multi-cloud compute
6M.4.DEMO.md Share and retrieve analysis
6M.5.DEMO.md MetaAPI: Deployed across selected APIs
6M.6.DEMO.md Search KC7 metadata and transfer search results
6M.7.DEMO.md Core metadata access for MODs data
6M.8.DEMO.md Multi-cloud; multi-resolver GUID creation
6M.1.FULLSTACKS.md Refined User Flows
6M.2.FULLSTACKS.md Data produced across Fullstacks
6M.3.FULLSTACKS.md Overview of Common APIs
6M.5.FULLSTACKS.md Plan for additional user training
6M.6.FULLSTACKS.md User Interviews
6M.7.FULLSTACKS.md Broader User Engagement
6M.7.PRODUCT.md Final report on Blockchain
6M.8.PRODUCT.md DCPPC Video Interviews
6M.9.PRODUCT.md Target user audience
6M.10.PRODUCT.md Use Case Library Structure
6M.11.PRODUCT.md API Cross-platform test plan
6M.12.PRODUCT.md Stage 1 Metadata Instance
with open('snippet.csv') as csv:
lines = csv.readlines()
files = {}
titles = {}
for line in lines:
f, t = line.split(",")
f=f.strip()
t=t.strip()
which_month = line[0]
if which_month in files.keys():
files[which_month] += [f]
titles[which_month] += [t]
else:
files[which_month] = [f]
titles[which_month] = [t]
with open('mkdocs_snippet.yml','w') as yaml:
for k in files.keys():
yaml.write(" - 'Month %s':\n"%(k))
for f,t in zip(files[k],titles[k]):
yaml.write(" - '%s' : '%s'\n"%(t,f))
print("All done. Check mkdocs_snippet.yml")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment