Skip to content
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

Node API #169

Open
cycomachead opened this issue Sep 7, 2017 · 0 comments
Open

Node API #169

cycomachead opened this issue Sep 7, 2017 · 0 comments

Comments

@cycomachead
Copy link
Member

Building off #147 Ideas:

We need a function to iterate over all files in a topic file - it should take in a path or a topic file string and execute a callback for each item that would be a page in the lab.

function iterateFiles(topicFile, options?, callback) {}

callback = function (contents, metadata) {}

metadata = {
    type: '',
    url: '',
    sectionTitle: '',
    sectionItems: [],
    topicData: {}, // topic file structure?
} // Maybe this should be an OOP object / have functions for most of these things.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant