Browse Source

docs folder

Heydon Pickering 8 năm trước cách đây
mục cha
commit
e335e1d308
40 tập tin đã thay đổi với 6 bổ sung9 xóa
  1. 1 0
      config.toml
  2. 1 1
      content/patterns/serving.md
  3. 0 0
      docs/categories/index.xml
  4. 0 0
      docs/css/images/icon-tick.svg
  5. 0 0
      docs/css/images/stripe.svg
  6. 0 0
      docs/css/prism.css
  7. 0 0
      docs/css/styles.css
  8. 0 0
      docs/images/icon-info.svg
  9. 0 0
      docs/images/icon-tag.svg
  10. 0 0
      docs/images/icon-warning.svg
  11. 0 0
      docs/images/logo.png
  12. 0 0
      docs/images/open_in_desktop.png
  13. 0 0
      docs/images/steve_faulkner.jpg
  14. 0 0
      docs/index.html
  15. 1 2
      docs/index.xml
  16. 0 0
      docs/js/dom-scripts.js
  17. 0 0
      docs/js/prism.js
  18. 0 0
      docs/js/webcomponents.js
  19. 0 0
      docs/patterns/code/code-blocks/index.html
  20. 0 0
      docs/patterns/code/codepen-embedding/index.html
  21. 0 0
      docs/patterns/code/color-palettes/index.html
  22. 0 0
      docs/patterns/code/index.html
  23. 0 0
      docs/patterns/code/index.xml
  24. 0 0
      docs/patterns/code/writing-inline-demos/index.html
  25. 0 0
      docs/patterns/index.html
  26. 1 2
      docs/patterns/index.xml
  27. 0 0
      docs/patterns/installation/index.html
  28. 0 0
      docs/patterns/library-setup/index.html
  29. 1 1
      docs/patterns/serving/index.html
  30. 0 0
      docs/patterns/writing/expandable-sections/index.html
  31. 0 0
      docs/patterns/writing/including-images/index.html
  32. 0 0
      docs/patterns/writing/index.html
  33. 0 0
      docs/patterns/writing/index.xml
  34. 0 0
      docs/patterns/writing/library-structure/index.html
  35. 0 0
      docs/patterns/writing/markdown-and-metadata/index.html
  36. 0 0
      docs/patterns/writing/notes-and-warnings/index.html
  37. 0 0
      docs/patterns/writing/references/index.html
  38. 0 0
      docs/sitemap.xml
  39. 0 0
      docs/tags/index.xml
  40. 1 3
      package.json

+ 1 - 0
config.toml

@@ -3,6 +3,7 @@ title = "Infusion"
 baseURL = "https://heydon.github.io/infusion/"
 canonifyURLs = true
 theme = "infusion"
+publishDir = "docs"
 
 [params]
   description = "Documentation for the <strong>Infusion</strong> pattern library builder. This documentation is constructed using the builder itself."

+ 1 - 1
content/patterns/serving.md

@@ -8,7 +8,7 @@ While you're creating content for your library, you'll probably want to see what
 
 {{<cmd>}}npm run serve{{</cmd>}}
 
