Skip to content

Commit

Permalink
Demo minima on GitHub Pages (#76)
Browse files Browse the repository at this point in the history
Merge pull request 76
  • Loading branch information
DirtyF authored and jekyllbot committed Apr 7, 2017
1 parent 30208d9 commit a4726e6
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,6 +1,5 @@
.bundle .bundle
.sass-cache .sass-cache
Gemfile.lock Gemfile.lock
example/_site
_site _site
*.gem *.gem
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -25,7 +25,7 @@ And then execute:


## Contents At-A-Glance ## Contents At-A-Glance


Minima has been scaffolded by the `jekyll new-theme` command and therefore has all the necessary files and directories to have a new Jekyll site up and running with zero-configuration. Minima has been scaffolded by the `jekyll new-theme` command and therefore has all the necessary files and directories to have a new Jekyll site up and running with zero-configuration.


### Layouts ### Layouts


Expand All @@ -47,9 +47,9 @@ Refers to snippets of code within the `_includes` directory that can be inserted
- `header.html` — Defines the site's main header section. - `header.html` — Defines the site's main header section.
- `icon-* files` — Inserts github and twitter ids with respective icons. - `icon-* files` — Inserts github and twitter ids with respective icons.


### Sass ### Sass


Refers to `.scss` files within the `_sass` directory that define the theme's styles. Refers to `.scss` files within the `_sass` directory that define the theme's styles.


- `minima.scss` — The core file imported by preprocessed `main.scss`, it defines the variable defaults for the theme and also further imports sass partials to supplement itself. - `minima.scss` — The core file imported by preprocessed `main.scss`, it defines the variable defaults for the theme and also further imports sass partials to supplement itself.
- `minima/_base.scss` — Resets and defines base styles for various HTML elements. - `minima/_base.scss` — Resets and defines base styles for various HTML elements.
Expand All @@ -58,7 +58,7 @@ Refers to `.scss` files within the `_sass` directory that define the theme's sty


### Assets ### Assets


Refers to various asset files within the `assets` directory. Refers to various asset files within the `assets` directory.
Contains the `main.scss` that imports sass files from within the `_sass` directory. This `main.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`. Contains the `main.scss` that imports sass files from within the `_sass` directory. This `main.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.


This directory can include sub-directories to manage assets of similar type, and will be copied over as is, to the final transformed site directory. This directory can include sub-directories to manage assets of similar type, and will be copied over as is, to the final transformed site directory.
Expand Down Expand Up @@ -138,7 +138,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jekyll


To set up your environment to develop this theme, run `bundle install`. To set up your environment to develop this theme, run `bundle install`.


To test your theme, run `bundle exec rake preview` and open your browser at `http://localhost:4000/minima/`. This starts a Jekyll server using your theme and the contents of the `example/` directory. As you make modifications to your theme and to the example site, your site will regenerate and you should see the changes in the browser after a refresh. To test your theme, run `bundle exec rake preview` and open your browser at `http://localhost:4000/minima/`. This starts a Jekyll server using your theme and the contents. As you make modifications, your site will regenerate and you should see the changes in the browser after a refresh.


## License ## License


Expand Down
2 changes: 0 additions & 2 deletions Rakefile
Expand Up @@ -33,8 +33,6 @@ end
task :preview do task :preview do
base = Pathname.new('.').expand_path base = Pathname.new('.').expand_path
options = { options = {
"source" => base.join('example').to_s,
"destination" => base.join('example/_site').to_s,
"force_polling" => false, "force_polling" => false,
"serving" => true, "serving" => true,
"theme" => "minima" "theme" => "minima"
Expand Down
2 changes: 1 addition & 1 deletion example/_config.yml → _config.yml
Expand Up @@ -5,7 +5,7 @@ description: > # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description. Google search results) and in your feed.xml site description.
baseurl: "/minima"
twitter_username: jekyllrb twitter_username: jekyllrb
github_username: jekyll github_username: jekyll


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions example/Gemfile

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion script/build
Expand Up @@ -3,4 +3,4 @@
set -e set -e


echo "Building the example site..." echo "Building the example site..."
bundle exec jekyll build --source example bundle exec jekyll build
3 changes: 2 additions & 1 deletion script/cibuild
Expand Up @@ -7,8 +7,9 @@ script/build
if test -e "./_site/index.html";then if test -e "./_site/index.html";then
echo "It builds!" echo "It builds!"
rm -Rf _site rm -Rf _site
exit 0
else else
echo "Huh. That's odd. The example site doesn't seem to build." echo "Huh. That's odd. The example site doesn't seem to build."
exit 1 exit 1
fi fi

gem build minima.gemspec

0 comments on commit a4726e6

Please sign in to comment.