Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] v1.0 dev #2968

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions CUSTOMIZE.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ You can also:
- delete [\_layouts/archive-category.liquid](_layouts/archive-category.liquid)
- delete [\_layouts/archive-tag.liquid](_layouts/archive-tag.liquid)
- delete [\_layouts/archive-year.liquid](_layouts/archive-year.liquid)
- delete [\_plugins/external-posts.rb](_plugins/external-posts.rb)
- remove the `jekyll-archives` gem from the [Gemfile](Gemfile) and the `plugins` section in [\_config.yml](_config.yml)
- remove the `classifier-reborn` gem from the [Gemfile](Gemfile)

Expand Down Expand Up @@ -227,9 +226,7 @@ You can also:
- delete [\_includes/bib_search.liquid](_includes/bib_search.liquid)
- delete [\_includes/citation.liquid](_includes/citation.liquid)
- delete [\_includes/selected_papers.liquid](_includes/selected_papers.liquid)
- delete [\_plugins/google-scholar-citations.rb](_plugins/google-scholar-citations.rb)
- delete [\_plugins/hide-custom-bibtex.rb](_plugins/hide-custom-bibtex.rb)
- delete [\_plugins/inspirehep-citations.rb](_plugins/inspirehep-citations.rb)
- remove the `jekyll-scholar` gem from the [Gemfile](Gemfile) and the `plugins` section in [\_config.yml](_config.yml)

### Removing the repositories page
Expand Down
11 changes: 9 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ gem 'jekyll'

# Core plugins that directly affect site building
group :jekyll_plugins do
gem 'jekyll-3rd-party-libraries'
gem 'jekyll-archives'
gem 'jekyll-cache-bust'
gem 'jekyll-email-protect'
gem 'jekyll-feed'
gem 'jekyll-get-json'
Expand All @@ -28,11 +30,16 @@ end
# Gems for development or external data fetching (outside :jekyll_plugins)
group :other_plugins do
gem 'css_parser'
gem 'feedjira'
gem 'httparty'
gem 'observer' # used by jekyll-scholar
gem 'ostruct' # used by jekyll-twitter-plugin
gem 'terser' # used by jekyll-terser
# gem 'unicode_utils' -- should be already installed by jekyll
# gem 'webrick' -- should be already installed by jekyll
end

# Gems for al-folio plugins
group :al_folio_plugins do
gem 'al_analytics', :git => 'https://github.com/al-org-dev/al-analytics.git'
gem 'al_citations', :git => 'https://github.com/al-org-dev/al-citations.git'
gem 'al_ext_posts', :git => 'https://github.com/al-org-dev/al-ext-posts.git'
end
56 changes: 53 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ GIT
jekyll (>= 0.10.0)
terser (>= 1.0.0)

GIT
remote: https://github.com/al-org-dev/al-analytics.git
revision: a9c7821b0a3639ed3f1cc8a8cdcaabfbb4f64f5d
specs:
al_analytics (0.1.0)
jekyll (>= 3.0)
liquid (>= 4.0)

GIT
remote: https://github.com/al-org-dev/al-citations.git
revision: d6dd73152f8ceafe475f0f0ad5c846167c006e4f
specs:
al_citations (0.1.0)
activesupport
jekyll (>= 3.0)
nokogiri

GIT
remote: https://github.com/al-org-dev/al-ext-posts.git
revision: d23754e940328ae2581ad25b83c9d45c35ba4040
specs:
al_ext_posts (0.1.0)
feedjira
httparty
jekyll (>= 3.0)
nokogiri

