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

Update styles 2021-04-14 #338

Merged
merged 42 commits into from
Apr 16, 2021
Merged

Update styles 2021-04-14 #338

merged 42 commits into from
Apr 16, 2021

Conversation

zkamvar
Copy link
Contributor

@zkamvar zkamvar commented Apr 15, 2021

This update reorganizes the makefile a bit, adds an image-with-shadow class, updates link colours, updates links, and updates a lot of corner cases.

I updated the styles via the flight rules: https://github.com/carpentries/maintainer-resources/blob/main/FLIGHT_RULES.md#update-styles

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
maxim-belkin and others added 9 commits March 23, 2021 09:33
Makefile: don't fail when Python isn't found
Fixes the following issue:

```
$ make site
lib paths: /Library/Frameworks/R.framework/Versions/3.5/Resources/library
Error in install.packages(missing_pkgs, lib = lib, repos = repos) :
  no packages were specified
Calls: install_required_packages -> install.packages
Execution halted
make: *** [install-rmd-deps] Error 1
```
bin/dependencies.R: handle 'no packages were specified' error
@zkamvar zkamvar mentioned this pull request Apr 15, 2021
@zkamvar
Copy link
Contributor Author

zkamvar commented Apr 15, 2021

This needs to wait for carpentries/styles#577 to be added to the branch.

@zkamvar zkamvar requested a review from maxim-belkin April 15, 2021 18:17
@fmichonneau fmichonneau merged commit ba38508 into carpentries:gh-pages Apr 16, 2021
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.

8 participants