From e134f3589db69ab50a553f35cb4bbbb424490b6f Mon Sep 17 00:00:00 2001 From: Yves Dubromelle Date: Thu, 16 Apr 2020 00:04:13 +0200 Subject: [PATCH] commit initial --- .gitignore | 76 +++++++++++++++++++++++++++++++++++++++++++++++++ Gemfile | 4 +++ Gemfile.lock | 22 ++++++++++++++ build.sh | 8 ++++++ default.nix | 26 +++++++++++++++++ gemset.nix | 54 +++++++++++++++++++++++++++++++++++ shell.nix | 8 ++++++ src/slides.adoc | 7 +++++ 8 files changed, 205 insertions(+) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 build.sh create mode 100644 default.nix create mode 100644 gemset.nix create mode 100644 shell.nix create mode 100644 src/slides.adoc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f1d71b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,76 @@ +# Nix build result +/result + +# Swap +[._]*.s[a-v][a-z] +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ +*.gem +*.rbc +/.config +/coverage/ +/InstalledFiles +/pkg/ +/spec/reports/ +/spec/examples.txt +/test/tmp/ +/test/version_tmp/ +/tmp/ + +# Used by dotenv library to load environment variables. +# .env + +# Ignore Byebug command history file. +.byebug_history + +## Specific to RubyMotion: +.dat* +.repl_history +build/ +*.bridgesupport +build-iPhoneOS/ +build-iPhoneSimulator/ + +## Specific to RubyMotion (use of CocoaPods): +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# +# vendor/Pods/ + +## Documentation cache and generated files: +/.yardoc/ +/_yardoc/ +/doc/ +/rdoc/ + +## Environment normalization: +/.bundle/ +/vendor/bundle +/lib/bundler/man/ + +# for a library or gem, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# Gemfile.lock +# .ruby-version +# .ruby-gemset + +# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: +.rvmrc + +.idea/ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..8d9cf9d --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +gem 'asciidoctor-revealjs' # latest released version +gem 'asciidoctor-diagram' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..05cc0fa --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,22 @@ +GEM + remote: https://rubygems.org/ + specs: + asciidoctor (2.0.10) + asciidoctor-diagram (1.5.18) + asciidoctor (>= 1.5.0, < 3.x) + asciidoctor-revealjs (2.0.0) + asciidoctor (>= 1.5.6, < 2.1) + concurrent-ruby (~> 1.0) + thread_safe (~> 0.3.5) + concurrent-ruby (1.1.5) + thread_safe (0.3.6) + +PLATFORMS + ruby + +DEPENDENCIES + asciidoctor-diagram + asciidoctor-revealjs + +BUNDLED WITH + 1.17.2 diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..2cd21d2 --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +export PATH="${jre}/bin:${coreutils}/bin:${graphviz}/bin:${asciidoctor_revealjs}/bin" + +${asciidoctor}/bin/asciidoctor -r asciidoctor-diagram -o ${out}/page.html --trace ${src}/slides.adoc +asciidoctor-revealjs -r asciidoctor-diagram -o ${out}/slides.html --trace ${src}/slides.adoc +cp -r ${revealjs} ${out}/reveal.js +cp -r ${images} ${out}/images +ln -s slides.html ${out}/index.html diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..4ee2084 --- /dev/null +++ b/default.nix @@ -0,0 +1,26 @@ +with (import {}); +let + asciidoctor_revealjs = bundlerApp { + pname = "asciidoctor-revealjs"; + exes = [ "asciidoctor-revealjs" ]; + inherit ruby; + gemdir = ./.; + }; + + revealjs = fetchFromGitHub { + owner = "hakimel"; + repo = "reveal.js"; + rev = "3.8.0"; + sha256 = "14cva2hxdv4gxpz2a996qs8xhxffw97a90gkz2mmgdczh1kyn1sc"; + }; + +in derivation { + name = "cours-arkea"; + builder = "${bash}/bin/bash"; + args = [ ./build.sh ]; + inherit asciidoctor asciidoctor_revealjs coreutils jre graphviz revealjs; + src = ./src; + images = ./images; + system = builtins.currentSystem; +} + diff --git a/gemset.nix b/gemset.nix new file mode 100644 index 0000000..9a1a271 --- /dev/null +++ b/gemset.nix @@ -0,0 +1,54 @@ +{ + asciidoctor = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1b2ajs3sabl0s27r7lhwkacw0yn0zfk4jpmidg9l8lzp2qlgjgbz"; + type = "gem"; + }; + version = "2.0.10"; + }; + asciidoctor-diagram = { + dependencies = ["asciidoctor"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "095ar1hj96mi9vxnjjdkj7yzc3lp4wjxh4qsijx9inqflbcw7x71"; + type = "gem"; + }; + version = "1.5.18"; + }; + asciidoctor-revealjs = { + dependencies = ["asciidoctor" "concurrent-ruby" "thread_safe"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "16gk16ym30xyqhl8wphj4a9lz1zgv0m7bf9b0avxz2922l4hr091"; + type = "gem"; + }; + version = "2.0.0"; + }; + concurrent-ruby = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1x07r23s7836cpp5z9yrlbpljcxpax14yw4fy4bnp6crhr6x24an"; + type = "gem"; + }; + version = "1.1.5"; + }; + thread_safe = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"; + type = "gem"; + }; + version = "0.3.6"; + }; +} \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..4967cac --- /dev/null +++ b/shell.nix @@ -0,0 +1,8 @@ +with import {}; +stdenv.mkDerivation { + name = "env"; + buildInputs = [ + ruby.devEnv + bundix + ]; +} diff --git a/src/slides.adoc b/src/slides.adoc new file mode 100644 index 0000000..c35c154 --- /dev/null +++ b/src/slides.adoc @@ -0,0 +1,7 @@ += Source Code Versioning + +== Comprendre l’intérêt du versionning dans un projet de développement + +== Connaitre les types de fonctionnements existants + +== De s’approprier un outil de gestion de versions \ No newline at end of file