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

20210909 styles upgrade #569

Merged
merged 382 commits into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
382 commits
Select commit Hold shift + click to select a range
51d615d
bin/lesson_check.py: avoid inconsistent grammar
katrinleinweber Apr 18, 2019
19885f7
util.py: hot fix for YAML loader
maxim-belkin Apr 18, 2019
29dc6c4
add data-checker-ignore attributes to links that only work on GitHub
fmichonneau Apr 26, 2019
766155a
add data-checker-ignore attributes to footer links
fmichonneau Apr 26, 2019
2507646
make title show episode title first
maneesha May 7, 2019
6ecf1b7
use ndash as separator
fmichonneau May 13, 2019
6e5cba2
upgrade to bootstrap 3.4.1
fmichonneau May 13, 2019
133eb68
Merge branch 'gh-pages' of github.com:carpentries/styles into gh-pages
fmichonneau May 13, 2019
e684332
update coc incident reporting link
fmichonneau May 14, 2019
112b021
Update PULL_REQUEST_TEMPLATE.md
raynamharris May 15, 2019
99a5587
Update ISSUE_TEMPLATE.md
raynamharris May 15, 2019
2ef77c9
links.md: fix lesson-setup link
maxim-belkin May 29, 2019
8fab20f
links.md: include base_path.html
maxim-belkin May 29, 2019
f7bb0f8
aio.md: multiple improvements
fmichonneau May 29, 2019
429d91c
[fix #408] remove aio from files that need to be initialized
fmichonneau May 31, 2019
abbcce2
Merge branch 'gh-pages' of github.com:carpentries/styles into gh-pages
fmichonneau May 31, 2019
90f06fc
lesson-check: exclude aio.md, fix read_references
maxim-belkin Jun 1, 2019
524847a
bump jekyll version to match github pages version
alee Jun 17, 2019
24013d3
Callout (and other) blocks: proper font size, margins
maxim-belkin Jun 18, 2019
522d98d
Use darker purple for code blocks
maxim-belkin Jun 18, 2019
9320702
Use 1px borders: fix Google Chrome & Edge
maxim-belkin Jun 20, 2019
6d015fe
specify language based on engine
fmichonneau Jun 21, 2019
bd56b2b
Ignore Jekyll 4's cache
katrinleinweber Aug 21, 2019
20138ef
assets/css/lesson.scss: add proper padding to the top of paragraphs i…
kekoziar Aug 30, 2019
b276295
restore lost CSS settings
maxim-belkin Aug 30, 2019
e176d3b
Manual ordering of episodes and extras
maxim-belkin Sep 27, 2019
26e9bee
[fix carpentries/workshop-template#513] remove site.title outside
fmichonneau Oct 11, 2019
5d9533b
update survey links
fmichonneau Oct 28, 2019
3b84885
Switch to Liquid comments
maxim-belkin Nov 6, 2019
e06f686
bin/boilerplate/README.md: fix typo
josephmje Nov 8, 2019
a966a68
Use Jekyll to generate the 'all-in-one' page (carpentries/styles#438)
fmichonneau Nov 8, 2019
8ee9c20
manual_episode_order.html: fix typo in a comment
maxim-belkin Nov 11, 2019
134f806
Enable 'Sponsor' button on GitHub repos
maxim-belkin Nov 13, 2019
af588eb
remove Jekyll command markers from comment block
fmichonneau Dec 2, 2019
0cc96db
Forced re-encoding of text to UTF-8, to avoid issues on Windows
JoaoRodrigues Dec 3, 2019
8566047
Refactored paths to make use of OS agnostic methods
JoaoRodrigues Dec 3, 2019
d88b22a
Modified shebang to use python, not python3.
JoaoRodrigues Dec 3, 2019
21a979b
Reverted change of permissiveness on lesson_check
JoaoRodrigues Dec 3, 2019
901c574
Cleaned leftover debug code and old implementations.
JoaoRodrigues Dec 4, 2019
82dd7fb
Added PYTHON variable to define executable to run python scripts
JoaoRodrigues Dec 4, 2019
c9add9b
Reverted variable names
JoaoRodrigues Dec 4, 2019
a2d1a1f
Removed shebang lines from Python scripts to avoid cross-OS problems
JoaoRodrigues Dec 4, 2019
cd41c7b
Fixes encoding problem on Windows systems, with minimal changes to ex…
JoaoRodrigues Dec 5, 2019
db22e7b
Silenced output of PYTHON calls
JoaoRodrigues Dec 5, 2019
4381bcb
Makefile: detect Python 3
maxim-belkin Dec 5, 2019
ff5f567
util.py: remove empty line
maxim-belkin Dec 5, 2019
a61b7f6
Undo optimizations to read_all_markdown
maxim-belkin Dec 5, 2019
bab0fca
Remove executable bits from Python scripts
maxim-belkin Dec 5, 2019
bce2366
lesson_initialize: windows compatibility
maxim-belkin Dec 5, 2019
1a0adfd
lesson_check.py: Windows-compatible regular expression pattern
maxim-belkin Dec 5, 2019
ec294aa
repo_check.py: enforce utf-8 encoding
maxim-belkin Dec 5, 2019
caf3b88
clarify comment on python check block
brownsarahm Dec 6, 2019
d454d59
Makefile: Windows does not like single quotes
maxim-belkin Dec 6, 2019
41605eb
test_lesson_check.py: skip unnecessary steps
maxim-belkin Dec 6, 2019
651af34
Makefile: suppress error message on Windows
maxim-belkin Dec 6, 2019
8eb0425
fix typo in lesson_initialize.py
maxim-belkin Dec 6, 2019
ecb1611
Makefile: suppress another error message on Windows
maxim-belkin Dec 6, 2019
e6622b8
Makefile: handle MS Store's Python 3
maxim-belkin Dec 9, 2019
a732a2b
Makefile: fix syntax in conditional
maxim-belkin Dec 9, 2019
f1cb887
Makefile: fix two more syntax errors in conditionals
maxim-belkin Dec 9, 2019
48dd391
fix urls in _config.yml
fmichonneau Dec 11, 2019
8803fe5
Merge pull request carpentries/styles#446
maxim-belkin Dec 12, 2019
a56f2a0
use bundler to render lessons
fmichonneau Sep 12, 2019
0b6797e
install gems locally
fmichonneau Dec 11, 2019
116d5b9
refactor use of docker
fmichonneau Dec 11, 2019
fade440
add @maxim-belkin suggestions
fmichonneau Dec 13, 2019
aaab128
add .bundle to .gitignore
fmichonneau Dec 13, 2019
38c1c0c
Makefile: Specify shell. Don't include commands.mk
maxim-belkin Dec 13, 2019
a435fcd
Makefile: use Python to execute repo_check.py
maxim-belkin Dec 13, 2019
e986d1a
Makefile: improve commands target and commands categories (#450)
maxim-belkin Dec 13, 2019
a0c0681
Update R install in .travis.yml (#430)
agitter Dec 16, 2019
b5c2878
specify YAML loader
fmichonneau Dec 18, 2019
2f07ce1
add warning hook + CSS class for Rmd-based lessons (#455)
fmichonneau Feb 10, 2020
aaf5d76
Update PyPI link
katrinleinweber Feb 12, 2020
b8fa0cd
_includes/links.md: Update PyYAML link (#457)
maxim-belkin Feb 12, 2020
bc5c9ba
Use carpentries/lesson-docker for docker-serve make rule (#461)
zkamvar May 28, 2020
4f78e17
Use renv (#462)
zkamvar May 29, 2020
0deede1
Improve issue template (#463)
maxim-belkin Jun 15, 2020
6f30043
lesson.scss: style tab panels on setup pages (#464)
maxim-belkin Jun 19, 2020
974ee95
Improve pull request template (#465)
maxim-belkin Jun 22, 2020
3847b97
OS stripe color (#468)
maxim-belkin Jun 29, 2020
a52f6c2
bump ruby version
fmichonneau Jun 29, 2020
5d4aaa2
Upgrade jQuery to 3.5.1 (#469)
maxim-belkin Jun 30, 2020
3001ab5
assets/js/lesson.js: use .length instead of .size()
maxim-belkin Jul 6, 2020
5fe9eec
License is not a copyright. License info ID (#472)
maxim-belkin Jul 6, 2020
ecaef44
fix AMY's URL
fmichonneau Jul 10, 2020
4f4de3a
Deprecated use of --path when installing bundle (#473)
Jul 10, 2020
2e9d38f
add warning blockquote style, carpentries/styles#49 (#475)
jsta Jul 24, 2020
ff2fbb8
Make links in code tags distinguishable (#478)
unode Jul 25, 2020
3dbfd9a
_config.yml: link to Lesson Life Cycle chapter of CDH
tobyhodges Jul 28, 2020
b11b6d1
repo_check.py: allow URLs not ending with .git (#482)
maxim-belkin Aug 5, 2020
115a735
Makefile: fix comment in front of `lesson-check` (#481)
maxim-belkin Aug 5, 2020
a331232
repo_check.py: match https repositories (#483)
maxim-belkin Aug 5, 2020
b12821e
Makefile: don't use /bin/bash shell (#484)
maxim-belkin Aug 7, 2020
790278e
[fix carpentries/styles#477] rewrite travis script
fmichonneau Aug 7, 2020
d3aa582
add vendor folder to gitignore and _config.yml
fmichonneau Aug 7, 2020
6861f75
OS stripe: adjust line height (#490)
maxim-belkin Aug 11, 2020
95221b1
Makefile: fix 'lesson-fixme' target for Windows (#486)
maxim-belkin Aug 11, 2020
52597a5
Fix Python scripts for Windows: UTF-8 encoding (#485)
maxim-belkin Aug 11, 2020
70213c3
only display Episodes drop-down if we have episodes to show (#491)
fmichonneau Aug 11, 2020
32e788b
fix variable name
fmichonneau Aug 13, 2020
bcb686d
GitHub Actions: check lesson template (#489)
maxim-belkin Aug 14, 2020
61db2b1
fix: tighten definitions of highlighter (#496)
henryiii Aug 19, 2020
33c71b1
add three more common languages (#497)
henryiii Aug 19, 2020
41d0e9a
remove unused code highlight classes (#498)
fmichonneau Aug 20, 2020
c1e8856
Sync styles first (#494)
fmichonneau Aug 22, 2020
99ecdf4
GitHub Actions: website (#488)
maxim-belkin Aug 25, 2020
6639d4b
GitHub Actions: better workflow and job names (#500)
maxim-belkin Aug 25, 2020
a8eee52
GitHub Action: website.yml: don't run in forks (#501)
maxim-belkin Sep 2, 2020
b11ce7f
GH Website action: rename + don't use lesson directory (#504)
maxim-belkin Sep 21, 2020
482c223
lesson.scss: styling for DIVs for embedding Youtube videos (#503)
maxim-belkin Sep 21, 2020
f53be37
update link to discuss mailing list (#507)
tobyhodges Oct 8, 2020
53e9913
add default repository to install_required_packages() (#509)
zkamvar Oct 19, 2020
2c6b97e
Merge branch 'gh-pages' of github.com:carpentries/styles into gh-pages
fmichonneau Oct 20, 2020
11db6b0
add warning blockquote
fmichonneau Oct 7, 2020
f5940d9
Revert "Merge branch 'gh-pages' of github.com:carpentries/styles into…
fmichonneau Oct 20, 2020
efa2cc9
add warning code block
fmichonneau Oct 20, 2020
207d649
update expected reference filename (#508)
tobyhodges Oct 21, 2020
5b906e7
lesson.scss: no borders around unrecognized code (#510)
maxim-belkin Oct 22, 2020
462be1e
bump ruby version (as specified in github-pages v209)
fmichonneau Oct 28, 2020
941da2b
drop patch version, fix at v1
fmichonneau Oct 28, 2020
c97dc12
removing contractions from CONTRIBUTING (#512)
ChristinaLK Nov 2, 2020
1d32319
add image-with-shadow class
tobyhodges Nov 5, 2020
209797f
_config.yml: mention Carpentries Incubator
maxim-belkin Nov 5, 2020
c4b6e23
Matlab -> MATLAB
tobyhodges Nov 9, 2020
ca16e0b
set CRAN url if default is "@CRAN@"
zkamvar Dec 2, 2020
32ab0d1
Fix Ruby style
maxim-belkin Nov 24, 2020
fdb264a
accept any base filename for Rmd episodes
tobyhodges Dec 8, 2020
ce79a4b
run R-based lessons in forks
zkamvar Dec 7, 2020
423bf57
add control structure
zkamvar Dec 7, 2020
d8f93f0
404 page for better learner experience
maxim-belkin Nov 24, 2020
2b523bc
lesson.scss: wildcard selectors for code blocks
maxim-belkin Nov 20, 2020
3efe669
Ignore .jekyll-metatada
klieret Dec 17, 2020
da99378
Speed up builds of R-based lessons
zkamvar Dec 17, 2020
a60a74a
No need for User Agent string
zkamvar Dec 17, 2020
7fd7d18
permissive checks for pre-alpha lessons
zkamvar Dec 18, 2020
9e641fd
bin/lesson_check.py: allow 'language-*' code blocks (#532)
tobyhodges Dec 21, 2020
acdbd1c
bin/lesson_check.py: allow 'caution' blockquote
maxim-belkin Dec 22, 2020
16e571e
Merge pull request #537 from maxim-belkin/caution-blockquote
zkamvar Dec 22, 2020
3d5f6b5
avoid ansi color characters from being printed
zkamvar Jan 6, 2021
627d1a1
deploy from "website" action
fmichonneau Dec 18, 2020
afb88e2
deploy R-based lessons without using another action
fmichonneau Dec 18, 2020
08e26e6
also delete _site
fmichonneau Dec 18, 2020
70e3484
include @zkamvar suggestions
fmichonneau Jan 6, 2021
951140e
pin ubuntu version to 20.04 (#540)
fmichonneau Jan 8, 2021
2cd3c9c
GitHub Actions: cache required R packages (#534)
fmichonneau Jan 8, 2021
c92e47c
add missing parenthesis
fmichonneau Jan 8, 2021
bfd8c00
Add incubator option for carpentry field. (#542)
tkphd Jan 11, 2021
740773a
.editorconfig: don't trim trailing spaces in markdown
unode Jan 27, 2021
5bc7724
lesson.scss: HTML block
maxim-belkin Jan 27, 2021
d021e1f
add patch to clean gh-pages before committing (#545)
zkamvar Feb 10, 2021
f419f9c
Fix Kramdown parser crash
maxim-belkin Feb 15, 2021
ec29c6b
Merge pull request #546 from maxim-belkin/fix543
zkamvar Feb 16, 2021
2a550c7
bin/util.py: Change ruby executable to "bundle exec ruby"
reid-a Feb 22, 2021
a4e53f9
Change link colours (#549)
baileythegreen Feb 22, 2021
03fb1a0
bin/workshop_check.py: update default contact email address
tobyhodges Mar 4, 2021
a841a56
Gemfile: add 'webrick' dependency for Ruby 3.0.0 and above
josephmje Mar 5, 2021
32f7bd1
lesson_check.py allow for missing life_cycle
zkamvar Mar 10, 2021
b2f42c2
update with Maxim's suggestion
zkamvar Mar 10, 2021
a283c4b
Merge pull request #557 from zkamvar/znk-fix-556
zkamvar Mar 10, 2021
0554a8d
Add catch for None type code block in lesson_check
zkamvar Mar 11, 2021
cce6a66
fix syntax
zkamvar Mar 11, 2021
091d31a
Merge pull request #558 from zkamvar/znk-fix-550
zkamvar Mar 11, 2021
905d24a
Makefile: fix 'bundle config' command flags
maxim-belkin Mar 16, 2021
4e81182
Merge pull request #559 from maxim-belkin/bundle-config-fix
zkamvar Mar 17, 2021
b43257a
Makefile: clean target: remove .vendor, .bundle, Gemfile.lock
maxim-belkin Mar 18, 2021
39a32f6
Makefile: silence Docker commands
maxim-belkin Mar 18, 2021
588f2af
Merge pull request #561 from maxim-belkin/silence-docker-commands
zkamvar Mar 18, 2021
ed77eda
use Ruby's official GH Actions
fmichonneau Mar 19, 2021
b46187f
Makefile: use SHELL to call bin/knit_lesson.sh
maxim-belkin Mar 19, 2021
b1ca20a
Makefile: fix up PHONY targets
maxim-belkin Mar 19, 2021
943c8d9
Fix GitHub actions for lessons in Rmarkdown
maxim-belkin Mar 19, 2021
13d218a
Merge pull request #565 from maxim-belkin/attempt-to-fix-r-on-windows
zkamvar Mar 19, 2021
625c55e
Merge pull request #563 from maxim-belkin/phony-targets
zkamvar Mar 19, 2021
d6c86ba
Merge branch 'gh-pages' into image-with-shadow-class
tobyhodges Mar 22, 2021
4df32a8
apply single shadow to image class
tobyhodges Mar 22, 2021
93dfc15
use grey shadow instead of transparent black
tobyhodges Mar 22, 2021
4b20368
expand image-with-shadow selection
tobyhodges Mar 23, 2021
d0c90ee
Merge pull request carpentries/styles#514
maxim-belkin Mar 23, 2021
5a010ab
Makefile: don't fail when Python isn't found
maxim-belkin Mar 23, 2021
50fd61f
Merge pull request carpentries/styles#566
maxim-belkin Mar 24, 2021
1bad008
bin/dependencies.R: handle 'no packages were specified' error
maxim-belkin Mar 27, 2021
4b3d44a
Merge pull request #567 from maxim-belkin/no-missing-dependencies
zkamvar Mar 29, 2021
4df5052
Don't check links.md in lessons that use remote theme
maxim-belkin Apr 14, 2021
9a73007
add link references to code_of_conduct.md (#572)
tobyhodges Apr 14, 2021
ced2244
Update links.md
alanocallaghan Apr 15, 2021
72d2b85
Merge pull request #575 from Alanocallaghan/patch-1
zkamvar Apr 15, 2021
494e2d6
add source_dir argument
zkamvar Apr 15, 2021
efe8c04
lesson_check.py: add 'source_dir' as an argument to using_remote_theme()
maxim-belkin Apr 15, 2021
01fa7e6
Improved relative_root_path
maxim-belkin Apr 16, 2021
8541f28
update contributing guide
tobyhodges Apr 17, 2021
4a9721d
Merge pull request #579 from tobyhodges/patch-8
zkamvar Apr 17, 2021
a56a34e
add further languages for box titles (#580)
bkmgit Apr 20, 2021
6ce5c22
Merge pull request #578 from maxim-belkin/fix-404
zkamvar Apr 20, 2021
0c92757
bin/lesson_check.py: allow comments and empty lines in links.md
maxim-belkin Apr 21, 2021
7e94928
bin/lesson_check.py: one more fix for using_remote_theme()
maxim-belkin Apr 22, 2021
14ca369
Merge pull request #585 from maxim-belkin/one-last-fix
zkamvar Apr 23, 2021
ac0a2bf
Template workflow: add two more lessons
maxim-belkin Apr 21, 2021
091ecf7
add make lesson-check-all step
zkamvar Apr 22, 2021
902705d
Set working directory for the 'make site' step
maxim-belkin Apr 22, 2021
97c32b9
Merge pull request #584 from maxim-belkin/add-two-more-lessons
zkamvar Apr 23, 2021
d3f553d
Template workflow: smarter syncing with the styles repo
maxim-belkin Apr 21, 2021
db953ba
Apply Zhian's suggestions
maxim-belkin Apr 23, 2021
2abba21
Merge pull request #583 from maxim-belkin/better-syncing
zkamvar Apr 23, 2021
973177e
add math support with katex (#573)
alanocallaghan Apr 27, 2021
456c214
bin/util.py: remove unused 'IMAGE_FILE_SUFFIX' var (#590)
maxim-belkin Apr 30, 2021
6d5b41e
Merge pull request carpentries/styles#582
maxim-belkin May 6, 2021
d3e11ab
bin/lesson_check.py: use proper function
maxim-belkin May 6, 2021
5e32b18
Merge pull request carpentries/styles#593
maxim-belkin May 6, 2021
0f1cec8
bin/lesson_check.py: allow exceptions to line length limit
maxim-belkin May 6, 2021
c82a669
Merge pull request carpentries/styles#594
maxim-belkin May 6, 2021
5b9bff4
lesson_check.py: harden single-line image/link pattern
maxim-belkin May 9, 2021
af7efa5
Merge pull request carpentries/styles#597
maxim-belkin May 9, 2021
a927169
lesson_check.py: relax P_LINK_IMAGE_LINE pattern
maxim-belkin May 11, 2021
ba5acb9
Merge pull request carpentries/styles#599
maxim-belkin May 12, 2021
ea9b44c
bin/util.py: Factor out reporter class. Define __all__
maxim-belkin May 7, 2021
4afcce8
Don't force hostname into relative_root_path
unode May 14, 2021
9448b99
Merge pull request carpentries/styles#601
maxim-belkin May 15, 2021
5e8d059
lesson_check.py: add a comment about importing * from a package
maxim-belkin May 19, 2021
0ff1e35
Merge pull request #596 from maxim-belkin/reporter
zkamvar May 19, 2021
4c415a9
lesson.scss: define 'inline' class for images
maxim-belkin May 19, 2021
5919530
Fix Reporter class imports
maxim-belkin May 20, 2021
51c88fe
Merge pull request carpentries/styles#603
maxim-belkin May 20, 2021
e1f7f91
Merge pull request carpentries/styles#602
maxim-belkin May 20, 2021
da77111
update R dependency search; Allow Bioconductor packages (#600)
zkamvar May 21, 2021
929c1a7
Automatically add deep anchor links using AnchorJS
maxim-belkin Jun 5, 2021
243208b
Merge pull request carpentries/styles#606
maxim-belkin Jun 10, 2021
b33336b
Makefile: require index.md (#607)
maxim-belkin Jun 24, 2021
d222b47
Makefile: docker-serve target: ensure Docker is installed (#608)
maxim-belkin Jun 25, 2021
9d1442f
Fix broken "How to contribute" link
kekoziar Jul 3, 2021
6b49768
Merge pull request carpentries/styles#610
maxim-belkin Jul 3, 2021
a7d50e1
lesson_check.py: report check status at the end
maxim-belkin Jul 9, 2021
2735d4e
util.py: load_yaml: Don't fail when it's not necessary
maxim-belkin Jul 9, 2021
8498d31
lesson_check.py: fix error message for the 'defaults' check
maxim-belkin Jul 9, 2021
19dc8e3
lesson_check.py: use proper regex for matching episode files
maxim-belkin Jul 10, 2021
7634a8c
Merge pull request carpentries/styles#612
maxim-belkin Jul 12, 2021
092e5c9
Merge pull request carpentries/styles#613
maxim-belkin Jul 12, 2021
d0aceb3
Merge pull request carpentries/styles#614
maxim-belkin Jul 12, 2021
14d7356
Merge pull request carpentries/styles#615
maxim-belkin Jul 12, 2021
e3808e8
lesson-check.py: read `config.yml` only once
maxim-belkin Jul 12, 2021
e1b4838
Merge pull request carpentries/styles#616
maxim-belkin Jul 13, 2021
1019f12
404.md: expand contractions (#620)
maxim-belkin Jul 20, 2021
5237285
Syllabus: add conditional intructor training pre-/post- surveys (#618)
maxim-belkin Jul 20, 2021
674025c
Navigation bar: allow excluding extras (#617)
maxim-belkin Jul 20, 2021
332145f
add styling for lesson in The Carpentries Lab
fmichonneau Jul 22, 2021
69f1d0a
remove contractions
fmichonneau Sep 3, 2021
1632471
remove contraction
fmichonneau Sep 3, 2021
e867adf
remove contraction
fmichonneau Sep 3, 2021
4424121
remove funding file to use organization's
fmichonneau Sep 9, 2021
befd5e0
Merge branch 'gh-pages' of github.com:carpentries/styles into 2021090…
fmichonneau Sep 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ trim_trailing_whitespace = true
indent_size = 2
indent_style = space
max_line_length = 100 # Please keep this in sync with bin/lesson_check.py!
trim_trailing_whitespace = false # keep trailing spaces in markdown - 2+ spaces are translated to a hard break (<br/>)

[*.r]
max_line_length = 80
Expand Down
20 changes: 15 additions & 5 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
Please delete this line and the text below before submitting your contribution.
<details>
<summary><strong>Instructions</strong></summary>

---
Thanks for contributing! :heart:

Thanks for contributing! If this contribution is for instructor training, please send an email to checkout@carpentries.org with a link to this contribution so we can record your progress. You’ve completed your contribution step for instructor checkout just by submitting this contribution.
If this contribution is for instructor training, please email the link to this contribution to
checkout@carpentries.org so we can record your progress. You've completed your contribution
step for instructor checkout by submitting this contribution!

If this issue is about a specific episode within a lesson, please provide its link or filename.

Please keep in mind that lesson maintainers are volunteers and it may be some time before they can respond to your contribution. Although not all contributions can be incorporated into the lesson materials, we appreciate your time and effort to improve the curriculum. If you have any questions about the lesson maintenance process or would like to volunteer your time as a contribution reviewer, please contact The Carpentries Team at team@carpentries.org.
Keep in mind that **lesson maintainers are volunteers** and it may take them some time to
respond to your contribution. Although not all contributions can be incorporated into the lesson
materials, we appreciate your time and effort to improve the curriculum. If you have any questions
about the lesson maintenance process or would like to volunteer your time as a contribution
reviewer, please contact The Carpentries Team at team@carpentries.org.

---
You may delete these instructions from your comment.

\- The Carpentries
</details>
20 changes: 15 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
Please delete this line and the text below before submitting your contribution.
<details>
<summary><strong>Instructions</strong></summary>

---
Thanks for contributing! :heart:

Thanks for contributing! If this contribution is for instructor training, please send an email to checkout@carpentries.org with a link to this contribution so we can record your progress. You’ve completed your contribution step for instructor checkout just by submitting this contribution.
If this contribution is for instructor training, please email the link to this contribution to
checkout@carpentries.org so we can record your progress. You've completed your contribution
step for instructor checkout by submitting this contribution!

Please keep in mind that lesson maintainers are volunteers and it may be some time before they can respond to your contribution. Although not all contributions can be incorporated into the lesson materials, we appreciate your time and effort to improve the curriculum. If you have any questions about the lesson maintenance process or would like to volunteer your time as a contribution reviewer, please contact The Carpentries Team at team@carpentries.org.
Keep in mind that **lesson maintainers are volunteers** and it may take them some time to
respond to your contribution. Although not all contributions can be incorporated into the lesson
materials, we appreciate your time and effort to improve the curriculum. If you have any questions
about the lesson maintenance process or would like to volunteer your time as a contribution
reviewer, please contact The Carpentries Team at team@carpentries.org.

---
You may delete these instructions from your comment.

\- The Carpentries
</details>
184 changes: 184 additions & 0 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
name: Test template
on:
push:
branches: gh-pages
pull_request:
jobs:
check-template:
name: ${{ matrix.lesson-name }} (${{ matrix.os-name }})
if: github.repository == 'carpentries/styles'
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
lesson: [swcarpentry/shell-novice, datacarpentry/r-intro-geospatial, librarycarpentry/lc-git]
os: [ubuntu-20.04, macos-latest, windows-latest]
experimental: [false]
include:
- os: ubuntu-20.04
os-name: Linux
- os: macos-latest
os-name: macOS
- os: windows-latest
os-name: Windows
- lesson: swcarpentry/shell-novice
lesson-name: (SWC) Shell novice
- lesson: datacarpentry/r-intro-geospatial
lesson-name: (DC) R Intro Geospatial
- lesson: librarycarpentry/lc-git
lesson-name: (LC) Intro to Git
- lesson: datacarpentry/astronomy-python
lesson-name: (DC) Foundations of Astronomical Data Science
experimental: true
os: ubuntu-20.04
os-name: Linux
- lesson: carpentries/lesson-example
lesson-name: (CP) Lesson Example
experimental: false
os: ubuntu-20.04
os-name: Linux
defaults:
run:
shell: bash # forces 'Git for Windows' on Windows
env:
RSPM: 'https://packagemanager.rstudio.com/cran/__linux__/focal/latest'
steps:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install GitHub Pages, Bundler, and kramdown gems
run: |
gem install github-pages bundler kramdown kramdown-parser-gfm

- name: Install Python modules
run: |
if [[ $RUNNER_OS == macOS || $RUNNER_OS == Linux ]]; then
python3 -m pip install --upgrade pip setuptools wheel pyyaml==5.3.1 requests
elif [[ $RUNNER_OS == Windows ]]; then
python -m pip install --upgrade pip setuptools wheel pyyaml==5.3.1 requests
fi

- name: Checkout the ${{ matrix.lesson }} lesson
uses: actions/checkout@master
with:
repository: ${{ matrix.lesson }}
path: lesson
fetch-depth: 0

- name: Sync lesson with carpentries/styles
working-directory: lesson
run: |
echo "::group::Fetch Styles"
if [[ -n "${{ github.event.pull_request.number }}" ]]
then
ref="refs/pull/${{ github.event.pull_request.number }}/head"
else
ref="gh-pages"
fi

git config --global user.email "team@carpentries.org"
git config --global user.name "The Carpentries Bot"

git remote add styles https://github.com/carpentries/styles.git
git fetch styles $ref:styles-ref
echo "::endgroup::"
echo "::group::Synchronize Styles"
# Sync up only if necessary
if [[ $(git rev-list --count HEAD..styles-ref) != 0 ]]
then

# The merge command below might fail for lessons that use remote theme
# https://github.com/carpentries/carpentries-theme
echo "Testing merge using recursive strategy, accepting upstream changes without committing"
if ! git merge -s recursive -Xtheirs --no-commit styles-ref
then

# Remove "deleted by us, unmerged" files from the staging area.
# these are the files that were removed from the lesson
# but are still present in the carpentries/styles repo
echo "Removing previously deleted files"
git rm $(git diff --name-only --diff-filter=DU)

# If there are still "unmerged" files,
# let's raise an error and look into this more closely
if [[ -n $(git diff --name-only --diff-filter=U) ]]
then
echo "There were unmerged files in ${{ matrix.lesson-name }}:"
echo "$(git diff --compact-summary --diff-filter=U)"
exit 1
fi
fi

echo "Committing changes"
git commit -m "Sync lesson with carpentries/styles"
fi
echo "::endgroup::"

- name: Look for R-markdown files
id: check-rmd
working-directory: lesson
run: |
echo "::set-output name=count::$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})"

- name: Set up R
if: steps.check-rmd.outputs.count != 0
uses: r-lib/actions/setup-r@master
with:
r-version: 'release'

- name: Install needed packages
if: steps.check-rmd.outputs.count != 0
working-directory: lesson
run: |
source('bin/dependencies.R')
install_required_packages(.libPaths()[1])
shell: Rscript {0}

- name: Query dependencies
if: steps.check-rmd.outputs.count != 0
working-directory: lesson
run: |
source('bin/dependencies.R')
deps <- identify_dependencies()
create_description(deps)
use_bioc_repos()
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Restore Package Cache
if: runner.os != 'Windows' && steps.check-rmd.outputs.count != 0
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install stringi from source
if: runner.os == 'Linux' && steps.check-rmd.outputs.count != 0
run: install.packages('stringi', repos='https://cloud.r-project.org')
shell: Rscript {0}

- name: Install system dependencies for R packages
if: runner.os == 'Linux' && steps.check-rmd.outputs.count != 0
working-directory: lesson
run: |
while read -r cmd
do
eval sudo $cmd || echo "Nothing to update"
done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "20.04"), sep = "\n")')

- run: make site
working-directory: lesson

- run: make lesson-check-all
working-directory: lesson
122 changes: 122 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Website
on:
push:
branches:
- gh-pages
- main
pull_request: []
jobs:
build-website:
if: ${{ !endsWith(github.repository, '/styles') }}
runs-on: ubuntu-20.04
env:
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash
steps:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install GitHub Pages, Bundler, and kramdown gems
run: |
gem install github-pages bundler kramdown kramdown-parser-gfm

- name: Install Python modules
run: |
python3 -m pip install --upgrade pip setuptools wheel pyyaml==5.3.1 requests

- name: Checkout the lesson
uses: actions/checkout@master
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Look for R-markdown files
id: check-rmd
run: |
echo "::set-output name=count::$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})"

- name: Set up R
if: steps.check-rmd.outputs.count != 0
uses: r-lib/actions/setup-r@master
with:
r-version: 'release'

- name: Restore R Cache
if: steps.check-rmd.outputs.count != 0
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install needed packages
if: steps.check-rmd.outputs.count != 0
run: |
source('bin/dependencies.R')
install_required_packages()
shell: Rscript {0}

- name: Query dependencies
if: steps.check-rmd.outputs.count != 0
run: |
source('bin/dependencies.R')
deps <- identify_dependencies()
create_description(deps)
use_bioc_repos()
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}


- name: Install system dependencies for R packages
if: steps.check-rmd.outputs.count != 0
run: |
while read -r cmd
do
eval sudo $cmd || echo "Nothing to update"
done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "20.04"), sep = "\n")')

- name: Render the markdown and confirm that the site can be built
run: make site

- name: Checkout github pages
if: ${{ github.event_name == 'push' && steps.check-rmd.outputs.count != 0 && github.ref != 'refs/heads/gh-pages'}}
uses: actions/checkout@master
with:
ref: gh-pages
path: gh-pages

- name: Commit and Push
if: ${{ github.event_name == 'push' && steps.check-rmd.outputs.count != 0 && github.ref != 'refs/heads/gh-pages'}}
run: |
# clean up gh-pages
cd gh-pages
git rm -rf . # remove all previous files
git restore --staged . # remove things from the stage
cd ..
# copy everything into gh-pages site
cp -r `ls -A | grep -v 'gh-pages' | grep -v '.git' | grep -v '.bundle/' | grep -v '_site'` gh-pages
# move into gh-pages, add, commit, and push
cd gh-pages
# setup git
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add -A .
git commit --allow-empty -m "[Github Actions] render website (via ${{ github.sha }})"
git push origin gh-pages
# return
cd ..

- run: make lesson-check-all
if: always()
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
.DS_Store
.ipynb_checkpoints
.sass-cache
.jekyll-cache/
.jekyll-metadata
__pycache__
_site
.Rproj.user
.Rhistory
.RData
.jekyll-cache

.bundle/
.vendor/
vendor/
.docker-vendor/
Gemfile.lock
.*history
Loading