-This will serve your working library on `localhost:1313`. Whenever you make changes to your library's files, the site will automatically rebuild. No need to refresh the web page!
+This will serve your working library from `localhost:1313` (the exact URL will be determined by what's in your `baseURL` and will be revealed to you by your terminal). Whenever you make changes to your library's files, the site will automatically rebuild. No need to refresh the web page!
 
 ## Publishing on Github Pages
 

+ 0 - 0
public/categories/index.xml → docs/categories/index.xml


+ 0 - 0
public/css/images/icon-tick.svg → docs/css/images/icon-tick.svg


+ 0 - 0
public/css/images/stripe.svg → docs/css/images/stripe.svg


+ 0 - 0
public/css/prism.css → docs/css/prism.css


+ 0 - 0
public/css/styles.css → docs/css/styles.css


+ 0 - 0
public/images/icon-info.svg → docs/images/icon-info.svg


+ 0 - 0
public/images/icon-tag.svg → docs/images/icon-tag.svg


+ 0 - 0
public/images/icon-warning.svg → docs/images/icon-warning.svg


+ 0 - 0
public/images/logo.png → docs/images/logo.png


+ 0 - 0
public/images/open_in_desktop.png → docs/images/open_in_desktop.png


+ 0 - 0
public/images/steve_faulkner.jpg → docs/images/steve_faulkner.jpg


+ 0 - 0
public/index.html → docs/index.html


+ 1 - 2
public/index.xml → docs/index.xml

@@ -134,8 +134,7 @@ I can reference the &amp;#x7b;{% pattern &#34;Notes &amp; warnings&#34; %}} patt
       
       <guid>https://heydon.github.io/infusion/patterns/serving/</guid>
       <description>Serving locally While you&amp;rsquo;re creating content for your library, you&amp;rsquo;ll probably want to see what the finished product looks like. Fortunately, Infusion is easy to serve locally using the serve command:
-npm run serve This will serve your working library on localhost:1313. Whenever you make changes to your library&amp;rsquo;s files, the site will automatically rebuild. No need to refresh the web page!
-Publishing on Github Pages There are three steps to hosting your library on Github Pages.</description>
+npm run serve This will serve your working library from localhost:1313 (the exact URL will be determined by what&amp;rsquo;s in your baseURL and will be revealed to you by your terminal). Whenever you make changes to your library&amp;rsquo;s files, the site will automatically rebuild.</description>
     </item>
     
     <item>

+ 0 - 0
public/js/dom-scripts.js → docs/js/dom-scripts.js


+ 0 - 0
public/js/prism.js → docs/js/prism.js


+ 0 - 0
public/js/webcomponents.js → docs/js/webcomponents.js


+ 0 - 0
public/patterns/code/code-blocks/index.html → docs/patterns/code/code-blocks/index.html


+ 0 - 0
public/patterns/code/codepen-embedding/index.html → docs/patterns/code/codepen-embedding/index.html


+ 0 - 0
public/patterns/code/color-palettes/index.html → docs/patterns/code/color-palettes/index.html


+ 0 - 0
public/patterns/code/index.html → docs/patterns/code/index.html


+ 0 - 0
public/patterns/code/index.xml → docs/patterns/code/index.xml


+ 0 - 0
public/patterns/code/writing-inline-demos/index.html → docs/patterns/code/writing-inline-demos/index.html


+ 0 - 0
public/patterns/index.html → docs/patterns/index.html


+ 1 - 2
public/patterns/index.xml → docs/patterns/index.xml

@@ -39,8 +39,7 @@ brew install hugo Alternatively, you can manually install Hugo from a package. Y
       
       <guid>https://heydon.github.io/infusion/patterns/serving/</guid>
       <description>Serving locally While you&amp;rsquo;re creating content for your library, you&amp;rsquo;ll probably want to see what the finished product looks like. Fortunately, Infusion is easy to serve locally using the serve command:
-npm run serve This will serve your working library on localhost:1313. Whenever you make changes to your library&amp;rsquo;s files, the site will automatically rebuild. No need to refresh the web page!
-Publishing on Github Pages There are three steps to hosting your library on Github Pages.</description>
+npm run serve This will serve your working library from localhost:1313 (the exact URL will be determined by what&amp;rsquo;s in your baseURL and will be revealed to you by your terminal). Whenever you make changes to your library&amp;rsquo;s files, the site will automatically rebuild.</description>
     </item>
     
   </channel>

+ 0 - 0
public/patterns/installation/index.html → docs/patterns/installation/index.html


+ 0 - 0
public/patterns/library-setup/index.html → docs/patterns/library-setup/index.html


+ 1 - 1
public/patterns/serving/index.html → docs/patterns/serving/index.html

@@ -194,7 +194,7 @@
 <pre class="cmd"><code>npm run serve</code></pre>
 
 
-<p>This will serve your working library on <code>localhost:1313</code>. Whenever you make changes to your library&rsquo;s files, the site will automatically rebuild. No need to refresh the web page!</p>
+<p>This will serve your working library from <code>localhost:1313</code> (the exact URL will be determined by what&rsquo;s in your <code>baseURL</code> and will be revealed to you by your terminal). Whenever you make changes to your library&rsquo;s files, the site will automatically rebuild. No need to refresh the web page!</p>
 
 <h2 id="publishing-on-github-pages">Publishing on Github Pages</h2>
 

+ 0 - 0
public/patterns/writing/expandable-sections/index.html → docs/patterns/writing/expandable-sections/index.html


+ 0 - 0
public/patterns/writing/including-images/index.html → docs/patterns/writing/including-images/index.html


+ 0 - 0
public/patterns/writing/index.html → docs/patterns/writing/index.html


+ 0 - 0
public/patterns/writing/index.xml → docs/patterns/writing/index.xml


+ 0 - 0
public/patterns/writing/library-structure/index.html → docs/patterns/writing/library-structure/index.html


+ 0 - 0
public/patterns/writing/markdown-and-metadata/index.html → docs/patterns/writing/markdown-and-metadata/index.html


+ 0 - 0
public/patterns/writing/notes-and-warnings/index.html → docs/patterns/writing/notes-and-warnings/index.html


+ 0 - 0
public/patterns/writing/references/index.html → docs/patterns/writing/references/index.html


+ 0 - 0
public/sitemap.xml → docs/sitemap.xml


+ 0 - 0
public/tags/index.xml → docs/tags/index.xml


+ 1 - 3
package.json

@@ -8,9 +8,7 @@
     "test": "echo \"Error: no test specified\" && exit 1",
     "serve": "hugo server",
     "clean": "rm -rf content && mkdir content && mkdir content/patterns && hugo new patterns/pattern.md && hugo new _index.md",
-    "build": "hugo",
-    "setup": "hugo && git add public",
-    "host": "hugo && git push origin `git subtree split --prefix public master`:gh-pages --force"
+    "build": "hugo"
   },
   "repository": {
     "type": "git",