j1-template 2020.0.1 → 2020.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +22 -18
  3. data/_includes/themes/j1/layouts/content_generator_collection.html +15 -12
  4. data/_includes/themes/j1/layouts/content_generator_page.html +16 -17
  5. data/_includes/themes/j1/layouts/content_generator_post.html +19 -24
  6. data/_includes/themes/j1/modules/navigator/generator.html +62 -40
  7. data/assets/data/menu.html +6 -5
  8. data/assets/data/mmenu.html +455 -0
  9. data/assets/data/{sidebar.html → mmenu_sidebar.html} +24 -18
  10. data/assets/data/mmenu_toc.html +45 -0
  11. data/assets/data/quicklinks.html +9 -4
  12. data/assets/data/ssm.html +227 -0
  13. data/assets/error_pages/HTTP204.html +3 -3
  14. data/assets/themes/j1/core/css/bootstrap.css +116 -93
  15. data/assets/themes/j1/core/css/bootstrap.min.css +4 -4
  16. data/assets/themes/j1/core/css/globals.css +1 -1
  17. data/assets/themes/j1/core/css/theme_extensions.css +186 -96
  18. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  19. data/assets/themes/j1/core/css/uno.css +186 -96
  20. data/assets/themes/j1/core/css/uno.min.css +1 -1
  21. data/assets/themes/j1/core/css/vendor.css +130 -104
  22. data/assets/themes/j1/core/css/vendor.min.css +4 -4
  23. data/assets/themes/j1/core/js/template.js +296 -24
  24. data/assets/themes/j1/core/js/template.js.map +1 -1
  25. data/assets/themes/j1/core/js/template.min.js +1 -1
  26. data/lib/j1/version.rb +1 -1
  27. data/lib/j1_app/j1_auth_manager/auth_manager.rb +21 -17
  28. data/lib/j1_app/j1_auth_manager/config.rb +13 -9
  29. data/lib/j1_app/j1_site_manager/static_site.rb +1 -1
  30. data/lib/starter_web/Gemfile +2 -2
  31. data/lib/starter_web/_config.yml +12 -139
  32. data/lib/starter_web/_data/modules/authentication.yml +1 -1
  33. data/lib/starter_web/_data/modules/defaults/navigator.yml +25 -24
  34. data/lib/starter_web/_data/modules/defaults/ssm.yml +50 -0
  35. data/lib/starter_web/_data/modules/defaults/toccer.yml +14 -15
  36. data/lib/starter_web/_data/modules/navigator.yml +164 -97
  37. data/lib/starter_web/_data/modules/ssm.yml +133 -0
  38. data/lib/starter_web/_data/modules/toccer.yml +20 -62
  39. data/lib/starter_web/_data/resources.yml +74 -51
  40. data/lib/starter_web/_data/template_settings.yml +13 -13
  41. data/lib/starter_web/_plugins/uglify.rb +41 -0
  42. data/lib/starter_web/apps/public/{cc → cc/cc.yml} +0 -0
  43. data/lib/starter_web/apps/public/cc/index.adoc +107 -0
  44. data/lib/starter_web/assets/images/modules/icons/j1/{j1..ico → j1.ico} +0 -0
  45. data/lib/starter_web/assets/themes/j1/adapter/js/algolia.js +321 -0
  46. data/lib/starter_web/assets/themes/j1/adapter/js/attic.js +4 -4
  47. data/lib/starter_web/assets/themes/j1/adapter/js/carousel.js +3 -3
  48. data/lib/starter_web/assets/themes/j1/adapter/js/framer.js +3 -3
  49. data/lib/starter_web/assets/themes/j1/adapter/js/j1.js +19 -60
  50. data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js +452 -0
  51. data/lib/starter_web/assets/themes/j1/adapter/js/navigator.js +50 -50
  52. data/lib/starter_web/assets/themes/j1/adapter/js/ssm.js +498 -0
  53. data/lib/starter_web/assets/themes/j1/adapter/js/themer.js +1 -1
  54. data/lib/starter_web/assets/themes/j1/adapter/js/toccer.js +40 -43
  55. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +384 -0
  56. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +384 -0
  57. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +153 -0
  58. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +153 -0
  59. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +11 -0
  60. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +11 -0
  61. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +118 -0
  62. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +118 -0
  63. data/lib/starter_web/collections/posts/public/{jekyll → featured}/_posts/2018-05-01-confusion-about-base-url.adoc +0 -0
  64. data/lib/starter_web/package.json +1 -1
  65. data/lib/starter_web/pages/public/learn/floating_sidebar.adoc +199 -0
  66. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
  67. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +2 -2
  68. data/lib/starter_web/pages/public/learn/whats_up.adoc +12 -11
  69. data/lib/starter_web/pages/public/legal/en/500_support.adoc +1 -1
  70. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
  71. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +2 -3
  72. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
  73. data/lib/starter_web/pages/public/site_search.adoc +196 -0
  74. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  75. data/lib/starter_web/utilsrv/package.json +1 -1
  76. metadata +26 -13
  77. data/assets/themes/j1/core/css/globals.scss +0 -28
  78. data/lib/starter_web/_data/modules/back2top.yml +0 -40
  79. data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
  80. data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
  81. data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
  82. data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
  83. data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
