Skip to content

Commit

Permalink
added archi for flow case study, search box and piwik analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Jauze authored and Olivier Jauze committed Oct 7, 2024
1 parent 5e79d6f commit 7cbad39
Show file tree
Hide file tree
Showing 18 changed files with 38 additions and 114 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
Gemfile.lock
.envrc
dist
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Ignore folders generated by Bundler
.bundle/
vendor/

This file was deleted.

This file was deleted.

5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
source "https://rubygems.org"

gem "jekyll", "~> 4.2.0"
gem "jekyll", "~> 4.2.2"

gem "webrick", "~> 1.7"

group :jekyll_plugins do
gem 'jekyll-asciidoc'
gem 'jekyll-algolia'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
8 changes: 2 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ WORKDIR=$(pwd)
case $1 in
build)
echo "Render web site HTML content including adoc with Jekyll in 'dist' directory from 'landing' directory"
docker run --rm --volume="$WORKDIR:/srv/jekyll" -it jekyll/jekyll:4.2.0 jekyll build --source landing --destination dist
docker exec -w /Users/olivierjauze/Documents/GitHub/Continuous-Architecture-Toolkit -ti 790196039b4a bundle install
docker exec -ti 790196039b4a jekyll help
docker exec -ti 790196039b4a bundle exec jekyll algolia
bundle install
docker run --rm --volume="$WORKDIR:/srv/jekyll" -it jekyll/jekyll:4.2.2 jekyll build --source landing --destination dist
;;
serve)
echo "Render web site (HTML content including adoc with Jekyll in 'dist' directory from 'landing' directory) & serve it at 0.0.0.0:4000"
docker run --rm --volume="$WORKDIR:/srv/jekyll" --publish 4000:4000 -it jekyll/jekyll:4.2.0 jekyll serve --source landing --destination dist
docker run --rm --volume="$WORKDIR:/srv/jekyll" --publish 4000:4000 -it jekyll/jekyll:4.2.2 jekyll serve --source landing --destination dist
;;
*)
echo "Sorry, I don't understand"
Expand Down
5 changes: 3 additions & 2 deletions landing/Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
source "https://rubygems.org"

gem "jekyll", "~> 4.2.0"
gem "jekyll", "~> 4.2.2"

gem "webrick", "~> 1.7"

group :jekyll_plugins do
gem 'jekyll-asciidoc'
gem 'jekyll-algolia'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
3 changes: 1 addition & 2 deletions landing/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ asciidoctor:
- icons=font

algolia:
application_id: CA_WebSite
application_id: prod_site
index_name: jekyll
search_only_api_key: 96a98d738921aee297c35e182f52ce2f

keep_files:
- docs
Expand Down
96 changes: 0 additions & 96 deletions landing/_includes/algolia.html

This file was deleted.

3 changes: 3 additions & 0 deletions landing/_includes/google-search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script async src="https://cse.google.com/cse.js?cx=664726a16c61e4862">
</script>
<div class="gcse-search"></div>
2 changes: 1 addition & 1 deletion landing/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
</div>
</header>

{% include mobile-menu.html %}
{% include mobile-menu.html %}
4 changes: 3 additions & 1 deletion landing/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<script type="text/javascript">
(function(window, document, dataLayerName, id) {
window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script');
function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}
function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString();f="; SameSite=Strict"}document.cookie=a+"="+b+d+f+"; path=/"}
var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1);
var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):"";
tags.async=!0,tags.src="https://continuousarchitecture.containers.piwik.pro/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts);
Expand All @@ -43,6 +43,8 @@
<div class="doc-content">
<div class="row alitems-stretch">
<div class="toc">
{% include google-search.html %}

<div class="toc-content">{{ page.document | tocify_asciidoc }}</div>
</div>
<div class="flex-1 row justc-center">
Expand Down
4 changes: 4 additions & 0 deletions landing/_layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ <h1 class="hero-title black">{{ page.catchphrase.baseline }}</h1>

<div class="features row justc-center pdv-l">
<div class="content-wrapper column alitems-stretch">

{% include google-search.html %}

<div class="feature-card column mgb-s alitems-start">
<div class="row alitems-center mgb-xs">
<div class="feature-icon mgr-s">
Expand Down Expand Up @@ -64,6 +67,7 @@ <h2 class="large-font bold">{{ page.features.left.title }}</h2>
<div class="grey-text">{{ page.features.left.text | markdownify }}</div>
</div>
</div>

<div class="cards-wrapper">
{% for feature in page.features.right %}
<div class="feature-card {% if forloop.last == false %} mgb-s {% endif %} " id="{{ feature.title | slugify }}">
Expand Down
11 changes: 11 additions & 0 deletions landing/_layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
{% include head.html %}

<body>
<script type="text/javascript">
(function(window, document, dataLayerName, id) {
window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script');
function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString();f="; SameSite=Strict"}document.cookie=a+"="+b+d+f+"; path=/"}
var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1);
var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):"";
tags.async=!0,tags.src="https://continuousarchitecture.containers.piwik.pro/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts);
!function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]);
})(window, document, 'dataLayer', 'd99885c4-2e8a-4704-8a85-0a395376cfb5');
</script>

{% include header.html %}

<main class="page-content" aria-label="Content">
Expand Down

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 7cbad39

Please sign in to comment.