From 24e3a8cd9467be26a11a40756d43327768100c6c Mon Sep 17 00:00:00 2001 From: mtouzot Date: Sat, 6 Jul 2024 10:32:01 +0200 Subject: [PATCH] Adapt gh-page for my repo --- .github/workflows/jekyll.yml | 1 + README.md | 26 +++++++-------- docs/LICENSE.md | 22 ------------- docs/README.md | 42 ------------------------- docs/_config.yml | 5 +-- docs/_includes/footer.liquid | 9 +++++- docs/_includes/header.liquid | 6 ++-- docs/_includes/image.liquid | 6 ++-- docs/_includes/index.liquid | 4 +++ docs/_layouts/page.liquid | 4 +-- docs/_layouts/post.liquid | 6 ++-- docs/_posts/2019-06-20-second-page.md | 7 ----- docs/_sass/overrides.scss | 13 +++++++- docs/about.md | 4 ++- docs/assets/big-advent-code-2015.png | Bin 0 -> 339511 bytes docs/assets/favicon.png | Bin 418 -> 1986 bytes docs/assets/github-mark-white.png | Bin 0 -> 4837 bytes docs/assets/home.png | Bin 0 -> 10810 bytes docs/assets/jekyll_latex_cover_art.png | Bin 141313 -> 0 bytes docs/assets/latex_image_example.jpeg | Bin 77773 -> 0 bytes docs/assets/touch-icon.png | Bin 38943 -> 42894 bytes 21 files changed, 55 insertions(+), 100 deletions(-) delete mode 100644 docs/LICENSE.md delete mode 100644 docs/README.md delete mode 100644 docs/_posts/2019-06-20-second-page.md create mode 100644 docs/assets/big-advent-code-2015.png create mode 100644 docs/assets/github-mark-white.png create mode 100644 docs/assets/home.png delete mode 100644 docs/assets/jekyll_latex_cover_art.png delete mode 100644 docs/assets/latex_image_example.jpeg diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index a190a3a..1fa258a 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -10,6 +10,7 @@ on: # Runs on pushes targeting the default branch push: branches: ["main"] + paths: ["docs/**"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/README.md b/README.md index 9933eea..8fc4c76 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ -# Advent of Code +# Advents of Code + +

+ +

[Advent of Code](https://adventofcode.com/) is a web challenge based upon a advent calendar but for developers. -Every day a challenge to solve. +Every day a challenge to solve. No programming language imposed. + +My solutions can be found [here](https://mtouzot.github.io/advents-of-code/) + +## Credits & Copyright -Pick up your computer and your favourite coding language and go on! +Advent of Code is only **free to use**, the [About page](https://adventofcode.com/about) answers the [copy/redistribute](https://adventofcode.com/about#faq_copying) part. -You can find the daily challenge here: +Favicons can be found on Freepik - Flaticon -- [2015](https://adventofcode.com/2015) -- [2016](https://adventofcode.com/2016) -- [2017](https://adventofcode.com/2017) -- [2018](https://adventofcode.com/2018) -- [2019](https://adventofcode.com/2019) -- [2020](https://adventofcode.com/2020) -- [2021](https://adventofcode.com/2021) -- [2022](https://adventofcode.com/2022) -- [2023](https://adventofcode.com/2023) +The documation page hosted on Github Page is a [personnal fork](https://github.com/mtouzot/jekyll-latex.git) of Ryan McDermott's [jekyll-latex theme](https://github.com/ryanmcdermott/jekyll-latex) \ No newline at end of file diff --git a/docs/LICENSE.md b/docs/LICENSE.md deleted file mode 100644 index b64e58d..0000000 --- a/docs/LICENSE.md +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2020 Ryan McDermott -Copyright (c) 2024 Martin TOUZOT - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index dc4c603..0000000 --- a/docs/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# jekyll-latex - -

- -

- - [![LICENSE](https://img.shields.io/github/license/mtouzot/jekyll-latex)](LICENSE.md) - - -## Features -- LaTeX typography -- Abstract, theorems, proofs, and definitions -- MathJax -- Google Analytics -- Profile photo -- Compatible with Jekyll 3.x and Github Pages -- Responsive layout -- Supports Jekyll's SCSS preprocessor - -## Installation -``` -git clone https://github.com/mtouzot/jekyll-latex.git - -bundle install - -# Change all relevant settings for your site in _config.yml - -bundle exec jekyll serve --watch -``` - -## Credits - -Based on the amazing work below: -- https://github.com/ryanmcdermott/jekyll-latex -- https://github.com/heiswayi/the-plain -- https://github.com/vincentdoerig/latex-css - -## Licenses - -1. This project: MIT -1. The Plain (of which this is based): MIT -1. Latex CSS: MIT \ No newline at end of file diff --git a/docs/_config.yml b/docs/_config.yml index d7aa3e2..5b27f3b 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -9,11 +9,12 @@ google_analytics: UA-123 author_name: "Martin TOUZOT" # Your name here author_email: martin.touzot@gmail.com # Your email here author_gravatar: b1fb30e34362f9801f2317acde0f3838 # Your Gravatar md5 hash here for logo +author_github: mtouzot # Site Settings url: https://mtouzot.github.io # Change to your site baseurl: /advents-of-code -permalink: /posts/:title # Post permalink +permalink: /:year/:day/:title # Post permalink timezone: America/Los_Angeles # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones mathjax: true # enables support for mathjax - set to false to disable @@ -32,7 +33,7 @@ plugins: - jekyll-sitemap - jekyll-paginate -paginate: 10 +paginate: 25 paginate_path: "/blog/page:num/" defaults: diff --git a/docs/_includes/footer.liquid b/docs/_includes/footer.liquid index 6d0638d..cb4ccb8 100644 --- a/docs/_includes/footer.liquid +++ b/docs/_includes/footer.liquid @@ -1,4 +1,8 @@ \ No newline at end of file diff --git a/docs/_includes/header.liquid b/docs/_includes/header.liquid index 42f209a..08e6f6b 100644 --- a/docs/_includes/header.liquid +++ b/docs/_includes/header.liquid @@ -1,14 +1,14 @@