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

STY: Sync with carpentries remote styles #22

Merged
merged 65 commits into from
May 10, 2021

Conversation

josephmje
Copy link
Contributor

No description provided.

tobyhodges and others added 30 commits November 5, 2020 11:10
... by using GFM (GitHub-flavored Markdown) parser (`kramdown-parser-gfm`)
instead of the default one (`kramdown`).

The default one fails to produce an AST (Abstract Syntax Tree) when
there is no blank line before the line with the opening code fence.

Related:
 - gettalong/kramdown#530
 - Python-Markdown/markdown#807

Fixes: carpentries/styles#543
...to make them distinguishable from regular text. And for accessibility!
lesson_check.py allow for missing life_cycle
There are times when the AST is malformed and does not emit a class for
the code element. We do not want the parser to crash when this happens,
but we also want to notify ourselves that the AST is malformed.

This should not result in an error because as we saw in
carpentries/styles#543, the parser itself can
cause these malformations when the lesson itself renders well. Even
though we fixed the previous issue with an updated parser, problems
still persist:
swcarpentry/r-novice-gapminder#696 (comment)

I fully admit that this is a kludge.
I've removed the print condition, because it will just result in an error no matter what (sigh)
Add catch for None type code block in lesson_check
Makefile: fix 'bundle config' command flags
Clean up:
1. `.vendor` directory where Bundler installs all the gems.
2. `.bundle` directory where Bundler stores its settings.
3. `Gemfile.lock` file generated by the Bundler.
add class for images with a drop shadow
zkamvar and others added 27 commits April 14, 2021 17:38
Will be useful for HPC-Carpentry lessons, GPU programming lesson as well as Julia lessons which are currently in the incubator.
bin/lesson_check.py: one more fix for using_remote_theme()
Current syncing procedure that used in the Template workflow fails for:

1. Lessons that are, in fact, nsync with the styles repo.
2. For lessons that use The Carpentries' remote theme and have deleted
   some of the files.

This PR makes this step a little bit more intelligent and takes into
account the above two scenarios.
Co-authored-by: Zhian N. Kamvar <zkamvar@gmail.com>
Template workflow: smarter syncing with the styles repo
bin/lesson_check.py: allow comments and empty lines in links.md

Fixes carpentries/styles#581
bin/lesson_check.py: use proper function
Allow lines that contain a single image or a single link
to go over the suggested line length limit.
bin/lesson_check.py: allow exceptions to line length limit

Fixes carpentries/styles#591
This change hardens the pattern that matches single-line
image or link:

1. It extends the pattern to be matched in a heading
2. It allows the line to contain {: ...} customizations
3. It allows the line to end with \
lesson_check.py: harden single-line image/link pattern

Fixes carpentries/styles#591
@josephmje josephmje merged commit 4e6e76f into carpentries-incubator:gh-pages May 10, 2021
@netlify
Copy link

netlify bot commented May 10, 2021

Deploy preview for carpentries-intromri failed.

Built with commit 1352906

https://app.netlify.com/sites/carpentries-intromri/deploys/60996fb2b845c7000787dc87

@josephmje josephmje deleted the sty/sync-upstream branch October 1, 2021 10:51
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

Successfully merging this pull request may close these issues.

9 participants