-
Notifications
You must be signed in to change notification settings - Fork 316
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
Document additional dependencies of importers #468
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic!! Thanks @ashmaroli! I have a couple quick comments that I'd love your thoughts on to improve this even further.
docs/_data/importer_dependencies.yml
Outdated
- safe_yaml | ||
dotclear: | ||
- active_support | ||
- active_support/core_ext/string/inflections |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we normalize this to the gem it comes from? I wonder if there's a way to find the file using Ruby's $LOAD_PATH and normalize on the gem name. For example, this and the line above are both from the gem "activesupport", I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about it but dropped it for a future pull request..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome suggestion regarding the use of $LOAD_PATH
.. I did not think of that..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha. This doesn't quite answer the question of how to install the necessary dependencies for the average end user who isn't that familiar with ruby. You and I know how to install activesupport properly but they may not. I wonder how much this change helps without a more explicit instruction like:
To use this importer, run the following command beforehand:
gem install activesupport rexml sequel sqlite3
It currently reads to me like a maintainer documentation change rather than an end-user documentation change 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.. I didn't add the gem install
so that users do not spend time installing gems they may already have installed..
But yes, your point is valid and makes sense.
Great work! |
@jekyllbot: merge +docs |
Introduce a rake task to extract list of available importers into a data file that is then consumed during a future
jekyll build
.This simplifies maintaining consistency between plugin lib and docs.
Closes #467