Skip to content

Commit

Permalink
HXL-CPLP/forum#58, hapi-t9n-alpha (#13), mvp-l10n-schemas (#7): em du…
Browse files Browse the repository at this point in the history
…vida sobre qual estrategia usar para publicar copiar css/js para o site final; talvez faça uma gambiarra simples e depois alguem otimiza
  • Loading branch information
fititnt committed Jun 12, 2021
1 parent 8e5b26d commit 6ee632a
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
47 changes: 47 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}}
1 change: 1 addition & 0 deletions _includes/index-corporeum-mul-Zyyy.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ <h2 id="licentiam">{% _🗣️ licentiam_nomen 🗣️_ %}</h2>
<img src="https://i.creativecommons.org/p/zero/1.0/88x31.png"
alt="{% _🗣️ dominium_publicum_nomen 🗣️_ %}">
</a>
<br>
{% de_markdown %}{% _🗣️ Hapi_licentiam_Hapi_descriptionem 🗣️_ %}{% endde_markdown %}
</section>

Expand Down
1 change: 1 addition & 0 deletions _includes/index-corporeum.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ <h2 id="licentiam">{% _🗣️ licentiam_nomen 🗣️_ %}</h2>
<img src="https://i.creativecommons.org/p/zero/1.0/88x31.png"
alt="{% _🗣️ dominium_publicum_nomen 🗣️_ %}">
</a>
<br>
{% de_markdown %}{% _🗣️ Hapi_licentiam_Hapi_descriptionem 🗣️_ %}{% endde_markdown %}
</section>
</div>
1 change: 1 addition & 0 deletions _layouts/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h2>{% _🗣️ licentiam_nomen 🗣️_ %}</h2>
<img src="https://i.creativecommons.org/p/zero/1.0/88x31.png"
alt="{% _🗣️ dominium_publicum_nomen 🗣️_ %}">
</a>
<br>
{% de_markdown %}{% _🗣️ Hapi_licentiam_Hapi_descriptionem 🗣️_ %}{% endde_markdown %}
</section>

Expand Down
12 changes: 12 additions & 0 deletions _plugins/jekyll_hapi_hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 6ee632a

Please sign in to comment.