From 6ee632ac44a306470e9da60830585142cb54d50b Mon Sep 17 00:00:00 2001 From: Emerson Rocha Date: Sat, 12 Jun 2021 04:20:22 -0300 Subject: [PATCH] =?UTF-8?q?HXL-CPLP/forum#58,=20hapi-t9n-alpha=20(#13),=20?= =?UTF-8?q?mvp-l10n-schemas=20(#7):=20em=20duvida=20sobre=20qual=20estrate?= =?UTF-8?q?gia=20usar=20para=20publicar=20copiar=20css/js=20para=20o=20sit?= =?UTF-8?q?e=20final;=20talvez=20fa=C3=A7a=20uma=20gambiarra=20simples=20e?= =?UTF-8?q?=20depois=20alguem=20otimiza?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 4 +++ _config.yml | 47 +++++++++++++++++++++++++ _includes/index-corporeum-mul-Zyyy.html | 1 + _includes/index-corporeum.html | 1 + _layouts/api.html | 1 + _plugins/jekyll_hapi_hooks.rb | 12 +++++++ 6 files changed, 66 insertions(+) diff --git a/Gemfile b/Gemfile index a96e0b0..f22e283 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,10 @@ group :jekyll_plugins do # gem 'jekyll-feed' gem 'jekyll-seo-tag' + # https://github.com/envygeeks/jekyll-assets + # gem 'jekyll-assets' + # gem "jekyll-assets", git: "https://github.com/envygeeks/jekyll-assets" + # Used only on Utilitatem.digitum_identicum() # https://github.com/johanns/sha3 gem 'sha3' diff --git a/_config.yml b/_config.yml index cc6ec95..89ac1a0 100644 --- a/_config.yml +++ b/_config.yml @@ -114,3 +114,50 @@ defaults: # # dir: 'eng/api-TEMP/BR' # # filter_condition: "record['gid'] == '/api/BR' and record['linguam'] == 'por'" # # debug: true + + +# @see https://github.com/envygeeks/jekyll-assets +# > TODO: talvez https://rdyar.github.io/2017/10/01/speed-up-jekyll-by-using-gulp-for-sass-and-other-assets/ (?) + +# _config.yml +# assets: +# source_maps: true +# destination: "/assets" +# compression: false +# gzip: false +# defaults: +# integrity: +# {css,img,js}: false +# caching: +# enabled: true +# path: ".jekyll-cache/assets" +# type: file +# # -- +# # Assets you wish to always have compiled. +# # This can also be combined with raw_precompile which +# # copies assets without running through the pipeline +# # making them ultra fast. +# # -- +# precompile: [] +# raw_precompile: [ +# # +# ] +# # -- +# # baseurl: whether or not to append site.baseurl +# # destination: the folder you store them in on the CDN. +# # url: the CDN url (fqdn, or w/ identifier). +# # -- +# cdn: +# baseurl: false +# destination: false +# url: null +# # -- +# # See lib/jekyll/assets/config.rb +# # for a list of defaults +# # -- +# sources: +# - _assets/css +# - _assets/js +# # plugins: +# # css: { autoprefixer: {}} +# # img: { optim: {}} diff --git a/_includes/index-corporeum-mul-Zyyy.html b/_includes/index-corporeum-mul-Zyyy.html index 6d0ed8e..a372a37 100644 --- a/_includes/index-corporeum-mul-Zyyy.html +++ b/_includes/index-corporeum-mul-Zyyy.html @@ -116,6 +116,7 @@

{% _🗣️ licentiam_nomen 🗣️_ %}

{% _🗣️ dominium_publicum_nomen 🗣️_ %} +
{% de_markdown %}{% _🗣️ Hapi_licentiam_Hapi_descriptionem 🗣️_ %}{% endde_markdown %} diff --git a/_includes/index-corporeum.html b/_includes/index-corporeum.html index 1892e11..5b37797 100644 --- a/_includes/index-corporeum.html +++ b/_includes/index-corporeum.html @@ -144,6 +144,7 @@

{% _🗣️ licentiam_nomen 🗣️_ %}

{% _🗣️ dominium_publicum_nomen 🗣️_ %} +
{% de_markdown %}{% _🗣️ Hapi_licentiam_Hapi_descriptionem 🗣️_ %}{% endde_markdown %} diff --git a/_layouts/api.html b/_layouts/api.html index 5a2b7ce..16ba7a7 100644 --- a/_layouts/api.html +++ b/_layouts/api.html @@ -45,6 +45,7 @@

{% _🗣️ licentiam_nomen 🗣️_ %}

{% _🗣️ dominium_publicum_nomen 🗣️_ %} +
{% de_markdown %}{% _🗣️ Hapi_licentiam_Hapi_descriptionem 🗣️_ %}{% endde_markdown %} diff --git a/_plugins/jekyll_hapi_hooks.rb b/_plugins/jekyll_hapi_hooks.rb index 0de4330..62e8e96 100644 --- a/_plugins/jekyll_hapi_hooks.rb +++ b/_plugins/jekyll_hapi_hooks.rb @@ -49,6 +49,18 @@ require 'fileutils' +# if !File.file?(File.join(site.dest, '/assets/css/hapi.css')) || \ +# (!FileUtils.compare_file( +# File.join(site.dest, '/assets/css/hapi.css'), +# File.join(site.source, '/_assets/css/hapi.css') +# )) +# puts 'jekyll_hapi_hooks: cp _assets/css/hapi.css _site/assets/css/hapi.css' +# FileUtils.cp( +# File.join(site.source, '/_assets/css/hapi.css'), +# File.join(site.dest, '/assets/css/hapi.css') +# ) +# end + if File.file?(File.join(site.dest, '/data/api.l10n.json')) && \ (!File.file?(File.join(site.source, '/_data/l10n/api.l10n.json')) || !FileUtils.compare_file( File.join(site.dest, '/data/api.l10n.json'),