Skip to content

Commit 3dc3868

Browse files
Merge pull request #287 from DiogoRibeiro7/feat/reserve_branche
Feat/reserve branche
2 parents c0a0839 + 674daf0 commit 3dc3868

File tree

66 files changed

+1269
-413
lines changed

Some content is hidden

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

66 files changed

+1269
-413
lines changed

README.md

Lines changed: 31 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,62 @@
1-
# [Minimal Mistakes Jekyll theme](https://mmistakes.github.io/minimal-mistakes/)
1+
# Personal Blog on Minimal Mistakes
22

3-
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/DiogoRibeiro7/DiogoRibeiro7.github.io/master/LICENSE)
3+
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
44
[![Hosted with GH Pages](https://img.shields.io/badge/Hosted_with-GitHub_Pages-blue?logo=github&logoColor=white)](https://pages.github.com/)
55
[![Made with GH Actions](https://img.shields.io/badge/CI-GitHub_Actions-blue?logo=github-actions&logoColor=white)](https://github.com/features/actions)
66

7-
[![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%204.3-blue.svg)](https://jekyllrb.com/)
7+
This repository contains the source code for my website built with the
8+
[Minimal Mistakes](https://mmistakes.github.io/minimal-mistakes/) Jekyll theme.
9+
It also includes a few helper scripts to clean up Markdown front matter and
10+
run tests.
811

9-
[![Ruby Version](https://img.shields.io/badge/ruby-3.1-blue)](https://www.ruby-lang.org)
10-
[![Ruby gem](https://img.shields.io/gem/v/minimal-mistakes-jekyll.svg)](https://rubygems.org/gems/minimal-mistakes-jekyll)
12+
## Requirements
1113

12-
13-
Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building personal sites, blogs, and portfolios. As the name implies, styling is purposely minimalistic to be enhanced and customized by you :smile:.
14-
15-
## Setup
16-
17-
This repository contains a few helper scripts for processing Markdown posts.
18-
Install the Python dependencies listed in `requirements.txt` with:
14+
The site relies on Ruby, Node and Python tooling. Install dependencies with:
1915

2016
```bash
17+
# Python packages for helper scripts and tests
2118
pip install -r requirements.txt
22-
```
2319

24-
To work with the JavaScript that powers the theme you'll also need Node
25-
dependencies. Install them with:
26-
27-
```bash
20+
# JavaScript dependencies
2821
npm install
29-
```
30-
31-
This project uses **npm** for managing JavaScript dependencies and tracks
32-
exact versions in `package-lock.json`.
33-
34-
Bundled JavaScript is compiled from the source files in `assets/js/`. Run the
35-
following to create `main.min.js` (minified with a banner) or watch for changes:
36-
37-
```bash
38-
npm run build:js # minify and add banner
39-
npm run watch:js # optional: automatically rebuild on changes
40-
```
41-
42-
## CSS linting
43-
44-
Lint all SCSS files with [Stylelint](https://stylelint.io/):
4522

46-
```bash
47-
npm run lint:css
23+
# Ruby gems for Jekyll
24+
bundle install
4825
```
4926

50-
## Local development
27+
## Development
5128

52-
Install Ruby gems specified in the `Gemfile` with:
29+
Use the following commands while working on the site:
5330

5431
```bash
55-
bundle install
56-
```
32+
# start a local server at http://localhost:4000/
33+
bundle exec jekyll serve
5734

58-
Serve the site locally with:
35+
# rebuild JavaScript when files change
36+
npm run watch:js
5937

60-
```bash
61-
bundle exec jekyll serve
38+
# lint stylesheets
39+
npm run lint:css
6240
```
6341

42+
## Tests
6443

65-
## Running tests
66-
67-
Install the Python dependencies and execute:
44+
Front matter utilities are covered by a small `pytest` suite. Run the tests with:
6845

6946
```bash
7047
pytest
7148
```
72-
GitHub Actions already runs these commands automatically during deployments.
73-
74-
# ToDo
75-
76-
~~Have a consistency in the font and font sizes (ideally you want to use 2 fonts. One for the header/subtitle and one for the text. You can use this kind of website https://fontjoy.com/ which allow you to pair fonts).~~
77-
78-
Choose a few main colours for your site (I would suggest black/white/grey but not in solid. You can also use this kind of site: https://coolors.co/palettes/popular/2a4849).
7949

80-
~~Reduce then size of the homepage top image (ideally you want your first articles to be visible on load and not hidden below the fold).~~
50+
GitHub Actions executes the same tests on every push.
8151

82-
~~Restyle your links (ideally the link should be back with no underline and you add a css style on hover)~~
52+
## Roadmap
8353

84-
~~Center pagination~~
54+
Planned improvements are organised as sprints in [ROADMAP.md](ROADMAP.md).
55+
Highlights include:
8556

86-
~~Restyle your article detail page breadcrumbs. You want them to be less visible (I would suggest a light grey colour here)~~
57+
- refining typography and the colour palette
58+
- restructuring the homepage with card‑style articles
59+
- adding search and dark mode
60+
- optimising performance and accessibility
8761

88-
Right now at the top of the detail page, you have your site breadcrumbs, a title then another title and the font sizes are a bit off and it is hard to understand the role of the second title. I would reorganise this to provide a better understanding to the reader
89-
On the detail page, I would suggest you put the `You may also enjoy` straight at the end of the article. Right now it is after comments and you can lose engagement on your site.
90-
I would suggest you remove your description from the detail page. I think having it on the home page is enough. You can have a smaller introduction if needed with a read more button or link that will take the reader to a full page description of yourself and your skillset. That will allow you to tell more about yourself and why you do what you do
91-
I will create card article with a hover animation (add some shape and background colour and ideally a header image for the card. The graphs you show me last week for example.)
62+
Contributions are welcome!

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ facebook:
8686
username :
8787
app_id :
8888
publisher :
89-
og_image : # Open Graph/Twitter default site image
89+
og_image : /assets/images/data-science.png
9090
# For specifying social profiles
9191
# - https://developers.google.com/structured-data/customize/social-profiles
9292
social:
@@ -196,7 +196,7 @@ exclude:
196196
- Rakefile
197197
- README
198198
- tmp
199-
- /docs # ignore Minimal Mistakes /docs
199+
# - /docs # ignore Minimal Mistakes /docs
200200
- /test # ignore Minimal Mistakes /test
201201
keep_files:
202202
- .git

_data/navigation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ main:
1919
# - title: "Sitemap"
2020
# url: /sitemap/
2121
- title: "Code Download"
22-
url: /code/
22+
url: /code/
23+
- title: "Package Docs"
24+
url: /docs/

_includes/archive-single.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
{% endif %}
1212

1313
<div class="{{ include.type | default: 'list' }}__item">
14-
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
15-
{% if include.type == "grid" and teaser %}
16-
<div class="archive__item-teaser">
17-
<a href="{{ post.url | relative_url }}"><img src="{{ teaser | relative_url }}" alt="{{ post.title }}"></a>
18-
</div>
19-
{% endif %}
14+
<article class="archive__item card" itemscope itemtype="https://schema.org/CreativeWork">
15+
{% if teaser %}
16+
<div class="archive__item-teaser">
17+
<a href="{{ post.url | relative_url }}"><img src="{{ teaser | relative_url }}" alt="{{ post.title }}"></a>
18+
</div>
19+
{% endif %}
2020
<h2 class="archive__item-title no_toc" itemprop="headline">
2121
{% if post.link %}
2222
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!-- Google Fonts -->
2121
<link rel="preconnect" href="https://fonts.googleapis.com">
2222
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
23-
<link href="https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
23+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Nunito+Sans:wght@400;700&display=swap" rel="stylesheet">
2424

2525
{% if site.head_scripts %}
2626
{% for script in site.head_scripts %}

_includes/page__hero.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
>
2424
{% if page.header.overlay_color or page.header.overlay_image %}
2525
<div class="wrapper">
26-
<!-- <h1 id="page-title" class="page__title" itemprop="headline">
26+
<h1 id="page-title" class="page__title" itemprop="headline">
2727
{% if paginator and site.paginate_show_page_num %}
2828
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
2929
{% else %}
3030
{{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
3131
{% endif %}
32-
</h1> -->
32+
</h1>
3333
{% if page.tagline %}
3434
<p class="page__lead">{{ page.tagline | markdownify | remove: "<p>" | remove: "</p>" }}</p>
35-
{% elsif page.header.show_overlay_excerpt != false and page.excerpt %}
35+
{% elsif page.header.show_overlay_excerpt != false and page.excerpt and page.collection != 'posts' %}
3636
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
3737
{% endif %}
3838
{% include page__meta.html %}

_layouts/single.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
{% include sidebar.html %}
2323

2424
<article class="page h-entry" itemscope itemtype="https://schema.org/CreativeWork">
25+
{% unless page.header.overlay_color or page.header.overlay_image %}
2526
{% if page.title %}<h1 id="page-title" class="page__title p-name" itemprop="headline">
2627
<a href="{{ page.url | absolute_url }}" class="u-url" itemprop="url">{{ page.title | markdownify | remove: "
2728
<p>" | remove: "</p>" }}</a>
2829
</h1>{% endif %}
30+
{% endunless %}
2931
{% if page.subtitle %}<h2 class="page__subtitle">{{ page.subtitle }}</h2>{% endif %}
3032

3133
{% if page.excerpt %}
@@ -108,4 +110,4 @@ <h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label
108110
{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
109111
{% include comments.html %}
110112
{% endif %}
111-
</div>
113+
</div>

_pages/code-download.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: single
3+
title: "Code Download"
4+
permalink: /code/
5+
author_profile: true
6+
---
7+
8+
This page provides convenient links to code examples referenced throughout the blog. The full source for this website, including these examples, is available on [GitHub](https://github.com/DiogoRibeiro7/DiogoRibeiro7.github.io).
9+
10+
## Individual files
11+
12+
You can download specific files directly from the repository:
13+
14+
- [Michelson–Morley experiment visualization]({{ '/code/michelson_morley.py' | relative_url }})
15+
- [Example notebook]({{ '/code/Untitled.ipynb' | relative_url }})
16+
17+
## Repository download
18+
19+
If you would like to obtain the entire collection of examples, clone the repository using Git or grab the automatic ZIP archive:
20+
21+
```bash
22+
git clone https://github.com/DiogoRibeiro7/DiogoRibeiro7.github.io.git
23+
```
24+
25+
Or visit [the GitHub project page](https://github.com/DiogoRibeiro7/DiogoRibeiro7.github.io) and use **Download ZIP**.
26+
27+
---
28+
29+
Feel free to reach out at [[email protected]](mailto:[email protected]) for professional enquiries or [[email protected]](mailto:[email protected]) for personal matters. My ORCID is [0009-0001-2022-7072](https://orcid.org/0009-0001-2022-7072) and I’m affiliated with **ESMAD - Instituto Politécnico do Porto**.

_pages/package-docs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: single
3+
title: "Package Documentation"
4+
permalink: /docs/
5+
author_profile: true
6+
---
7+
8+
This page collects links to documentation for the packages I maintain. When available, documentation is hosted online. Otherwise it will be stored directly in this repository.
9+
10+
## Packages
11+
12+
- [**frontmatter**]({{ '/docs/frontmatter/' | relative_url }})
13+
14+
---
15+
16+
Feel free to reach out at [[email protected]](mailto:[email protected]) for professional enquiries or [[email protected]](mailto:[email protected]) for personal matters. My ORCID is [0009-0001-2022-7072](https://orcid.org/0009-0001-2022-7072) and I’m affiliated with **ESMAD - Instituto Politécnico do Porto**.

_posts/2020-11-05-probability_theory_basics.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ categories:
44
- Statistics
55
classes: wide
66
date: '2020-11-05'
7-
excerpt: An introduction to probability theory concepts every data scientist should know.
7+
excerpt: An introduction to probability theory concepts every data scientist should
8+
know.
89
header:
910
image: /assets/images/data_science_10.jpg
1011
og_image: /assets/images/data_science_10.jpg
@@ -17,15 +18,17 @@ keywords:
1718
- Random variables
1819
- Distributions
1920
- Data science
20-
seo_description: Learn the core principles of probability theory, from random variables to common distributions, with practical examples for data science.
21-
seo_title: 'Probability Theory Basics for Data Science'
21+
seo_description: Learn the core principles of probability theory, from random variables
22+
to common distributions, with practical examples for data science.
23+
seo_title: Probability Theory Basics for Data Science
2224
seo_type: article
23-
summary: This post reviews essential probability concepts like random variables, expectation, and common distributions, illustrating how they underpin data science workflows.
25+
summary: This post reviews essential probability concepts like random variables, expectation,
26+
and common distributions, illustrating how they underpin data science workflows.
2427
tags:
2528
- Probability
2629
- Statistics
2730
- Data science
28-
title: 'Probability Theory Basics for Data Science'
31+
title: Probability Theory Basics for Data Science
2932
---
3033

3134
Probability theory provides the mathematical foundation for modeling uncertainty. By understanding random variables and probability distributions, data scientists can quantify risks and make informed decisions.

0 commit comments

Comments
 (0)