Skip to content

Commit

Permalink
fix(site): remote config
Browse files Browse the repository at this point in the history
  • Loading branch information
elgorditosalsero committed Jan 22, 2024
1 parent b1c8049 commit 3af30f7
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 54 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages

on:
push:
branches: ["feat/matomo"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v2

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ dist/
.env
.env.*
!.env.example

# Site
_site
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ GEM
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.25.2-x86_64-darwin)
google-protobuf (3.25.2-x86_64-linux)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -65,13 +66,16 @@ GEM
safe_yaml (1.0.5)
sass-embedded (1.70.0-x86_64-darwin)
google-protobuf (~> 3.25)
sass-embedded (1.70.0-x86_64-linux-gnu)
google-protobuf (~> 3.25)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
unicode-display_width (2.5.0)
webrick (1.8.1)

PLATFORMS
x86_64-darwin-22
x86_64-linux

DEPENDENCIES
just-the-docs
Expand Down
14 changes: 14 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: Il Libro Open Source

theme: just-the-docs
baseUrl: "/book"
url: "https://il-libro-open-source.github.io"

permalink: pretty

search_enabled: true

back_to_top: true
back_to_top_text: "Torna all'inizio"

footer_content: "Copyright &copy; 2023-2023 Il Libro Open Source"
4 changes: 4 additions & 0 deletions assets/images/piramide.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions docs/_config.yml

This file was deleted.

49 changes: 0 additions & 49 deletions docs/it/introduzione.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/it/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Il testing è una parte fondamentale di ogni progetto software. In questo capito
Esistono diversi tipi di test, ognuno con un suo scopo ben preciso.

Si fa spesso riferimento alla piramide del testing, che rappresenta la proporzione tra di essi:
<img src="./testing/piramide.png" alt="Piramide del testing"/>
![Piramide del testing](/book/assets/images/piramide.svg)

Nel resto del capitolo li vedremo nel dettaglio.

Expand Down
Binary file removed docs/it/testing/piramide.png
Binary file not shown.
Loading

0 comments on commit 3af30f7

Please sign in to comment.