added github pages support
This commit is contained in:
1 parent
b14ebdbf63
commit
6ed638a1cc
373 files changed
+185436
-2343
No files matched your search
@@ -0,0 +1,41 @@
|
||||
(ns website.core
|
||||
(:require [reagent.core :as reagent :refer [atom]]
|
||||
[secretary.core :as secretary :include-macros true]
|
||||
[accountant.core :as accountant]
|
||||
[website.tobbar :refer [topbar]]
|
||||
[website.home :refer [home-page]]))
|
||||
|
||||
|
||||
;; -------------------------
|
||||
;; Routes
|
||||
|
||||
(defonce page (atom #'home-page))
|
||||
|
||||
(defn current-page []
|
||||
[:div
|
||||
[topbar]
|
||||
[:div.columns
|
||||
[:div.column.is-offset-1.is-10
|
||||
[:br]
|
||||
[@page]]]])
|
||||
|
||||
(secretary/defroute "/" []
|
||||
(reset! page #'home-page))
|
||||
|
||||
|
||||
;; -------------------------
|
||||
;; Initialize app
|
||||
|
||||
(defn mount-root []
|
||||
(reagent/render [current-page] (.getElementById js/document "app")))
|
||||
|
||||
(defn init! []
|
||||
(accountant/configure-navigation!
|
||||
{:nav-handler
|
||||
(fn [path]
|
||||
(secretary/dispatch! path))
|
||||
:path-exists?
|
||||
(fn [path]
|
||||
(secretary/locate-route path))})
|
||||
(accountant/dispatch-current!)
|
||||
(mount-root))
|
||||
@@ -0,0 +1 @@
|
||||
{:rename-macros {}, :renames {}, :externs {document {getElementById {}}}, :use-macros {}, :excludes #{}, :name website.core, :imports nil, :requires {reagent reagent.core, reagent.core reagent.core, secretary secretary.core, secretary.core secretary.core, accountant accountant.core, accountant.core accountant.core, website.tobbar website.tobbar, website.home website.home}, :cljs.spec/speced-vars [], :uses {atom reagent.core, home-page website.home, topbar website.tobbar}, :defs {page {:name website.core/page, :file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :line 12, :column 1, :end-line 12, :end-column 14, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :line 12, :column 10, :end-line 12, :end-column 14}, :tag any}, current-page {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :line 14, :column 7, :end-line 14, :end-column 19, :arglists (quote ([]))}, :name website.core/current-page, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :end-column 19, :method-params ([]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 14, :end-line 14, :max-fixed-arity 0, :fn-var true, :arglists (quote ([]))}, mount-root {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :line 29, :column 7, :end-line 29, :end-column 17, :arglists (quote ([]))}, :name website.core/mount-root, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :end-column 17, :method-params ([]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 29, :end-line 29, :max-fixed-arity 0, :fn-var true, :arglists (quote ([]))}, init! {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :line 32, :column 7, :end-line 32, :end-column 12, :arglists (quote ([]))}, :name website.core/init!, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/core.cljs", :end-column 12, :method-params ([]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 32, :end-line 32, :max-fixed-arity 0, :fn-var true, :arglists (quote ([]))}}, :cljs.spec/registry-ref [], :require-macros {reagent reagent.core, reagent.core reagent.core, secretary secretary.core, secretary.core secretary.core}, :cljs.analyzer/constants {:seen #{:path-exists? :div.columns :ns :name home-page :file :end-column :div.column.is-offset-1.is-10 :column :div :line website.home :end-line :br :arglists website.home/home-page :doc :nav-handler :test}, :order [website.home/home-page :ns :name :file :end-column :column :line :end-line :arglists :doc :test website.home home-page :div :div.columns :div.column.is-offset-1.is-10 :br :nav-handler :path-exists?]}, :doc nil}
|
||||
@@ -0,0 +1,47 @@
|
||||
// Compiled by ClojureScript 1.9.946 {}
|
||||
goog.provide('website.core');
|
||||
goog.require('cljs.core');
|
||||
goog.require('reagent.core');
|
||||
goog.require('secretary.core');
|
||||
goog.require('accountant.core');
|
||||
goog.require('website.tobbar');
|
||||
goog.require('website.home');
|
||||
if(typeof website.core.page !== 'undefined'){
|
||||
} else {
|
||||
website.core.page = reagent.core.atom.call(null,new cljs.core.Var(function(){return website.home.home_page;},new cljs.core.Symbol("website.home","home-page","website.home/home-page",-1631300293,null),cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"ns","ns",441598760),new cljs.core.Keyword(null,"name","name",1843675177),new cljs.core.Keyword(null,"file","file",-1269645878),new cljs.core.Keyword(null,"end-column","end-column",1425389514),new cljs.core.Keyword(null,"column","column",2078222095),new cljs.core.Keyword(null,"line","line",212345235),new cljs.core.Keyword(null,"end-line","end-line",1837326455),new cljs.core.Keyword(null,"arglists","arglists",1661989754),new cljs.core.Keyword(null,"doc","doc",1913296891),new cljs.core.Keyword(null,"test","test",577538877)],[new cljs.core.Symbol(null,"website.home","website.home",-2089173226,null),new cljs.core.Symbol(null,"home-page","home-page",-850279575,null),"/home/didier/clojupyter/website/src/cljs/website/home.cljs",16,1,10,10,cljs.core.list(cljs.core.PersistentVector.EMPTY),null,(cljs.core.truth_(website.home.home_page)?website.home.home_page.cljs$lang$test:null)])));
|
||||
}
|
||||
website.core.current_page = (function website$core$current_page(){
|
||||
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div","div",1057191632),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [website.tobbar.topbar], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.columns","div.columns",-437221213),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.column.is-offset-1.is-10","div.column.is-offset-1.is-10",-566647859),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"br","br",934104792)], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.deref.call(null,website.core.page)], null)], null)], null)], null);
|
||||
});
|
||||
var action__37832__auto___50386 = (function (params__37833__auto__){
|
||||
if(cljs.core.map_QMARK_.call(null,params__37833__auto__)){
|
||||
var map__50381 = params__37833__auto__;
|
||||
var map__50381__$1 = ((((!((map__50381 == null)))?((((map__50381.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__50381.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__50381):map__50381);
|
||||
return cljs.core.reset_BANG_.call(null,website.core.page,new cljs.core.Var(function(){return website.home.home_page;},new cljs.core.Symbol("website.home","home-page","website.home/home-page",-1631300293,null),cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"ns","ns",441598760),new cljs.core.Keyword(null,"name","name",1843675177),new cljs.core.Keyword(null,"file","file",-1269645878),new cljs.core.Keyword(null,"end-column","end-column",1425389514),new cljs.core.Keyword(null,"column","column",2078222095),new cljs.core.Keyword(null,"line","line",212345235),new cljs.core.Keyword(null,"end-line","end-line",1837326455),new cljs.core.Keyword(null,"arglists","arglists",1661989754),new cljs.core.Keyword(null,"doc","doc",1913296891),new cljs.core.Keyword(null,"test","test",577538877)],[new cljs.core.Symbol(null,"website.home","website.home",-2089173226,null),new cljs.core.Symbol(null,"home-page","home-page",-850279575,null),"/home/didier/clojupyter/website/src/cljs/website/home.cljs",16,1,10,10,cljs.core.list(cljs.core.PersistentVector.EMPTY),null,(cljs.core.truth_(website.home.home_page)?website.home.home_page.cljs$lang$test:null)])));
|
||||
} else {
|
||||
if(cljs.core.vector_QMARK_.call(null,params__37833__auto__)){
|
||||
var vec__50383 = params__37833__auto__;
|
||||
return cljs.core.reset_BANG_.call(null,website.core.page,new cljs.core.Var(function(){return website.home.home_page;},new cljs.core.Symbol("website.home","home-page","website.home/home-page",-1631300293,null),cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"ns","ns",441598760),new cljs.core.Keyword(null,"name","name",1843675177),new cljs.core.Keyword(null,"file","file",-1269645878),new cljs.core.Keyword(null,"end-column","end-column",1425389514),new cljs.core.Keyword(null,"column","column",2078222095),new cljs.core.Keyword(null,"line","line",212345235),new cljs.core.Keyword(null,"end-line","end-line",1837326455),new cljs.core.Keyword(null,"arglists","arglists",1661989754),new cljs.core.Keyword(null,"doc","doc",1913296891),new cljs.core.Keyword(null,"test","test",577538877)],[new cljs.core.Symbol(null,"website.home","website.home",-2089173226,null),new cljs.core.Symbol(null,"home-page","home-page",-850279575,null),"/home/didier/clojupyter/website/src/cljs/website/home.cljs",16,1,10,10,cljs.core.list(cljs.core.PersistentVector.EMPTY),null,(cljs.core.truth_(website.home.home_page)?website.home.home_page.cljs$lang$test:null)])));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
});
|
||||
secretary.core.add_route_BANG_.call(null,"/",action__37832__auto___50386);
|
||||
|
||||
website.core.mount_root = (function website$core$mount_root(){
|
||||
return reagent.core.render.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [website.core.current_page], null),document.getElementById("app"));
|
||||
});
|
||||
website.core.init_BANG_ = (function website$core$init_BANG_(){
|
||||
accountant.core.configure_navigation_BANG_.call(null,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"nav-handler","nav-handler",2039495484),(function (path){
|
||||
return secretary.core.dispatch_BANG_.call(null,path);
|
||||
}),new cljs.core.Keyword(null,"path-exists?","path-exists?",1473384514),(function (path){
|
||||
return secretary.core.locate_route.call(null,path);
|
||||
})], null));
|
||||
|
||||
accountant.core.dispatch_current_BANG_.call(null);
|
||||
|
||||
return website.core.mount_root.call(null);
|
||||
});
|
||||
|
||||
//# sourceMappingURL=core.js.map?rel=1517067923258
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"\/home\/didier\/clojupyter\/website\/target\/cljsbuild\/public\/js\/out\/website\/core.js","sources":["core.cljs?rel=1517067923258"],"lineCount":47,"mappings":";AAAA;;;;;;;AAWA,GAAA,OAASA;AAAT;AAAA,AAAA,AAASA,oBAAK,4BAAA,6DAAA,2FAAA,wCAAA,gDAAA,qDAAA,sDAAA,iEAAA,yDAAA,oDAAA,6DAAA,6DAAA,mDAAA,sDAAA,0EAAA,mEAAA,6DAAA,GAAA,EAAA,GAAA,GAAA,eAAA,kCAAA,KAAA,kBAAAC,wBAAA,AAAA,AAAAA,sCAAA,nmCAACC;;AAEf,4BAAA,5BAAME;AAAN,AAAA,0FAAA,mDAAA,iHAAA,mFAAA,mEAAA,mFAAA,qGAAA,mFAAA,wDAAA,mFAAA,AAAAD,1kBAEIE,omBAIGL;;AAEP,IAAAM,8BAAA,WAAAC;AAAA,AAAA,GAAA,AAAAC,+BAAAD;AAAA,IAAAE,aAAAF;IAAAE,iBAAA,EAAA,EAAA,EAAA,CAAAA,cAAA,QAAA,EAAA,CAAA,CAAA,AAAAA,iDAAA,WAAA,CAAAC,gCAAA,AAAAD,8BAAA,KAAA,OAAA,QAAA,AAAAE,0BAAAC,mBAAAH,YAAAA;AAAA,AACE,yDAAA,6DAAA,2FAAA,wCAAA,gDAAA,qDAAA,sDAAA,iEAAA,yDAAA,oDAAA,6DAAA,6DAAA,mDAAA,sDAAA,0EAAA,mEAAA,6DAAA,GAAA,EAAA,GAAA,GAAA,eAAA,kCAAA,KAAA,kBAAAR,wBAAA,AAAA,AAAAA,sCAAA,znCAACe,gCAAOhB;;AADV,GAAA,AAAAa,kCAAAN;AAAA,IAAAO,aAAAP;AAAA,AACE,yDAAA,6DAAA,2FAAA,wCAAA,gDAAA,qDAAA,sDAAA,iEAAA,yDAAA,oDAAA,6DAAA,6DAAA,mDAAA,sDAAA,0EAAA,mEAAA,6DAAA,GAAA,EAAA,GAAA,GAAA,eAAA,kCAAA,KAAA,kBAAAN,wBAAA,AAAA,AAAAA,sCAAA,znCAACe,gCAAOhB;;AADV;;;;AAAA,AAAA,AAAAe,yCAAA,IAAAT;;AAAA,AAOA,0BAAA,1BAAMW;AAAN,AACE,qCAAA,9BAACC,iHAAgBd,kCAAc,wBAAA,xBAAiBe;;AAElD,0BAAA,1BAAMC;AAAN,AACE,qDAAA,2CAAA,hGAACC,mKAEE,WAAKC;AAAL,AACE,OAACC,wCAAoBD;GAH1B,qEAKG,WAAKA;AAAL,AACE,OAACE,sCAAuBF;;;AAC7B,AAACG;;AACD,OAACR","names":["website.core\/page","website.home\/home-page","reagent.core\/atom","cljs.core\/deref","website.core\/current-page","website.tobbar\/topbar","action__37832__auto__","params__37833__auto__","cljs.core\/map?","map__50381","cljs.core\/PROTOCOL_SENTINEL","cljs.core\/apply","cljs.core\/hash-map","cljs.core\/vector?","vec__50383","secretary.core\/add-route!","cljs.core\/reset!","website.core\/mount-root","reagent.core\/render","js\/document","website.core\/init!","accountant.core\/configure-navigation!","path","secretary.core\/dispatch!","secretary.core\/locate-route","accountant.core\/dispatch-current!"]}
|
||||
@@ -0,0 +1,10 @@
|
||||
(ns ^:figwheel-no-load website.dev
|
||||
(:require
|
||||
[website.core :as core]
|
||||
[devtools.core :as devtools]))
|
||||
|
||||
(devtools/install!)
|
||||
|
||||
(enable-console-print!)
|
||||
|
||||
(core/init!)
|
||||
@@ -0,0 +1 @@
|
||||
{:rename-macros {}, :renames {}, :use-macros {}, :excludes #{}, :name website.dev, :imports nil, :requires {core website.core, website.core website.core, devtools devtools.core, devtools.core devtools.core}, :cljs.spec/speced-vars [], :uses nil, :cljs.spec/registry-ref [], :require-macros nil, :doc nil}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Compiled by ClojureScript 1.9.946 {}
|
||||
goog.provide('website.dev');
|
||||
goog.require('cljs.core');
|
||||
goog.require('website.core');
|
||||
goog.require('devtools.core');
|
||||
devtools.core.install_BANG_.call(null);
|
||||
cljs.core.enable_console_print_BANG_.call(null);
|
||||
website.core.init_BANG_.call(null);
|
||||
|
||||
//# sourceMappingURL=dev.js.map?rel=1517067923295
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"\/home\/didier\/clojupyter\/website\/target\/cljsbuild\/public\/js\/out\/website\/dev.js","sources":["dev.cljs?rel=1517067923295"],"lineCount":10,"mappings":";AAAA;;;;AAKA,AAACA;AAED,AAACC;AAED,AAACC","names":["devtools.core\/install!","cljs.core\/enable-console-print!","website.core\/init!"]}
|
||||
@@ -0,0 +1,27 @@
|
||||
(ns website.home
|
||||
(:require [website.logo :refer [logo]]
|
||||
[website.notebook :refer [notebook]]))
|
||||
|
||||
|
||||
(defn important [w]
|
||||
[:span.has-text-weight-semibold w])
|
||||
|
||||
|
||||
(defn home-page []
|
||||
[:div.columns
|
||||
[:div.column
|
||||
[:article.message
|
||||
[:div.message-body
|
||||
[:p.subtitle (important "Clojupyter") " brings " (important "clojure") " to the " (important "jupyter notebook") "."]
|
||||
[:article.content
|
||||
[:p "Enjoy the full Clojure repl experience with…"]
|
||||
[:ul
|
||||
[:li "Full jupyter notebook support"]
|
||||
[:li "Charting"]
|
||||
[:li [notebook "geom.ipynb" "Latex, Markdown, HTML and Hiccup"]]
|
||||
[:li "parinfer"]
|
||||
[:li "Leiningen integration"]]]]]]
|
||||
[:div.column.is-flex-tablet.has-text-centered {:style {:justify-content "center" :flex-direction "column"}}
|
||||
[:span.title {:style {:width "100%"}}
|
||||
[logo 133]]]])
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{:rename-macros {}, :renames {}, :use-macros {}, :excludes #{}, :name website.home, :imports nil, :requires {website.logo website.logo, website.notebook website.notebook}, :cljs.spec/speced-vars [], :uses {logo website.logo, notebook website.notebook}, :defs {important {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/home.cljs", :line 6, :column 7, :end-line 6, :end-column 16, :arglists (quote ([w]))}, :name website.home/important, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/home.cljs", :end-column 16, :method-params ([w]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 6, :end-line 6, :max-fixed-arity 1, :fn-var true, :arglists (quote ([w]))}, home-page {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/home.cljs", :line 10, :column 7, :end-line 10, :end-column 16, :arglists (quote ([]))}, :name website.home/home-page, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/home.cljs", :end-column 16, :method-params ([]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 10, :end-line 10, :max-fixed-arity 0, :fn-var true, :arglists (quote ([]))}}, :cljs.spec/registry-ref [], :require-macros nil, :cljs.analyzer/constants {:seen #{:span.title :div.columns :ul :span.has-text-weight-semibold :div.message-body :li :width :article.message :article.content :style :p.subtitle :div.column :justify-content :div.column.is-flex-tablet.has-text-centered :p :flex-direction}, :order [:span.has-text-weight-semibold :div.columns :div.column :article.message :div.message-body :p.subtitle :article.content :p :ul :li :div.column.is-flex-tablet.has-text-centered :style :justify-content :flex-direction :span.title :width]}, :doc nil}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Compiled by ClojureScript 1.9.946 {}
|
||||
goog.provide('website.home');
|
||||
goog.require('cljs.core');
|
||||
goog.require('website.logo');
|
||||
goog.require('website.notebook');
|
||||
website.home.important = (function website$home$important(w){
|
||||
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"span.has-text-weight-semibold","span.has-text-weight-semibold",2056611941),w], null);
|
||||
});
|
||||
website.home.home_page = (function website$home$home_page(){
|
||||
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.columns","div.columns",-437221213),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.column","div.column",-1380853326),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"article.message","article.message",716414187),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.message-body","div.message-body",566197895),new cljs.core.PersistentVector(null, 7, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"p.subtitle","p.subtitle",1220832976),website.home.important.call(null,"Clojupyter")," brings ",website.home.important.call(null,"clojure")," to the ",website.home.important.call(null,"jupyter notebook"),"."], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"article.content","article.content",1777368684),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"p","p",151049309),"Enjoy the full Clojure repl experience with\u2026"], null),new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"ul","ul",-1349521403),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"li","li",723558921),"Full jupyter notebook support"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"li","li",723558921),"Charting"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"li","li",723558921),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [website.notebook.notebook,"geom.ipynb","Latex, Markdown, HTML and Hiccup"], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"li","li",723558921),"parinfer"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"li","li",723558921),"Leiningen integration"], null)], null)], null)], null)], null)], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.column.is-flex-tablet.has-text-centered","div.column.is-flex-tablet.has-text-centered",-1879518246),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"style","style",-496642736),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"justify-content","justify-content",-1990475787),"center",new cljs.core.Keyword(null,"flex-direction","flex-direction",364609438),"column"], null)], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"span.title","span.title",-1997593088),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"style","style",-496642736),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"width","width",-384071477),"100%"], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [website.logo.logo,(133)], null)], null)], null)], null);
|
||||
});
|
||||
|
||||
//# sourceMappingURL=home.js.map?rel=1517067923240
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"\/home\/didier\/clojupyter\/website\/target\/cljsbuild\/public\/js\/out\/website\/home.js","sources":["home.cljs?rel=1517067923240"],"lineCount":13,"mappings":";AAAA;;;;AAKA,yBAAA,zBAAMA,0DAAWC;AAAjB,AAAA,0FAAA,uGACkCA;;AAGlC,yBAAA,zBAAMC;AAAN,AAAA,0FAAA,mEAAA,mFAAA,kEAAA,mFAAA,0EAAA,mFAAA,4EAAA,mFAAA,gHAAA,uDAAA,gEAAA,YAAA,mFAAA,2EAAA,mFAAA,8CAAA,4DAAA,mFAAA,kDAAA,mFAAA,gDAAA,wCAAA,mFAAA,gDAAA,mBAAA,mFAAA,gDAAA,6GAAA,aAAA,mDAAA,mFAAA,gDAAA,mBAAA,mFAAA,gDAAA,wEAAA,mFAAA,oIAAA,2CAAA,uDAAA,2CAAA,4EAAA,SAAA,wEAAA,yBAAA,mFAAA,kEAAA,2CAAA,uDAAA,2CAAA,uDAAA,uBAAA,qGAAA,nlFAKmB,iCAAA,jCAACF,0DAAmC,iCAAA,jCAACA,uDAAgC,iCAAA,jCAACA,wjCAM3EG,w5CAKRC","names":["website.home\/important","w","website.home\/home-page","website.notebook\/notebook","website.logo\/logo"]}
|
||||
@@ -0,0 +1,4 @@
|
||||
(ns website.logo)
|
||||
|
||||
(defn logo [size]
|
||||
[:img {:src "/images/clojupyter-logo.svg" :height size :width (* 3 size) :alt "clojure logo"}])
|
||||
@@ -0,0 +1 @@
|
||||
{:rename-macros {}, :renames {}, :use-macros {}, :excludes #{}, :name website.logo, :imports nil, :requires nil, :cljs.spec/speced-vars [], :uses nil, :defs {logo {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/logo.cljs", :line 3, :column 7, :end-line 3, :end-column 11, :arglists (quote ([size]))}, :name website.logo/logo, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/logo.cljs", :end-column 11, :method-params ([size]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 3, :end-line 3, :max-fixed-arity 1, :fn-var true, :arglists (quote ([size]))}}, :cljs.spec/registry-ref [], :require-macros nil, :cljs.analyzer/constants {:seen #{:alt :width :src :img :height}, :order [:img :src :height :width :alt]}, :doc nil}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Compiled by ClojureScript 1.9.946 {}
|
||||
goog.provide('website.logo');
|
||||
goog.require('cljs.core');
|
||||
website.logo.logo = (function website$logo$logo(size){
|
||||
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"img","img",1442687358),new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"src","src",-1651076051),"/images/clojupyter-logo.svg",new cljs.core.Keyword(null,"height","height",1025178622),size,new cljs.core.Keyword(null,"width","width",-384071477),((3) * size),new cljs.core.Keyword(null,"alt","alt",-3214426),"clojure logo"], null)], null);
|
||||
});
|
||||
|
||||
//# sourceMappingURL=logo.js.map?rel=1517066698503
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"\/home\/didier\/clojupyter\/website\/target\/cljsbuild\/public\/js\/out\/website\/logo.js","sources":["logo.cljs?rel=1517066698503"],"lineCount":8,"mappings":";AAAA;;AAEA,oBAAA,pBAAMA,gDAAMC;AAAZ,AAAA,0FAAA,mDAAA,2CAAA,oDAAA,8BAAA,8DAAA,oEAAA,iDAAA,1HACoDA,4DAAY,CAAA,MAAKA","names":["website.logo\/logo","size"]}
|
||||
@@ -0,0 +1,7 @@
|
||||
(ns website.notebook)
|
||||
|
||||
(def root "http://nbviewer.jupyter.org/github/didiercrunch/graphly/blob/master/")
|
||||
|
||||
(defn notebook [name msg]
|
||||
(let [url-safe-name (js/encodeURIComponent name)]
|
||||
[:a {:href (str root url-safe-name)} msg]))
|
||||
@@ -0,0 +1 @@
|
||||
{:rename-macros {}, :renames {}, :externs {encodeURIComponent {}}, :use-macros {}, :excludes #{}, :name website.notebook, :imports nil, :requires nil, :cljs.spec/speced-vars [], :uses nil, :defs {root {:name website.notebook/root, :file "/home/didier/clojupyter/website/src/cljs/website/notebook.cljs", :line 3, :column 1, :end-line 3, :end-column 10, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/notebook.cljs", :line 3, :column 6, :end-line 3, :end-column 10}, :tag string}, notebook {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/notebook.cljs", :line 5, :column 7, :end-line 5, :end-column 15, :arglists (quote ([name msg]))}, :name website.notebook/notebook, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/notebook.cljs", :end-column 15, :method-params ([name msg]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 5, :end-line 5, :max-fixed-arity 2, :fn-var true, :arglists (quote ([name msg]))}}, :cljs.spec/registry-ref [], :require-macros nil, :cljs.analyzer/constants {:seen #{:href :a}, :order [:a :href]}, :doc nil}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Compiled by ClojureScript 1.9.946 {}
|
||||
goog.provide('website.notebook');
|
||||
goog.require('cljs.core');
|
||||
website.notebook.root = "http://nbviewer.jupyter.org/github/didiercrunch/graphly/blob/master/";
|
||||
website.notebook.notebook = (function website$notebook$notebook(name,msg){
|
||||
var url_safe_name = encodeURIComponent(name);
|
||||
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"a","a",-2123407586),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"href","href",-793805698),[cljs.core.str.cljs$core$IFn$_invoke$arity$1(website.notebook.root),cljs.core.str.cljs$core$IFn$_invoke$arity$1(url_safe_name)].join('')], null),msg], null);
|
||||
});
|
||||
|
||||
//# sourceMappingURL=notebook.js.map?rel=1517030835679
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"\/home\/didier\/clojupyter\/website\/target\/cljsbuild\/public\/js\/out\/website\/notebook.js","sources":["notebook.cljs?rel=1517030835679"],"lineCount":10,"mappings":";AAAA;;AAEA,wBAAA,xBAAKA;AAEL,4BAAA,5BAAMC,gEAAUC,KAAKC;AAArB,AACE,IAAMC,gBAAc,AAACC,mBAAsBH;AAA3C,AAAA,0FAAA,gDAAA,2CAAA,qDACa,6CAAKF,mEAAKI,iCAAgBD","names":["website.notebook\/root","website.notebook\/notebook","name","msg","url-safe-name","js\/encodeURIComponent"]}
|
||||
@@ -0,0 +1,19 @@
|
||||
(ns website.tobbar
|
||||
(:require [website.logo :refer [logo]]))
|
||||
|
||||
(def github-link
|
||||
[:a.title.is-5 {:href "https://github.com/clojupyter"}
|
||||
[:i.fab.fa-github]])
|
||||
|
||||
|
||||
(defn topbar []
|
||||
[:div
|
||||
[:nav.navbar.is-primary.is-transparent {:role "navigation" :aria-label "main navigation"}
|
||||
[:div.navbar-brand
|
||||
[:a.navbar-item
|
||||
[logo 30]
|
||||
[:span.title {:style {:margin-left "0.5em"}} "clojupyter"]]]
|
||||
[:div.navbar-end
|
||||
[:a.navbar-item
|
||||
[:span github-link]]]]])
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{:rename-macros {}, :renames {}, :use-macros {}, :excludes #{}, :name website.tobbar, :imports nil, :requires {website.logo website.logo}, :cljs.spec/speced-vars [], :uses {logo website.logo}, :defs {github-link {:name website.tobbar/github-link, :file "/home/didier/clojupyter/website/src/cljs/website/tobbar.cljs", :line 4, :column 1, :end-line 4, :end-column 17, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/tobbar.cljs", :line 4, :column 6, :end-line 4, :end-column 17}, :tag cljs.core/IVector}, topbar {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljs/website/tobbar.cljs", :line 9, :column 7, :end-line 9, :end-column 13, :arglists (quote ([]))}, :name website.tobbar/topbar, :variadic false, :file "/home/didier/clojupyter/website/src/cljs/website/tobbar.cljs", :end-column 13, :method-params ([]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 9, :end-line 9, :max-fixed-arity 0, :fn-var true, :arglists (quote ([]))}}, :cljs.spec/registry-ref [], :require-macros nil, :cljs.analyzer/constants {:seen #{:div.navbar-brand :role :a.navbar-item :span.title :nav.navbar.is-primary.is-transparent :margin-left :div.navbar-end :style :div :i.fab.fa-github :a.title.is-5 :aria-label :href :span}, :order [:a.title.is-5 :href :i.fab.fa-github :div :nav.navbar.is-primary.is-transparent :role :aria-label :div.navbar-brand :a.navbar-item :span.title :style :margin-left :div.navbar-end :span]}, :doc nil}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Compiled by ClojureScript 1.9.946 {}
|
||||
goog.provide('website.tobbar');
|
||||
goog.require('cljs.core');
|
||||
goog.require('website.logo');
|
||||
website.tobbar.github_link = new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"a.title.is-5","a.title.is-5",1961129657),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"href","href",-793805698),"https://github.com/clojupyter"], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"i.fab.fa-github","i.fab.fa-github",-107064877)], null)], null);
|
||||
website.tobbar.topbar = (function website$tobbar$topbar(){
|
||||
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div","div",1057191632),new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"nav.navbar.is-primary.is-transparent","nav.navbar.is-primary.is-transparent",620065061),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"role","role",-736691072),"navigation",new cljs.core.Keyword(null,"aria-label","aria-label",455891514),"main navigation"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.navbar-brand","div.navbar-brand",1304438848),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"a.navbar-item","a.navbar-item",1351862432),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [website.logo.logo,(30)], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"span.title","span.title",-1997593088),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"style","style",-496642736),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"margin-left","margin-left",2015598377),"0.5em"], null)], null),"clojupyter"], null)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div.navbar-end","div.navbar-end",-365075861),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"a.navbar-item","a.navbar-item",1351862432),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"span","span",1394872991),website.tobbar.github_link], null)], null)], null)], null)], null);
|
||||
});
|
||||
|
||||
//# sourceMappingURL=tobbar.js.map?rel=1517067479861
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"\/home\/didier\/clojupyter\/website\/target\/cljsbuild\/public\/js\/out\/website\/tobbar.js","sources":["tobbar.cljs?rel=1517067479861"],"lineCount":10,"mappings":";AAAA;;;AAGA,6BAAA,mFAAA,qEAAA,2CAAA,qDAAA,wCAAA,mFAAA,hZAAKA;AAKL,wBAAA,xBAAMC;AAAN,AAAA,0FAAA,mDAAA,mFAAA,oHAAA,2CAAA,qDAAA,aAAA,gEAAA,0BAAA,mFAAA,6EAAA,mFAAA,uEAAA,qGAAA,aAAA,mFAAA,kEAAA,2CAAA,uDAAA,2CAAA,mEAAA,wBAAA,qCAAA,mFAAA,yEAAA,mFAAA,uEAAA,mFAAA,10BAKOC,+3BAIMF","names":["website.tobbar\/github-link","website.tobbar\/topbar","website.logo\/logo"]}
|
||||
@@ -0,0 +1,6 @@
|
||||
(ns website.util)
|
||||
|
||||
(defn foo-cljc [x]
|
||||
"I don't do a whole lot."
|
||||
[x]
|
||||
(println x "Hello, World!"))
|
||||
@@ -0,0 +1 @@
|
||||
{:rename-macros {}, :renames {}, :use-macros {}, :excludes #{}, :name website.util, :imports nil, :requires nil, :cljs.spec/speced-vars [], :uses nil, :defs {foo-cljc {:protocol-inline nil, :meta {:file "/home/didier/clojupyter/website/src/cljc/website/util.cljc", :line 3, :column 7, :end-line 3, :end-column 15, :arglists (quote ([x]))}, :name website.util/foo-cljc, :variadic false, :file "src/cljc/website/util.cljc", :end-column 15, :method-params ([x]), :protocol-impl nil, :arglists-meta (nil nil), :column 1, :line 3, :end-line 3, :max-fixed-arity 1, :fn-var true, :arglists (quote ([x]))}}, :cljs.spec/registry-ref [], :require-macros nil, :doc nil}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Compiled by ClojureScript 1.9.946 {}
|
||||
goog.provide('website.util');
|
||||
goog.require('cljs.core');
|
||||
website.util.foo_cljc = (function website$util$foo_cljc(x){
|
||||
|
||||
new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [x], null);
|
||||
|
||||
return cljs.core.println.call(null,x,"Hello, World!");
|
||||
});
|
||||
|
||||
//# sourceMappingURL=util.js.map?rel=1517021948982
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"\/home\/didier\/clojupyter\/website\/target\/cljsbuild\/public\/js\/out\/website\/util.js","sources":["util.cljc?rel=1517021948982"],"lineCount":11,"mappings":";AAAA;;AAEA,wBAAA,xBAAMA,wDAAUC;AAAhB,AAAA;AAAA,mFAEGA;;AACD,qCAAA,9BAACC,4BAAQD","names":["website.util\/foo-cljc","x","cljs.core\/println"]}
|
||||
Reference in new issue
Block a user