@@ -1,20 +1,24 @@
1
1
  module J1App
2
2
 
3
- # set work dir to path
3
+ # set j1 project path
4
4
  #
5
- def self.work_dir
6
- unless ARGV.grep(/config.ru/)[0] == nil
7
- # set work dir to path of ARGV argument for config.ru
8
- # if app is called from commandline
5
+ def self.project_path
6
+ # set project folder to the path set by ENV var J1_PROJECT_HOME (preferred)
7
+ #
8
+ if ENV['J1_PROJECT_HOME'] != nil
9
+ ENV['J1_PROJECT_HOME']
10
+ elsif ARGV.grep(/config.ru/)[0] != nil
11
+ # set project folder to path of ARGV argument for config.ru if available.
12
+ # This will work, if the app is called from commandline (rackup)
9
13
  #
10
14
  File.dirname(ARGV.grep(/config.ru/)[0])
11
15
  else
12
- # set work dir work dir if app is called from
13
- # application manager (e.g. passenger)
16
+ # set project folder if app is called from application manager
17
+ # (e.g. passenger) to current work dir
14
18
  # NOTE:
15
19
  # Unclear why File.join resolves the PATH correctly
16
- # but File.dirname doesn't
17
- # File.dirname(Dir.pwd)
20
+ # but File.dirname doesn't:
21
+ # File.dirname(Dir.pwd)
18
22
  #
19
23
  File.join(Dir.pwd, "")
20
24
  end
@@ -46,7 +46,7 @@ module J1App
46
46
  # Register static content
47
47
  # --------------------------------------------------------------------------
48
48
  register Sinatra::Index
49
- root = File.expand_path(J1App.destination, J1App.work_dir)
49
+ root = File.expand_path(J1App.destination, J1App.project_path)
50
50
  set :public_folder, root
51
51
  use_static_index "index.html"
52
52
 
@@ -51,7 +51,7 @@ gem 'jekyll', '~> 4.0'
51
51
 
52
52
  # Theme Rubies, default: J1 Template
53
53
  #
54
- gem 'j1-template', '~> 2020.0.1'
54
+ gem 'j1-template', '~> 2020.0.6'
55
55
 
56
56
  # ------------------------------------------------------------------------------
57
57
  # PRODUCTION: Gem needed for the Jekyll and J1 prod environment
@@ -110,7 +110,7 @@ group :jekyll_plugins do
110
110
  # gem 'jekyll-gist', '>= 1.5.0'
111
111
  # gem 'jekyll-sitemap', '>= 1.2.0'
112
112
  # gem 'jekyll-redirect-from', '>= 0.13.0'
113
- gem 'j1-paginator', '>= 2020.0.1'
113
+ gem 'j1-paginator', '>= 2020.0.2'
114
114
  gem 'jekyll-sass-converter', '>= 1.5.1'
115
115
  end
116
116
 
@@ -44,16 +44,16 @@
44
44
  # ------------------------------------------------------------------------------
45
45
  # Sets the build environment of the website
