02 Preview - StartZeroGnu/gem-themes GitHub Wiki
Preview
Before preview
Rename
_sass/minima.scssto_sass/my-theme.scss_sass/minima/folder to_sass/my-theme/
Edit
_sass/my-theme.scssto change "@import partials" tomy-theme/baseetc...example/css/main.scssto change "@import" tomy-themeand erase all "Sass variables"Rakefileto change "task preview options theme""minima"to"my-theme"(line 40)example/_config.ymlto changeurl: "exmple.com"tourl: ""(local config)theme: minimatotheme: my-theme
my-theme.gemspecto complete with data gemspec.version(Semantic Versioning)spec.summaryspec.homepageif ( GitHub.repo == false) { valid url }
example/Gemfileto changegem "minima"togem "my-theme"
and then execute
~/my-theme $ bundle
~/my-theme $ bundle exec rake preview
# http://localhost:4000
NOTE:
$ bundle exec rake previewruns task preview from RakefileRakefile (Script with task similar to
jekyll serve --source --destinationusingexample,_layouts,_sassand_includesto build site)