-
Notifications
You must be signed in to change notification settings - Fork 26
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
Multiple webpages for multiple datasets in the same repo? #51
Comments
The sky's the limit, I suppose. Right now, Would you be willing to describe what your use case looks like a bit? If you have an example repo with a few datasets that'd be super helpful. It's certainly common enough to expect that others have this use case, so thanks! |
Sure! I was inspired by fivethirtyeight/data to create a repo with the datasets for many unrelated projects. The motivation for doing this is my desire to make it easier for one dataset to be used in multiple unrelated projects. Here's an illustration of the repo architecture that I'd like to create (using two made up datasets):
|
That's nice and clean. Thanks. We're currently using a convention of "your data are in We were discussing how to do the HTML pages over in #46 and Blogdown/Hugo came up as an option for supporting more complex repos (like your example) with indexes of datasets, search, tags, etc. I'm wondering what a good API would be for getting the metadata from the user for each of the folders of data. Our current API is nice and simple because we're only supporting one folder. If we smushed all of them into a single set of metadata template CSVs I guess that'd be workable both for the Shiny apps and editing the CVSs manually. Not quite sure what the R function API would be but it's definitely possible. I'll keep chewing on this. Thanks! |
Exploring the look and strategy for this a bit with Hugo. My current sketch supports the following strategies:
to create a rich-card style layout. (I'll add some more layouts as alternate shortcodes). This will create a landing page for each dataset, and the homepage will create a list view with preview cards for all the datasets on the website. See: https://cboettig.github.io/dataspice-web/ex2/ (source at: http://github.com/cboettig/dataspice-web/ Alternately, for a more one-off approach, hugo can also read JSON from the I think I can turn this into a hugo theme pretty easily, mostly need to figure out how much CSS style gets hardwired in and how much I can manage to make easily customizable. thoughts ideas? Suggestions for other layout shortcodes? (I'll mock one up that looks more like the dataspice build_site() template where there's no submenu navigation on the cards). |
I think the term "dataset" is a bit ambiguous. You mean multiple tables, right? But any given study may e.g. one table to describe locations, one to describe animals, one to describe time series of behaviour of those animals. Therefore, I thought it would be good to give people the freedom to put several codebooks on the same page and intersperse descriptions of how they relate to one another. Using the rmd partial approach, they can also easily choose to put them on separate pages where that makes more sense. |
@rubenarslan Thanks for the comments! Yes, I think
So yes, it could be multiple tables, and also things that are not tables. Note that the goal of |
Do you describe the dataspice high-level idea somewhere where I can read it? |
@rubenarslan Great question! I think we're still consolidating our ideas to some extent, a blog-post in the works now should give a bit more soon. Meanwhile, there's a little blurb at the top of the README that has the basic gist I think:
Not sure if that helps. I think we're still figuring out how best to communicate these ideas to different audiences, so feedback is definitely most helpful! |
Exciting new package 🎉
If I have multiple datasets in the same repository is it possible to build a webpage for each dataset? Or is this package only set up for the 1:1 dataset-to-repo use case?
The text was updated successfully, but these errors were encountered: