Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit4dd41b0d0438526c4bc7b13979570ad0f9b9fb78 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 16:36:19 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 16:36:19 +0800
Files7e0052c31fcc4145dc717f1f8a7a9d72dd8ab99e
Spectre-Dark-Gruvbox-4dd41b0d0438526c4bc7b13979570ad0f9b9fb78.tar
Spectre-Dark-Gruvbox-4dd41b0d0438526c4bc7b13979570ad0f9b9fb78.tar.gz
Spectre-Dark-Gruvbox-4dd41b0d0438526c4bc7b13979570ad0f9b9fb78.zip
Parentd35c4d0de4137397b1b58596707a58a24567d53b (diff)
add compiling custom version doc
2 files changed, 19 insertions, 1 deletions
-rw-r--r--README.md4
-rw-r--r--index.html16
diff --git a/README.md b/README.md
index af4f419..5f01dc2 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,10 @@ And include it in your website or Web app &lt;head&gt; part.
`<link rel="stylesheet" href="dist/spectre.min.css" />`
+### Compiling custom version
+
+You can compiling your custom version of Spectre.css. Read [the documentation](http://picturepan2.github.io/spectre/#compiling).
+
### Documentation and demos
#### Elements
diff --git a/index.html b/index.html
index 8c0e6c0..ca46cc2 100644
--- a/index.html
+++ b/index.html
@@ -107,10 +107,24 @@
&lt;<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">&quot;stylesheet&quot;</span> <span class="atn">href</span>=<span class="atv">&quot;dist/spectre.min.css&quot;</span> /&gt;
</pre>
- <p>You could even customize Spectre CSS with your own code and removing unneeded components. It requires a LESS compiler and Autoprefixer.</p>
+ </section>
+ </section>
+ <section id="compiling" class="grid-960">
+ <header class="text-center"><h4>compiling custom version</h4></header>
+ <section class="notes">
+ <p>Spectre uses <a href="http://gulpjs.com/" target="_blank">Gulp</a> for compiling CSS. You can customize your version of Spectre.css by editing LESS files in <code class="label">/src</code> directory or removing unneeded components from <code class="label">spectre.less</code>.</p>
+ <p>Then, you can build the CSS file from the command line:</p>
+ <ol>
+ <li>Navigate to the root directory of Spectre where you can find <code class="label">package.json</code> file.</li>
+ <li>Run <code class="label">npm install</code>. NPM will install all dev dependencies as listed in package.json.</li>
+ <li>When completed, run <code class="label">gulp build</code> to compile LESS to CSS and minify files.</li>
+ <li>You can find compiled CSS files in <code class="label">/dist</code> directory.</li>
+ </ol>
+ <p>You can watch file changes and rebuild CSS files by using <code class="label">gulp watch</code>.</p>
</section>
</section>
+
<section id="elements" class="grid-960">
<section class="notes text-center">
<ul class="tab inline-block">