Skip to content

Commit 0443cfd

Browse files
committed
21.8
[general] - move building scripts [changelog] - minor enhancements [about] - okticket situation update - small changes
1 parent afc71cd commit 0443cfd

10 files changed

Lines changed: 64 additions & 57 deletions

File tree

.eleventy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const { EleventyRenderPlugin } = require("@11ty/eleventy");
33
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
44
const Nunjucks = require("nunjucks");
55

6-
const buildBreadcrumbs = require('./src/building/breadcrumbs.js');
7-
const buildChangelog = require('./src/building/changelog.js');
8-
const addAsset = require('./src/building/linking.js');
9-
const { qka, quizButtons, quizQuestions } = require('./src/building/quizzing.js');
6+
const buildBreadcrumbs = require('./src/static/js/building/breadcrumbs.js');
7+
const buildChangelog = require('./src/static/js/building/changelog.js');
8+
const addAsset = require('./src/static/js/building/linking.js');
9+
const { qka, quizButtons, quizQuestions } = require('./src/static/js/building/quizzing.js');
1010

1111
module.exports = function (eleventyConfig) {
1212
eleventyConfig.addPlugin(EleventyRenderPlugin);

assets/icons/tech/typescript.svg

Lines changed: 1 addition & 0 deletions
Loading

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/building/changelog.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/content/about.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
<li>i like 🧗 climbing, 🚲 cycling and playing 🎸 bass.</li>
88
<li>{{ macros.renderIcon('ruby') }} ruby, {{ macros.renderIcon('python') }} python, {{ macros.renderIcon('java') }} java and a little bit of everything else (c/c++/c#, shell, web, sql, ...)</li>
99
<li>i take 📒 <a href="https://github.com/miermontoto/notes">notes</a> in {{ macros.renderIcon('markdown') }} markdown using {{ macros.renderIcon('obsidian') }} <a href="https://obsidian.md">obsidian</a>.
10-
<li><a href="/this/">this 🌐 webpage</a> was hand built by me using {{ macros.renderIcon('eleventy') }} <a href="https://11ty.dev" target="_blank">eleventy</a>.</li>
10+
<li><a href="/this/">this 🌐 webpage</a> was hand built using {{ macros.renderIcon('eleventy') }} <a href="https://11ty.dev" target="_blank">eleventy</a>.</li>
1111
</ul>

src/content/collections/experience/okticket.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: okticket
33
role: software engineer
44
period: 2023-
5-
icons: [ruby, laravel, docker, php, aws]
5+
icons: [ruby, laravel, docker, php, aws, typescript]
66
class: okticket work
77
---
88

@@ -12,9 +12,10 @@ class: okticket work
1212

1313
- **2024-now: developer**
1414
- backend serverless services using aws lambdas in nestjs.
15-
- new pdf generator service using puppeteer.
16-
- devops tasks: postmortem analysis, cloudwatch monitoring and others.
17-
- further system migration (PHPUnit 10, PHP 8.3) and maintenance.
15+
- backend deployment and validation manager.
16+
- devops tasks in AWS: postmortem analysis, cloudwatch monitoring, infrastructure deployment.
17+
- further system migration (PHPUnit 11, PHP 8.3, Laravel 11) and maintenance.
18+
- sonarqube and locust integration for code quality and performance testing.
1819
- **2023: developer (intership)**
1920
- back-end system migration (laravel 10, PHP 8.2, composer 2).
2021
- local deploy automation with Docker and Ruby.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
const checkCurrent = (data) => {
2+
let currentJson = require('../../../../package.json')
3+
let currentVersion = currentJson.version.split('.')
4+
let currentChannel = currentJson.channel ? ` ${currentJson.channel}` : ''
5+
6+
// if the current version is already in the changelog, return
7+
if (data.find(d => d.version.major == currentVersion[1] && d.version.minor == currentVersion[2])) return
8+
9+
data.unshift({
10+
"version": {
11+
"major": currentVersion[1],
12+
"minor": currentVersion[2]
13+
},
14+
"title": `${currentVersion[1]}.${currentVersion[2]}${currentChannel}`,
15+
"date": "ongoing",
16+
"message": "<span class='warning'>this version hasn't been published yet.</span>",
17+
"hash": "main"
18+
})
19+
}
20+
21+
const buildChangelog = (data) => {
22+
let content = '<div id="changelog">'
23+
24+
// sort commits by version
25+
data.sort((a, b) => { return a.version.major > b.version.major ? -1 : 1 })
26+
27+
// if the current version isn't in the changelog,
28+
// add it manually to the data array
29+
checkCurrent(data)
30+
31+
let prevMajor = null
32+
data.forEach((d) => {
33+
// if the major version has changed, add a new header
34+
if (prevMajor != d.version.major) {
35+
if (prevMajor) content += '</div><hr>'
36+
content += `<div id="version-${d.version.major}"><h1>v${d.version.major}</h1>`
37+
}
38+
prevMajor = d.version.major
39+
40+
// add the commit entry
41+
content += `<div class="entry hoverborder"><span class="title">${d.title}</span>`
42+
if (d.message) content += `<br><span class="message">${d.message.replace(/\n/g, '<br>')}</span>`
43+
content += `<a class="date" href="https://github.com/miermontoto/mier.info/commit/${d.hash}" target="_blank">${d.date}</a></div>`
44+
})
45+
content += '</div>'
46+
47+
return content
48+
}
49+
50+
module.exports = buildChangelog;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const addAsset = (type, filename) => {
2727

2828

2929
const addStyle = (filename) => {
30-
let filepath = findAsset(path.resolve(__dirname, '../static/css'), `${filename}.sass`)
30+
let filepath = findAsset(path.resolve(__dirname, '../../css'), `${filename}.sass`)
3131

3232
if (!filepath) {
3333
console.error(`style file ${filename}.sass not found`)
@@ -39,7 +39,7 @@ const addStyle = (filename) => {
3939

4040

4141
const addScript = (filename) => {
42-
let filepath = findAsset(path.resolve(__dirname, '../static/js'), `${filename}.js`)
42+
let filepath = findAsset(path.resolve(__dirname, '..'), `${filename}.js`)
4343

4444
if (!filepath) {
4545
console.error(`script file ${filename}.js not found`)

0 commit comments

Comments
 (0)