GEM
remote: https://rubygems.org/
specs:
Expand All @@ -30,8 +57,13 @@ GEM
latex-decode (~> 0.0)
racc (~> 1.7)
bigdecimal (3.1.9)
citeproc (1.0.10)
citeproc (1.1.0)
date
forwardable
json
namae (~> 1.0)
observer (< 1.0)
open-uri (< 1.0)
citeproc-ruby (1.1.14)
citeproc (~> 1.0, >= 1.0.9)
csl (~> 1.6)
Expand All @@ -51,6 +83,7 @@ GEM
addressable
cssminify2 (2.0.1)
csv (3.3.2)
date (3.4.1)
deep_merge (1.2.2)
drb (2.2.1)
em-websocket (0.5.3)
Expand All @@ -70,6 +103,7 @@ GEM
ffi (1.17.1-x86_64-darwin)
ffi (1.17.1-x86_64-linux-gnu)
ffi (1.17.1-x86_64-linux-musl)
forwardable (1.3.3)
forwardable-extended (2.6.0)
gemoji (4.1.0)
google-protobuf (4.29.3)
Expand Down Expand Up @@ -98,6 +132,10 @@ GEM
multi_xml (>= 0.5.2)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
jekyll-3rd-party-libraries (0.0.1)
css_parser (>= 1.6, < 2.0)
jekyll (>= 3.6, < 5.0)
nokogiri (>= 1.8, < 2.0)
jekyll (4.3.4)
addressable (~> 2.4)
colorator (~> 1.0)
Expand All @@ -116,6 +154,8 @@ GEM
webrick (~> 1.7)
jekyll-archives (2.3.0)
jekyll (>= 3.6, < 5.0)
jekyll-cache-bust (0.0.1)
jekyll (>= 3.6, < 5.0)
jekyll-email-protect (1.1.0)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
Expand Down Expand Up @@ -198,6 +238,10 @@ GEM
nokogiri (1.18.1-x86_64-linux-musl)
racc (~> 1.4)
observer (0.1.2)
open-uri (0.5.0)
stringio
time
uri
ostruct (0.6.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
Expand Down Expand Up @@ -228,10 +272,13 @@ GEM
google-protobuf (~> 4.29)
sax-machine (1.3.2)
securerandom (0.4.1)
stringio (3.1.2)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
terser (1.2.4)
execjs (>= 0.3.0, < 3)
time (0.4.1)
date
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (4.2.1)
Expand All @@ -255,12 +302,15 @@ PLATFORMS
x86_64-linux-musl

DEPENDENCIES
al_analytics!
al_citations!
al_ext_posts!
classifier-reborn
css_parser
feedjira
httparty
jekyll
jekyll-3rd-party-libraries
jekyll-archives
jekyll-cache-bust
jekyll-email-protect
jekyll-feed
jekyll-get-json
Expand Down
24 changes: 14 additions & 10 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ og_image: # The site-wide (default for all links) Open Graph preview image
# Analytics and search engine verification
# -----------------------------------------------------------------------------

# For Google Analytics, see https://support.google.com/analytics/answer/10447272?hl=en&ref_topic=14088998&sjid=5129943941510317771-SA#zippy=%2Cgoogle-sites
# and follow the instructions for Google Sites. You will need to create a Google Analytics property and copy the Google tag ID.
google_analytics: # your Google Analytics measurement ID (format: G-XXXXXXXXXX)
cronitor_analytics: # cronitor RUM analytics site ID (format: XXXXXXXXX)
pirsch_analytics: # your Pirsch analytics site ID (length 32 characters)
openpanel_analytics: # your Openpanel analytics client ID (format: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)
analytics:
# For Google Analytics, see https://support.google.com/analytics/answer/10447272?hl=en&ref_topic=14088998&sjid=5129943941510317771-SA#zippy=%2Cgoogle-sites
# and follow the instructions for Google Sites. You will need to create a Google Analytics property and copy the Google tag ID.
google: # your Google Analytics measurement ID (format: G-XXXXXXXXXX)
cronitor: # cronitor RUM analytics site ID (format: XXXXXXXXX)
pirsch: # your Pirsch analytics site ID (length 32 characters)
openpanel: # your Openpanel analytics client ID (format: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)

# For Google Search Console, see https://support.google.com/webmasters/answer/9008080?hl=en#meta_tag_verification&zippy=%2Chtml-tag
google_site_verification: # your google-site-verification ID (Google Search Console)
Expand Down Expand Up @@ -208,7 +209,9 @@ keep_files:

# Plug-ins
plugins:
- jekyll-3rd-party-libraries
- jekyll-archives
- jekyll-cache-bust
- jekyll-email-protect
- jekyll-feed
- jekyll-get-json
Expand All @@ -226,6 +229,11 @@ plugins:
- jekyll-twitter-plugin
- jemoji

# al-folio plugins
- al_analytics
- al_citations
- al_ext_posts

# Sitemap settings
defaults:
- scope:
Expand Down Expand Up @@ -387,10 +395,6 @@ lazy_loading_images: true # enables lazy loading of images (recommended)
# Optional Features
# -----------------------------------------------------------------------------

enable_google_analytics: false # enables google analytics
enable_cronitor_analytics: false # enables cronitor RUM analytics
enable_pirsch_analytics: false # enables Pirsch analytics (https://pirsch.io/)
enable_openpanel_analytics: false # enables Openpanel analytics (https://openpanel.dev/)
enable_google_verification: false # enables google site verification
enable_bing_verification: false # enables bing site verification
enable_masonry: true # enables automatic project cards arrangement
Expand Down
24 changes: 2 additions & 22 deletions _includes/scripts.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -212,29 +212,9 @@
{% endunless %}
{% endif %}

{% if site.enable_google_analytics %}
{% if site.plugins contains 'al_analytics' %}
<!-- Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
{% endif %}

{% if site.enable_cronitor_analytics %}
<!-- Cronitor RUM -->
<script async src="https://rum.cronitor.io/script.js"></script>
<script defer src="{{ '/assets/js/cronitor-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
{% endif %}
{% if site.enable_pirsch_analytics %}
<script
defer
src="https://api.pirsch.io/pa.js"
id="pianjs"
data-code="{{ site.pirsch_analytics }}"
></script>
{% endif %}
{% if site.enable_openpanel_analytics %}
<script defer src="{{ '/assets/js/open-panel-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
<script async defer src="https://openpanel.dev/op1.js"></script>
{% al_analytics_scripts %}
{% endif %}

{% if site.enable_progressbar %}
Expand Down
51 changes: 0 additions & 51 deletions _plugins/cache-bust.rb

This file was deleted.

Loading