From 9e5506252a1f3c70fcfb103a269d1657721120bd Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Wed, 4 Mar 2020 12:49:36 +0000 Subject: [PATCH] feat: jekyll site build --- .gitignore | 1 + site/404.html | 24 +++++ site/Gemfile | 9 ++ site/Gemfile.lock | 73 +++++++++++++ site/_config.yml | 17 +++ site/_guide/decorators.md | 7 ++ site/_guide/introduction.md | 7 ++ site/_guide/your-first-component.md | 7 ++ site/_layouts/default.html | 44 ++++++++ site/_layouts/guide.html | 26 +++++ site/index.html | 159 +++++++++++----------------- 11 files changed, 276 insertions(+), 98 deletions(-) create mode 100644 site/404.html create mode 100644 site/Gemfile create mode 100644 site/Gemfile.lock create mode 100644 site/_config.yml create mode 100644 site/_guide/decorators.md create mode 100644 site/_guide/introduction.md create mode 100644 site/_guide/your-first-component.md create mode 100644 site/_layouts/default.html create mode 100644 site/_layouts/guide.html diff --git a/.gitignore b/.gitignore index f993a6a..b50e7dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.js *.js.map node_modules +_site diff --git a/site/404.html b/site/404.html new file mode 100644 index 0000000..c472b4e --- /dev/null +++ b/site/404.html @@ -0,0 +1,24 @@ +--- +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/site/Gemfile b/site/Gemfile new file mode 100644 index 0000000..b01e4e6 --- /dev/null +++ b/site/Gemfile @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +gem 'jekyll', '~> 3.8.5' + +group :jekyll_plugins do + gem 'jekyll-commonmark-ghpages', '~> 0.1.5' +end diff --git a/site/Gemfile.lock b/site/Gemfile.lock new file mode 100644 index 0000000..317c664 --- /dev/null +++ b/site/Gemfile.lock @@ -0,0 +1,73 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + colorator (1.1.0) + commonmarker (0.17.13) + ruby-enum (~> 0.5) + concurrent-ruby (1.1.6) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + eventmachine (1.2.7) + ffi (1.12.2) + forwardable-extended (2.6.0) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-commonmark (1.3.1) + commonmarker (~> 0.14) + jekyll (>= 3.7, < 5.0) + jekyll-commonmark-ghpages (0.1.6) + commonmarker (~> 0.17.6) + jekyll-commonmark (~> 1.2) + rouge (>= 2.0, < 4.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (1.17.0) + liquid (4.0.3) + listen (3.2.1) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.3.6) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (3.1.1) + rb-fsevent (0.10.3) + rb-inotify (0.10.1) + ffi (~> 1.0) + rouge (3.13.0) + ruby-enum (0.7.2) + i18n + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + +PLATFORMS + ruby + +DEPENDENCIES + jekyll (~> 3.8.5) + jekyll-commonmark-ghpages (~> 0.1.5) + +BUNDLED WITH + 2.0.2 diff --git a/site/_config.yml b/site/_config.yml new file mode 100644 index 0000000..c9a2dd5 --- /dev/null +++ b/site/_config.yml @@ -0,0 +1,17 @@ +title: Catalyst + +markdown: CommonMarkGhPages + +commonmark: + extensions: ["autolink", "table"] + +permalink: pretty + +exclude: + - Gemfile + - Gemfile.lock + - node_modules + +collections: + guide: + output: true diff --git a/site/_guide/decorators.md b/site/_guide/decorators.md new file mode 100644 index 0000000..9ca18d3 --- /dev/null +++ b/site/_guide/decorators.md @@ -0,0 +1,7 @@ +--- +layout: guide +chapter: 3 +subtitle: Using TypeScript for ergonomics +--- + +This is decorators diff --git a/site/_guide/introduction.md b/site/_guide/introduction.md new file mode 100644 index 0000000..21cb7c7 --- /dev/null +++ b/site/_guide/introduction.md @@ -0,0 +1,7 @@ +--- +layout: guide +chapter: 1 +--- + + +Hello world! diff --git a/site/_guide/your-first-component.md b/site/_guide/your-first-component.md new file mode 100644 index 0000000..57d3e9c --- /dev/null +++ b/site/_guide/your-first-component.md @@ -0,0 +1,7 @@ +--- +layout: guide +subtitle: Building an HTMLElement +chapter: 2 +--- + +Your first component diff --git a/site/_layouts/default.html b/site/_layouts/default.html new file mode 100644 index 0000000..d366fcd --- /dev/null +++ b/site/_layouts/default.html @@ -0,0 +1,44 @@ +--- +--- + + + + + + + +
+
+

Catalyst

+
+ +
+ + {{ content }} + + + diff --git a/site/_layouts/guide.html b/site/_layouts/guide.html new file mode 100644 index 0000000..f03816d --- /dev/null +++ b/site/_layouts/guide.html @@ -0,0 +1,26 @@ +--- +layout: default +--- + +
+ + + +
+

{{ page.title }}

+ {{ content }} +
+ +
diff --git a/site/index.html b/site/index.html index 754f9f5..f410fe0 100644 --- a/site/index.html +++ b/site/index.html @@ -1,101 +1,64 @@ - - - - - - - -
-
-

Catalyst

+--- +layout: default +--- + +
+
+

Write YavaScript
Like a Boss

+ +
+ true_love +
+ +
+
+

Catalyse your Web Components

+
+
+

+
+
+        <div data-controller="hello">
+          <input data-target="hello.name" type="text">
+
+          <button data-action="click->hello#greet">
+            Greet
+          </button>
+
+          <span data-target="hello.output">
+          </span>
+        </div>
+          
- -
+
+

+        import { bindEvents, target,  } from "@catalyst/core"
 
-    
-
-

Write YavaScript
Like a Boss

- + @register + @bindEvents + export default class extends Controller { + @target nameTarget: HTMLElement + @target outputTarget: HTMLElement + + greet() { + this.outputTarget.textContent = + `Hello, ${this.nameTarget.value}!` + } + } +
- true_love - - -
-
-

Catalyse your Web Components

-
-
-

-
-
-            <div data-controller="hello">
-              <input data-target="hello.name" type="text">
-
-              <button data-action="click->hello#greet">
-                Greet
-              </button>
-
-              <span data-target="hello.output">
-              </span>
-            </div>
-              
-
-
-

-            import { bindEvents, target,  } from "@catalyst/core"
-
-            @register
-            @bindEvents
-            export default class extends Controller {
-              @target nameTarget: HTMLElement
-              @target outputTarget: HTMLElement
-
-              greet() {
-                this.outputTarget.textContent =
-                  `Hello, ${this.nameTarget.value}!`
-              }
-            }
-            
-
-
-
-
- - - + + +