46
46
  #
47
- # values: development|test|production
47
+ # values: development|production
48
48
  # default: development
49
49
  #
50
- environment: development
50
+ environment: production
51
51
 
52
52
  # version
53
53
  # ------------------------------------------------------------------------------
54
54
  # Sets the build version of J1 Template Gem
55
55
  #
56
- version: 2020.0.1
56
+ version: 2020.0.6
57
57
 
58
58
  # version
59
59
  # ------------------------------------------------------------------------------
@@ -379,15 +379,15 @@ collections_dir: collections
379
379
  include: [ .htaccess ]
380
380
  exclude: [
381
381
  log, vendor, node_modules, utilsrv,
382
- History.markdown, README.md,
382
+ History.markdown, README.md,
383
383
  changelog.md, Rakefile,
384
384
  Gemfile, Gemfile.lock, Guardfile,
385
385
  yarn.lock, config.ru,
386
386
  package-lock.json, package.json,
387
- '.sass-cache', '.vscode',
387
+ '.sass-cache', '.vscode',
388
388
  '.idea', '*.ignore',
389
389
  '*.bat', '*.sh', '*.tmp', 'dot.*',
390
- '*.txt', '*.log', '*.ppt*',
390
+ '*.txt', '*.log', '*.ppt*',
391
391
  '*.zip', '*.7z', '*.tgz', '*.tar',
392
392
  '*.a2p', '*.asciidoc'
393
393
  ]
@@ -556,32 +556,6 @@ autopages:
556
556
  enabled: false
557
557
  layouts: [ paginator/autopage_collection.html ]
558
558
 
559
- # ------------------------------------------------------------------------------
560
- # COLLECTION settings
561
- # See: https://jekyllrb.com/docs/collections/#collections
562
- #
563
- collections:
564
-
565
- # ----------------------------------------------------------------------------
566
- # Featured articles
567
- #
568
- featured:
569
- output: true
570
- permalink: /collections/:collection/:name/
571
-
572
- # ----------------------------------------------------------------------------
573
- # Book shelf
574
- #
575
- biography:
576
- output: true
577
- permalink: /collections/premium/:collection/:name/
578
- fantasy:
579
- output: true
580
- permalink: /collections/premium/:collection/:name/
581
- romance:
582
- output: true
583
- permalink: /collections/premium/:collection/:name/
584
-
585
559
 
586
560
  # ------------------------------------------------------------------------------
587
561
  # FRONTMATTER defaults
@@ -596,7 +570,7 @@ collections:
596
570
  # Instead of repeating this configuration each time a page is being
597
571
  # created, Jekyll provides a way to set these configuration items
598
572
  # as defaults in this site configuration (_config.yml).
599
- #
573
+ #
600
574
  defaults:
601
575
 
602
576
  # ----------------------------------------------------------------------------
@@ -673,43 +647,11 @@ defaults:
673
647
  collapseDepth: 2
674
648
 
675
649
  # ----------------------------------------------------------------------------
676
- # PRIVATE - FEATURED
677
- #
678
- - scope:
679
- path: posts/private/featured/_posts
680
- type: posts
681
-
682
- values:
683
- layout: post
684
- scrollbar: false
685
- author: J1 Team
686
- toc: true
687
- resources: toccer
688
- analytics: false
689
- advertising: false
690
- comments: true
691
-
692
- robots:
693
- index: true
694
- follow: true
695
-
696
- icons:
697
- # category-icon: comment-text-outline
698
- family: MDI
699
- color: md-indigo
700
- size: 5x
701
-
702
- images:
703
- # category-image: img26.jpg
704
- dir: /assets/images/collections/blog/featured
705
-
706
-
707
- # ----------------------------------------------------------------------------
708
- # SERIES
650
+ # PUBLIC - SERIES
709
651
  #
710
652
  - scope:
711
653
  type: posts
712
- path: posts/premium/series/_posts
654
+ path: posts/public/series/_posts
713
655
 
714
656
  values:
715
657
  layout: post
@@ -737,11 +679,11 @@ defaults:
737
679
 
738
680
 
739
681
  # ----------------------------------------------------------------------------
