Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
chore: 2024 update
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocorradini committed Jan 6, 2024
1 parent af91e7e commit 984787f
Show file tree
Hide file tree
Showing 18 changed files with 1,474 additions and 3,701 deletions.
2 changes: 0 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
max_line_length = 80
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
40 changes: 37 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
* text=auto eol=-lf
* text=auto eol=lf

# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.c text diff=cpp
*.cc text diff=cpp
*.cmd text eol=crlf
*.coffee text
*.cpi text diff=cpp
*.cpp text diff=cpp
*.css text diff=css
*.cxx text diff=cpp
*.c++ text diff=cpp
*.h text diff=cpp
*.hh text diff=cpp
*.hpp text diff=cpp
*.htm text diff=html
*.html text diff=html
*.h++ text diff=cpp
*.inc text
*.ini text
*.js text
Expand All @@ -23,6 +33,7 @@
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.rs text diff=rust
*.sass text
*.scm text
*.scss text diff=css
Expand All @@ -35,6 +46,27 @@
*.xml text
*.xhtml text diff=html

# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary

# Precompiled Headers
*.gch binary
*.pch binary

# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary

# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary

# Docker
Dockerfile text

Expand Down Expand Up @@ -84,6 +116,7 @@ TODO text
*.vue text

# Configs
Cargo.lock text
*.cnf text
*.conf text
*.config text
Expand All @@ -98,7 +131,7 @@ package-lock.json text -diff
pnpm-lock.yaml text eol=lf -diff
.prettierrc text
yarn.lock text -diff
*.toml text
*.toml text diff=toml
*.yaml text
*.yml text
browserslist text
Expand Down Expand Up @@ -178,7 +211,8 @@ Procfile text

# Executables
*.exe binary
*.pyc binary
*.out binary
*.app binary

# RC files
*.*rc text
Expand Down
6 changes: 5 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
38 changes: 30 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ name: ci

on:
push:
branches: [master]
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
branches:
- master
tags:
- v*
pull_request:
branches: [master]
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -16,25 +19,44 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check Git tag format
if: startsWith(github.ref_name, 'v')
env:
THESIS_TAG: ${{ github.ref_name }}
run: |
_tag="$THESIS_TAG"
if ! printf "%s\n" "$_tag" | grep -q -P '^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-(alpha|beta|rc)\.(0|[1-9][0-9]*))?$'; then
printf '[ERROR]: Git tag (%s) wrong format\n' "$_tag"
exit 1
fi
- name: Install TeX Live
uses: teatimeguest/setup-texlive-action@v2
uses: teatimeguest/setup-texlive-action@v3
with:
packages: >-
scheme-full
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install dependencies
run: |
npm ci
- name: Check
run: |
npm run check
- name: Compile
run: |
npm run build
- name: Release
uses: marvinpinto/action-automatic-releases@latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
Expand All @@ -45,4 +67,4 @@ jobs:
title: ${{ startsWith(github.ref , 'refs/tags/v') && github.ref_name || 'Nightly' }}
files: |
LICENSE
surname_name_computer_science_2022_2023.pdf
surname_name_computer_science_2023_2024.pdf
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**/build/
**/node_modules/
**/package-lock.json
/.gitattributes
/.gitignore
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-latex"]
}
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"Gruntfuggly.todo-tree",
"James-Yu.latex-workshop",
"streetsidesoftware.code-spell-checker",
"usernamehw.errorlens"
Expand Down
16 changes: 8 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"latex-workshop.bibtex-format.sort.enabled": true,
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.latex.outDir": "%WORKSPACE_FOLDER%/build",
"latex-workshop.synctex.afterBuild.enabled": true,
"latex-workshop.view.pdf.zoom": "page-fit",
"[latex]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand All @@ -7,12 +14,5 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"latex-workshop.bibtex-format.sort.enabled": true,
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.latex.outDir": "%WORKSPACE_FOLDER%/build",
"latex-workshop.synctex.afterBuild.enabled": true,
"latex-workshop.view.pdf.zoom": "page-fit"
}
}
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Name Surname
Copyright (c) 2024 Name Surname

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ 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.
SOFTWARE.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

