Skip to content

Commit 98faa66

Browse files
committed
Moving doc repository content here
Signed-off-by: Hofi <hofione@gmail.com>
1 parent 41273a4 commit 98faa66

File tree

965 files changed

+89368
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

965 files changed

+89368
-55
lines changed

.bundle/config

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
BUNDLE_PATH: ".vendor/bundle"
3+
BUNDLE_DEPLOYMENT: "false"

.github/workflows/jekyll-gh-pages.yml

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
8+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: ["master", "develop"]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# Allow canceling of the in-progress deployment now.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: true
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
37+
- name: Setup Ruby
38+
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
39+
with:
40+
ruby-version: '3.1' # Not needed with a .ruby-version file
41+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42+
cache-version: 0 # Increment this number if you need to re-download cached gems
43+
44+
- name: Setup Pages
45+
id: pages
46+
uses: actions/configure-pages@v4
47+
48+
- name: Run custom preparation steps
49+
run: |
50+
echo "Updating navigation.yml"
51+
pwd
52+
53+
# Last param turns off jekyll build for the links, let it be done in the next step
54+
# with the same parameters we use for the real site build
55+
#
56+
./_tools/navgen "./doc" "./_data/navigation.yml" "no"
57+
58+
ls -Al _data/navigation.yml
59+
60+
# This one is just for sure to have our final scripts result inplace
61+
# as in the following _site build step the assets/js folder will be modified unfortunately
62+
# Theoretically, the site build will not hurt the already presented files
63+
# See bellow for more
64+
#
65+
echo "Updating main.min.js and re-pack js scripts"
66+
pwd
67+
68+
./_tools/pack debug
69+
ls -AlR assets/js
70+
71+
- name: Build with Jekyll
72+
# Outputs to the './_site' directory by default
73+
run: |
74+
# A double build is needed currently as the _data/links/ content must be rendered from the final html output, so
75+
# the first run cannot use the not yet existing links
76+
#
77+
JEKYLL_BUILD_LINKS=yes bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
78+
79+
JEKYLL_BUILD_TOOLTIPS=yes bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
80+
81+
ls -AlR ./_site/assets/js
82+
env:
83+
JEKYLL_ENV: production
84+
85+
- name: Run custom after build steps
86+
# Seems jekyll build finds references from the minimal-mistakes bundle to the assets/js folder scripts
87+
# even though most of them are packed in assets/js/main.min.js
88+
# Re-packing only the required ones and overwrite the assets/js with the minimal result needed
89+
# For more see the _tools/pack script
90+
# TODO: Eliminate this later (probably building purely from local source the minimal-mistakes will solve this)
91+
# TODO: Double-check if it's still needed
92+
run: |
93+
echo "Updating main.min.js and re-pack js scripts"
94+
pwd
95+
96+
./_tools/pack debug
97+
ls -AlR _site/assets/js
98+
99+
- name: Upload artifact
100+
# Automatically uploads an artifact from the './_site' directory by default
101+
uses: actions/upload-pages-artifact@v3
102+
103+
# Deployment job
104+
deploy:
105+
environment:
106+
name: github-pages
107+
url: ${{ steps.deployment.outputs.page_url }}
108+
runs-on: ubuntu-latest
109+
needs: build
110+
steps:
111+
- name: Deploy to GitHub Pages
112+
id: deployment
113+
uses: actions/deploy-pages@v4

.github/workflows/static.yml

-54
This file was deleted.

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
## macOS
3+
.DS_Store
4+
5+
# Jekyll generated files
6+
.jekyll-cache
7+
.jekyll-metadata
8+
.sass-cache
9+
_asset_bundler_cache
10+
_site
11+
12+
## Ruby Gem
13+
# excluded in _config.yml instead
14+
#.bundle
15+
*.gem
16+
.vendor
17+
Gemfile.lock
18+
19+
## Node.js and NPM
20+
node_modules
21+
npm-debug.log*
22+
package-lock.json
23+
codekit-config.json
24+
25+
## Misc
26+
.reftime
27+
28+
# Generated files, must be regenerated during distribution always
29+
# These added back with warning headers to aid instant usage
30+
#_data/navigation.yml
31+
_data/links
32+
# _js/main.min.js
33+
assets/js
34+
_tools/package.json