740
- # WIKIPEDIA
682
+ # PUBLIC - WIKIPEDIA
741
683
  #
742
684
  - scope:
743
685
  type: posts
744
- path: posts/private/wikipedia/_posts
686
+ path: posts/public/wikipedia/_posts
745
687
 
746
688
  values:
747
689
  layout: post
@@ -768,75 +710,6 @@ defaults:
768
710
  category-image:
769
711
  dir: /assets/images/collections/blog/wikipedia
770
712
 
771
- # ----------------------------------------------------------------------------
772
- # Collections
773
- #
774
-
775
- # ----------------------------------------------------------------------------
776
- # FEATURED Articles
777
- #
778
- - scope:
779
- type: featured
780
- path: collections/_featured
781
-
782
- values:
783
- layout: page
784
- analytics: false
785
- advertising: false
786
- scrollbar: false
787
-
788
- robots:
789
- index: true
790
- follow: true
791
-
792
- # ----------------------------------------------------------------------------
793
- # BIOGRAPHY (Book Shelf)
794
- #
795
- - scope:
796
- type: biography
797
- path: collections/_biography
798
-
799
- values:
800
- layout: page
801
- analytics: false
802
- advertising: false
803
- scrollbar: false
804
-
805
- robots:
806
- index: true
807
- follow: true
808
-
809
- # ----------------------------------------------------------------------------
810
- # FANTASY (Book Shelf)
811
- #
812
- - scope:
813
- type: fantasy
814
- path: collections/_fantasy
815
-
816
- values:
817
- layout: page
818
- analytics: false
819
- advertising: false
820
- scrollbar: false
821
-
822
- # ----------------------------------------------------------------------------
823
- # ROMANCE (Book Shelf)
824
- #
825
- - scope:
826
- type: romance
827
- path: collections/_romance
828
-
829
- values:
830
- layout: page
831
- analytics: false
832
- advertising: false
833
- scrollbar: false
834
-
835
- robots:
836
- index: true
837
- follow: true
838
-
839
-
840
713
  # ==============================================================================
841
714
  # 6. LAYOUT configuration
842
715
  #
@@ -975,4 +848,4 @@ compress_html:
975
848
 
976
849
 
977
850
  # END config
978
- # ------------------------------------------------------------------------------
851
+ # ------------------------------------------------------------------------------
@@ -69,7 +69,7 @@ settings:
69
69
  #
70
70
  # ----------------------------------------------------------------------------
71
71
  j1_auth:
72
- enabled: true
72
+ enabled: false
73
73
  ssl: false
74
74
 
75
75
  content:
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------
2
2
  # ~/_data/apps/j1_navigator.yml
3
- # Default configuration settings of the J1 NAV Module for all sub-modules
3
+ # Default configuration settings of the J1 NAV Module for all sub-modules
4
4
  # except the main navigation bar
5
5
  #
6
6
  # Product/Info:
@@ -40,7 +40,7 @@ defaults:
40
40
  xhr_container_id: navigator_nav_navbar
41
41
 
42
42
  media_breakpoint: lg
43
- brand_position: right
43
+ brand_position: right # left|right
44
44
  brand_type: image
45
45
  brand_type_collapsed: text
46
46
  fixed: true
@@ -54,7 +54,27 @@ defaults:
54
54
  background_color_scrolled: bg-primary
55
55
 
56
56
  # ----------------------------------------------------------------------------
57
- # NavMenu
57
+ # NavMenu (Mobile)
58
+ #
59
+ nav_mmenu:
60
+ enabled: false
61
+
62
+ mmenu_plugin:
63
+ node: "null"
64
+ mediaQuery: all
65
+ max_width: 100000 # set media breakpoint to infinite
66
+
67
+ mmenu_navigator:
68
+ selected: Selected
69
+ slidingSubmenus: true
70
+ title: Starter Web
71
+ theme: dark
72
+
73
+ mmenu_drawer:
74
+ position: right
75
+
76
+ # ----------------------------------------------------------------------------
77
+ # NavMenu (Desktop)
58
78
  #
59
79
  nav_menu:
60
80
  enabled: false
