InnerSourceLearningPath icon indicating copy to clipboard operation
InnerSourceLearningPath copied to clipboard

Publish articles without videos

Open rrrutledge opened this issue 3 years ago • 3 comments

There are two articles in the introduction section that are text-only at this point. They should still be published on the website, just without a video.

rrrutledge avatar Aug 09 '22 19:08 rrrutledge

You will need to run (and probably modify) generate_learning_path_markdown.js in order to complete this.

rrrutledge avatar Oct 18 '22 15:10 rrrutledge

@marshmallowrobot will take a look. Reach out with any questions and updates!

rrrutledge avatar Oct 18 '22 15:10 rrrutledge

Progress Update: No progress!

I had issues with the script at first, since there's something out there that doesn't have an article title, so the regex that parses it out was causing errors. I believe I have a workaround for that now.

My next issue is I'm being rate limited by the GitHub API. They only allow 5k requests per hour, and I've somehow exceeded that? ¯\(ツ)/¯. Is there some flag or setting I can use to reduce the regenerated sections of the site? or reduce the GitHub API calls while developing? If ya'll haven't run into this issue yet, please share how I can avoid it too. TY!

marshmallowrobot avatar Oct 24 '22 21:10 marshmallowrobot

Glad you are working on this, @marshmallowrobot ❗ 5K requests sounds like a lot (too many). @tsadler1988 may have some idea of why you are making so many (or how to reduce it).

Are we making one API call for each language, for example? We can develop in English-only mode if that were the case.

rrrutledge avatar Oct 25 '22 15:10 rrrutledge

Progress Update: Issue is technically fixed, but still aesthetically broken.

The rate limiting appears to be related to how we are fetching contributor information. The system is fetching contributor info for each article and for each language. Since I commented out that module (locally! nothing permanent), I haven't had any rate limit issues.

I added some functions around fetching of URLs to handle when data is missing. I can now see all published articles on my local copy of the website. However, the broken images are pretty ugly. Here's an example: Screen Shot 2022-10-31 at 5 37 56 PM

Screen Shot 2022-10-31 at 5 51 16 PM

How would ya'll like to handle this going forwards?

  • Should we use a generic thumbnail for all non-imaged articles?
  • Or just take it easy and remove the image from the layouts?

marshmallowrobot avatar Oct 31 '22 21:10 marshmallowrobot

@marshmallowrobot this is amazing progress!

How about just white space if no video?

rrrutledge avatar Oct 31 '22 23:10 rrrutledge

Code updated in https://github.com/InnerSourceCommons/InnerSourceLearningPath/pull/502 Website formatting updated in https://github.com/InnerSourceCommons/innersourcecommons.org/pull/393

rrrutledge avatar Nov 01 '22 15:11 rrrutledge

Thanks for working on this @marshmallowrobot! Screenshot looks good! I side with "white space" as @rrrutledge proposed. Of course, we could always use a an appropriately licensed and carefully curated meme / member of the creative-404-images tribe. :wink:

lenucksi avatar Nov 10 '22 19:11 lenucksi

Blocked waiting for the rate-limiting work to finish.

rrrutledge avatar Nov 15 '22 16:11 rrrutledge

I'm going to close this issue, as the fix was deployed a couple of weeks ago.

marshmallowrobot avatar Dec 03 '22 15:12 marshmallowrobot

Yea❗️ Thank you, @marshmallowrobot

rrrutledge avatar Dec 03 '22 21:12 rrrutledge