02 Preview - StartZeroGnu/gem-themes GitHub Wiki
Preview
Before preview
Rename
_sass/minima.scss
to_sass/my-theme.scss
_sass/minima/
folder to_sass/my-theme/
Edit
_sass/my-theme.scss
to change "@import partials" tomy-theme/base
etc...example/css/main.scss
to change "@import" tomy-theme
and erase all "Sass variables"Rakefile
to change "task preview options theme""minima"
to"my-theme"
(line 40)example/_config.yml
to changeurl: "exmple.com"
tourl: ""
(local config)theme: minima
totheme: my-theme
my-theme.gemspec
to complete with data gemspec.version
(Semantic Versioning)spec.summary
spec.homepage
if ( GitHub.repo == false) { valid url }
example/Gemfile
to changegem "minima"
togem "my-theme"
and then execute
~/my-theme $ bundle
~/my-theme $ bundle exec rake preview
# http://localhost:4000
NOTE:
$ bundle exec rake preview
runs task preview from RakefileRakefile (Script with task similar to
jekyll serve --source --destination
usingexample
,_layouts
,_sass
and_includes
to build site)