@@ -110,8 +130,7 @@ defaults:
110
130
 
111
131
  translator_icon: flag-variant
112
132
 
113
- sidebar: true
114
- sidebar_icon: dots-vertical
133
+ toc_icon: wrap
115
134
 
116
135
  home_icon: home-variant
117
136
  home_url: none
@@ -152,23 +171,5 @@ defaults:
152
171
  search_heading_lead: ""
153
172
  result_heading_lead: ""
154
173
 
155
- # ----------------------------------------------------------------------------
156
- # NavSidebar
157
- #
158
- nav_sidebar:
159
- enabled: false
160
-
161
- xhr_container_id: navigator_nav_sidebar
162
- xhr_data_path: /assets/data/sidebar/index.html
163
-
164
- width: 380
165
- icon_family: MDI
166
- icon_color: md_white
167
- icon_size: mdi-1x
168
- sidebar_icon: dots-vertical
169
- close_icon: close
170
- background_color: md_grey_900
171
-
172
-
173
174
  # END config
174
- # ------------------------------------------------------------------------------
175
+ # ------------------------------------------------------------------------------
@@ -0,0 +1,50 @@
1
+ # ------------------------------------------------------------------------------
2
+ # ~/_data/modules/ssm.yml
3
+ # Default Configuration of the SSC Module (Sticky Side Menu)
4
+ #
5
+ # Product/Info:
6
+ # https://jekyll.one
7
+ #
8
+ # Copyright (C) 2020 Juergen Adams
9
+ #
10
+ # J1 Template is licensed under the MIT License.
11
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
12
+ #
13
+ # ------------------------------------------------------------------------------
14
+ # NOTE:
15
+ #
16
+ # ------------------------------------------------------------------------------
17
+
18
+ # ------------------------------------------------------------------------------
19
+ # About this configuration (used for J1 CC only)
20
+ #
21
+ about_config:
22
+ title: Sticky Side Menu
23
+ scope: Default settings
24
+ location: _data/modules/defaults/ssm.yml
25
+
26
+ # ------------------------------------------------------------------------------
27
+ # Default settings
28
+ #
29
+ defaults:
30
+ enabled: false
31
+
32
+ xhr_container_id: ssm-container
33
+ xhr_data_path: /assets/data/ssm/index.html
34
+
35
+ icon_family: MDI
36
+ icon_color: mdi-md-grey
37
+ icon_size: mdi-2x
38
+
39
+ min_width: 200
40
+ margin: -140 # button size 50x50
41
+
42
+ mode: menu # icon|menu
43
+
44
+ # ----------------------------------------------------------------------------
45
+ # CONTAINER elements (empty for default)
46
+ #
47
+ items:
48
+
49
+ # ------------------------------------------------------------------------------
50
+ # END config
@@ -152,21 +152,20 @@ defaults:
152
152
  # default: true
153
153
  #
154
154
  # ----------------------------------------------------------------------------
155
- tocSelector: .js-toc
156
- headingSelector: "h2, h3, h4, h5"
157
- headingsOffset: 500
158
- ignoreSelector: .notoc
159
- contentSelector: .js-toc-content
160
- activeLinkColor: "#3F51B5" # MD Indigo
161
- collapseDepth: 2
162
- throttleTimeout: 50
163
- includeHtml: false
164
- smoothScrollEnabled: true
165
- smoothScrollDuration: 300
166
- smoothScrollOffset: 90
167
- headingsOffset: 0
168
- throttleTimeout: 50
155
+ tocSelector: .js-toc
156
+ headingSelector: "h2, h3, h4, h5"
157
+ ignoreSelector: .notoc
158
+ contentSelector: .js-toc-content
159
+ activeLinkColor: "#3F51B5" # MD Indigo
160
+ collapseDepth: 2
161
+ throttleTimeout: 50
162
+ includeHtml: false
163
+ scrollSmooth: true
164
+ scrollSmoothDuration: 420
165
+ scrollSmoothOffset: 0
166
+ headingsOffset: 1
167
+ throttleTimeout: 50
169
168
 
170
169
 
171
170
  # ------------------------------------------------------------------------------
172
- # END config
171
+ # END config