From 2927f2a69397dafe679fba6ebfb1d3d069caa6b4 Mon Sep 17 00:00:00 2001
From: Magnus Sethson <magnus@sethson.se>
Date: Wed, 12 Oct 2022 18:34:04 +0200
Subject: [PATCH] Start

First project setup
---
 .gitignore        |  7 +++++++
 .gitlab-ci.yml    |  8 +++++++-
 Makefile          |  7 +++++++
 public/index.html |  9 +++++----
 report.tex        | 13 +++++++++++++
 5 files changed, 39 insertions(+), 5 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 Makefile
 create mode 100644 report.tex

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5b6d020
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+public
+*.aux
+*.fdb_latexmk
+*.fls
+*.log
+*.pdf
+
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ec73d9b..2c75350 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,15 @@
 image: alpine:latest
 
+build:
+  image: listx/texlive:2020
+  script:
+    - make
+    - cp -f report.pdf public/
+
 pages:
   stage: deploy
   script:
-  - echo 'Nothing to do...'
+  - echo 'deploy report'
   artifacts:
     paths:
     - public
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..32b8755
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+
+
+all : report.pdf
+
+report.pdf : report.tex
+	latexmk -pdf
+
diff --git a/public/index.html b/public/index.html
index 6652c7d..259f662 100644
--- a/public/index.html
+++ b/public/index.html
@@ -3,18 +3,19 @@
   <head>
     <meta charset="utf-8">
     <meta name="generator" content="GitLab Pages">
-    <title>Plain HTML site using GitLab Pages</title>
+    <title>Simple public doc test</title>
     <link rel="stylesheet" href="style.css">
   </head>
   <body>
     <div class="navbar">
-      <a href="https://pages.gitlab.io/plain-html/">Plain HTML Example</a>
-      <a href="https://gitlab.com/pages/plain-html/">Repository</a>
+      <a href="report.pdf">Report</a>
       <a href="https://gitlab.com/pages/">Other Examples</a>
     </div>
 
-    <h1>Hello World!</h1>
+    <h1>Report</h1>
 
+    <a href="report.pdf">report.pdf</a>
+    
     <p>
       This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator.
     </p>
diff --git a/report.tex b/report.tex
new file mode 100644
index 0000000..bc45e9f
--- /dev/null
+++ b/report.tex
@@ -0,0 +1,13 @@
+\documentclass[11pt]{report}
+
+\begin{document}
+
+\section{Intro}
+
+This is a public test.
+
+\subsection{Check}
+
+Not checked.
+
+\end{document}
-- 
GitLab