06 Re Use - StartZeroGnu/gem-themes GitHub Wiki
(Re)Use
Things to do before Re-Use this scaffold to create and build new theme
If you want to use a different name for the folder "example"
- rename "example" folder
- edit
my-theme.gemspecand replace "example" to "new-folder-name" inf.matchlineRakefileand replace "example" in task preview options ( source and destination ).gitignoreand replace...
New Theme
Before create new theme
- Create a empty repo on GitHub with the same name as theme
- Clone empty repo
- Copy all files inside this repo less
.gitfolder
And then execute
~/my-new-theme $ git add --all
~/my-new-theme $ git commit -m "first commit"
~/my-new-theme $ git push -u origin master
Rename
my-theme.gemspectomy-new-theme.gemspec/_sass/my-theme.scsstomy-new-theme.scss/_sass/my-theme/to/my-new-theme/
Edit
Rakefile(taskpreviewoptions theme "my-new-theme")my-new-theme.gemspecspec.namespec.versionspec.summaryspec.homepage
/example/css/main.scss(@import)_sass/my-new-theme.scss(@import)/example/Gemfile(theme name)/example/_config.yml(theme name)
Add pages, documents, data, etc...
Build Theme
Before build new theme Documenting your theme and Adding a screenshot.
Edit
README.md(Complete info)my-new-theme.gemspec(reviewing)spec.namespec.versionspec.authorsspec.emailspec.summaryspec.homepage
Important!!! commit changes,
my-new-theme.gemspecreads commited files
Build Gem
~/my-new-theme $ gem build my-new-theme.gemspec
~/my-new-theme $ gem push my-new-theme-*.gem