[![ci](https://github.com/unitn-drive/thesis/actions/workflows/ci.yaml/badge.svg)](https://github.com/unitn-drive/thesis/actions/workflows/ci.yaml)

Thesis Template for Computer Science at the [University of Trento](https://www.unitn.it).
Thesis Template for Computer Science at the [University of Trento](https://www.unitn.it)

## Development

> [!TIP]
> It is highly recommended to use [`Visual Studio Code`](https://code.visualstudio.com) editor
### Requirements

| **Name** | **Homepage** |
Expand Down Expand Up @@ -48,5 +51,5 @@ npm run build

## License

This project is licensed under the [MIT](https://opensource.org/licenses/MIT) License. \
See [LICENSE](./LICENSE) file for details.
This project is licensed under the [MIT](https://opensource.org/licenses/MIT) license \
See [LICENSE](./LICENSE) file for details
11 changes: 9 additions & 2 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
"@cspell/dict-markdown/cspell-ext.json",
"@cspell/dict-npm/cspell-ext.json"
],
"ignorePaths": ["**/build/", "**/node_modules/", "./package.json"],
"words": ["booktitle", "howpublished"]
"ignorePaths": ["**/build/", "**/node_modules/", "**/package-lock.json"],
"words": [
"booktitle",
"howpublished",
"latexmk",
"nonstopmode",
"outdir",
"postbuild"
]
}
1 change: 0 additions & 1 deletion etc/abstract.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ \chapter*{Abstract}
\label{cha:abtract}
\addcontentsline{toc}{chapter}{Abstract}


\lipsum[1]
1 change: 0 additions & 1 deletion etc/acknowledgements.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
\thispagestyle{empty}


\begin{center}
{\bf \Huge Acknowledgements}
\end{center}
Expand Down
1 change: 0 additions & 1 deletion etc/cover.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\pagestyle{plain}
\thispagestyle{empty}


\begin{center}
\begin{figure}[h!]
\centering
Expand Down
14 changes: 3 additions & 11 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
% List
\usepackage{enumitem}


% START: DELETE ME
\usepackage{lipsum}
% END: DELETE ME
Expand All @@ -46,13 +45,11 @@
\input{etc/cover}
\clearpage


% Acknowledgements
\input{etc/acknowledgements}
\clearpage
\pagestyle{plain}


% Table of Contents
\frontmatter
\pagenumbering{Roman}
Expand All @@ -66,26 +63,22 @@
% Start page numbering
\mainmatter


% Group to define space between chapters
\begingroup
% Override format of title chapter
\titleformat{\chapter} {\normalfont\Huge\bfseries}{\thechapter}{1em}{}
\titlespacing*{\chapter}{0pt}{0.59in}{0.02in} \titlespacing*{\section}{0pt}{0.20in}{0.02in}
\titlespacing*{\subsection}{0pt}{0.10in}{0.02in} \titlespacing*{\subsubsection}{0pt}{0.05in}{0.02in}
\titleformat{\chapter} {\normalfont\Huge\bfseries}{\thechapter}{1em}{} \titlespacing*{\chapter}{0pt}{0.59in}{0.02in}
\titlespacing*{\section}{0pt}{0.20in}{0.02in} \titlespacing*{\subsection}{0pt}{0.10in}{0.02in}
\titlespacing*{\subsubsection}{0pt}{0.05in}{0.02in}

% Abstract
\input{etc/abstract.tex}


% Chapters
\input{chapters/examples.tex}


% Conclusions
\input{etc/conclusions.tex}


\endgroup

% Bibliography
Expand All @@ -94,7 +87,6 @@
\bibliographystyle{plain}
\bibliography{bibliography.bib}


% Attachments
\titleformat{\chapter} {\normalfont\Huge\bfseries}{Appendix \thechapter}{1em}{}
\appendix
Expand Down
4 changes: 2 additions & 2 deletions output.xmpdata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\Author{Name Surname}
\Title{Title}
\Org{University of Trento}
\Copyright{Copyright \copyright\ 2023 Name Surname}
\Language{en}
\Copyright{Copyright \copyright\ 2024 Name Surname}
\Language{en}
Loading

0 comments on commit 984787f

Please sign in to comment.