Skip to content

Commit

Permalink
Copy config from pabix page
Browse files Browse the repository at this point in the history
  • Loading branch information
pvanheus committed Feb 22, 2024
1 parent de47ac7 commit e97a890
Show file tree
Hide file tree
Showing 6 changed files with 1,730 additions and 9 deletions.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
source 'https://rubygems.org'
gem 'github-pages'
group :jekyll_plugins do
gem 'jekyll-figure'
gem "jekyll-pdf-embed"
end
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,25 @@ To make changes to the template itself, a good place to start is the [`_layouts`
Questions? Ask on P2PU's [Community Forum](https://community.p2pu.org/c/tech/course-in-a-box/78).

# Running locally
- [install docker](https://docs.docker.com/engine/install/)
- Run ```docker run -i -t --rm -u 1000:1000 -p 4000:4000 -v `pwd`:/opt/app -v `pwd`/.bundler/:/opt/bundler -e BUNDLE_PATH=~/opt/bundler -w /opt/app ruby:2.7 bash -c "bundle install && bundle exec jekyll serve --watch -H 0.0.0.0"```
- [install docker](https://docs.docker.com/engine/install/)
- Run `./serve.sh`

# Adding figures

The [jekyll-figure](https://github.com/paulrobertlloyd/jekyll-figure) module has been added to this repository. To make figures, enclose images in `{% figure %}` markdown
and use the class "caption", i.e.

```
{% figure [caption: "The Figure Caption"] [class: "caption"] %}
![The Alt Text for the Image](../img/the_image.jpg)
{% endfigure %}
```

As a convention, images can be placed in an `img/` folder created within the module directory and linked as per the above example.

---
Course-in-a-Box is built by [Peer 2 Peer University](https://www.p2pu.org) and shared under an MIT License.

Course content ("Modules") are shared under a [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/).
Course content ("Modules") are shared under a [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/).
14 changes: 9 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ markdown: kramdown
permalink: /:categories/:title/

# Change this tracking code with your own tracking code
ga_tracking_code: UA-139717412-2
ga_tracking_code: G-Z7RMVPYZ5K
# Please leave this code here for us to see how Course in a Box get used
p2pu_ga_tracking_code: UA-55722824-1

Expand All @@ -29,7 +29,11 @@ prose:

# Set some personal styles and logo for your course
# this is a hex value http://www.w3schools.com/tags/ref_colorpicker.asp
jumbotron_color: "#58D7CB"
jumbotron_image: "img/jumbotron-image.svg"
# jumbotron_mask: "img/jumbotron-mask.svg"
jumbotron_icon: "img/box-icon.png"
jumbotron_color: "#348F41"
jumbotron_image: "img/bacteria.svg"
jumbotron_mask: "img/jumbotron-mask.svg"
# jumbotron_icon: "img/box-icon.png"

plugins:
- jekyll-figure
- jekyll-pdf-embed
Loading

0 comments on commit e97a890

Please sign in to comment.