Gemfile

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Hello! This is where you manage which Jekyll version is used to run.
6+
# When you want to use a different version, change it below, save the
7+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
8+
#
9+
# bundle exec jekyll serve
10+
#
11+
# This will help ensure the proper Jekyll version is running.
12+
# Happy Jekylling!
13+
#
14+
# To upgrade, run `bundle update`.
15+
16+
# The actual (07. febr. 2024) GitHub Pages dependency list got during CI builds
17+
# (Do not believe the outdated info at https://pages.github.com/versions/ :S )
18+
#
19+
# addressable 2.8.6
20+
# base64 0.2.0
21+
# bigdecimal 3.1.6
22+
# bundler 2.3.26
23+
# colorator 1.1.0
24+
# concurrent-ruby 1.2.3
25+
# csv 3.2.8
26+
# em-websocket 0.5.3
27+
# eventmachine 1.2.7
28+
# faraday 2.9.0
29+
# faraday-net_http 3.1.0
30+
# faraday-retry 2.2.0
31+
# ffi 1.16.3
32+
# forwardable-extended 2.6.0
33+
# google-protobuf 3.25.2 (x86_64-linux)
34+
# http_parser.rb 0.8.0
35+
# i18n 1.14.1
36+
# jekyll 4.3.3
37+
# jekyll-feed 0.17.0
38+
# jekyll-gist 1.5.0
39+
# jekyll-include-cache 0.2.1
40+
# jekyll-paginate 1.1.0
41+
# jekyll-remote-theme 0.4.3
42+
# jekyll-sass-converter 3.0.0
43+
# jekyll-sitemap 1.4.0
44+
# jekyll-watch 2.2.1
45+
# kramdown 2.4.0
46+
# kramdown-parser-gfm 1.1.0
47+
# liquid 4.0.4
48+
# listen 3.8.0
49+
# mercenary 0.4.0
50+
# minimal-mistakes-jekyll 4.24.0
51+
# net-http 0.4.1
52+
# octokit 4.25.1
53+
# pathutil 0.16.2
54+
# public_suffix 5.0.4
55+
# rake 13.1.0
56+
# rb-fsevent 0.11.2
57+
# rb-inotify 0.10.1
58+
# rexml 3.2.6
59+
# rouge 4.2.0
60+
# rubyzip 2.3.2
61+
# safe_yaml 1.0.5
62+
# sass-embedded 1.70.0 (x86_64-linux-gnu)
63+
# sawyer 0.9.2
64+
# terminal-table 3.0.2
65+
# unicode-display_width 2.5.0
66+
# uri 0.13.0
67+
# webrick 1.8.1
68+
#
69+
# So, jekyll 4.3.3 is used by GitHub already!
70+
# Try to use it in your own dev env as well!
71+
#
72+
# Dependeny hell, let "minimal-mistakes-jekyll" decide and add missing ones one-by one
73+
#gem "jekyll", "~> 4.3.3"
74+
75+
#
76+
# FIXME: Get rid of the chaos, use clean local theme copy, we added a bunch of enhancements already, so
77+
# we don't really need the bundled, updated version anymore
78+
#
79+
# https://jekyllrb.com/docs/themes/#overriding-theme-defaults
80+
#
81+
gem "minimal-mistakes-jekyll"
82+
83+
gem "rake"
84+
gem "csv"
85+
gem "base64"
86+
gem "bigdecimal"
87+
gem "faraday-retry"
88+
# take care, the default dependency of minimal-mistakes-jekyll.4.24.0 is mercenary-0.3.6
89+
# that could lead to build error:
90+
# /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/logger.rb:384:in `level': undefined method `[]' for nil (NoMethodError)
91+
# @level_override[Fiber.current] || @level
92+
gem "mercenary", "~> 0.4"
93+
94+
# self made plugins dependencies
95+
gem "nokogiri"
96+
97+
# Gems loaded irrespective of site configuration.
98+
# If you have any other plugins, put them here!
99+
# Cf. https://jekyllrb.com/docs/plugins/installation/
100+
group :jekyll_plugins do
101+
102+
gem "jekyll-remote-theme"
103+
# gem "jekyll-paginate"
104+
# gem "jekyll-sitemap"
105+
# gem "jekyll-gist"
106+
107+
# Doc mentiones only these are needed if using remote
108+
# https://github.com/HofiOne/minimal-mistakes
109+
#
110+
gem "jekyll-include-cache"
111+
# gem "github-pages"
112+
end

0 commit comments

Comments
 (0)