extras.tex 12.8 KB
Newer Older
Mihai's avatar
Mihai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
\documentclass[slidestop]{beamer}

\usepackage{framed}
\usepackage{booktabs}

\input{../shared/shared.tex}

\author{Mihai Lefter}
\title{\courseTitle}
\providecommand{\mySubTitle}{Extras: GitLab, Markdown.}
\providecommand{\myConference}{\courseTitle}
\providecommand{\myGroup}{}
\providecommand{\myDepartment}{Department of Human Genetics}
\providecommand{\myCenter}{Center for Human and Clinical Genetics}

\definecolor{cblack}{rgb}{0,0,0}
\definecolor{cwhite}{rgb}{1,1,1}
\definecolor{command-color}{rgb}{0,0.5,0}
\definecolor{git-color}{rgb}{0.94,0.23,0.18}
\definecolor{option-color}{rgb}{0.9,0.2,0.11}
\definecolor{argument-color}{rgb}{0.11,0.27,0.7}
\definecolor{pattern-color}{rgb}{0,0.5,0.5}
\definecolor{wildcard-color}{rgb}{0.75,0.3,0}
\definecolor{cli-text}{rgb}{0.15,0.15,0.15}
\definecolor{important-note}{rgb}{0.69,0.13,0.13}
\definecolor{redirection}{rgb}{0.99,0.13,0.13}
\definecolor{shadecolor}{rgb}{0.9,0.9,0.9}
\definecolor{one-dot}{rgb}{0.9,0.2,0.0}
\definecolor{two-dots}{rgb}{0.11,0.11,0.8}
\definecolor{slash}{rgb}{0.3,0.3,0.3}

\definecolor{head}{HTML}{B22222}
\definecolor{branch}{HTML}{20b2aa}
\definecolor{commit-id}{HTML}{b8860b}

\usetheme{lumc}

\lstset{
  basicstyle=\ttfamily,
  language=none,
  frame=none,
  numbers=none,
  numbersep=0
}

\AtBeginSection[]
{
  \begin{frame}
    \frametitle{Table of contents}
    \tableofcontents[currentsection, subsectionstyle=hide/hide]
  \end{frame}
}

\begin{document}

% This disables the \pause command, handy in the editing phase.
%\renewcommand{\pause}{}

% Make the title page.
\makeTitleSlide{\includegraphics[width=3.5cm]{../shared/git_logo.pdf}}

\section{GitLab}

\subsection{Collaborative working environent}
\begin{pframe}
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_00.pdf} 
 \end{center}
\end{pframe}

\begin{pframe}
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_01.pdf} 
 \end{center}
\end{pframe}

\begin{pframe}
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_02.pdf} 
 \end{center}
\end{pframe}

\begin{pframe}
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_03.pdf} 
 \end{center}
\end{pframe}

\subsection{Projects}
\begin{pframe}
 Every project belongs to a single namespace, either a:
 \begin{itemize}
  \item User: 
  \begin{itemize}
   \item The project owner has direct control over the project.
  \end{itemize}
  \item Group: 
  \begin{itemize}
   \item The group's user-level permissions will take effect.
  \end{itemize}
 \end{itemize}
 \medskip
 Every project has a visibility level:
 \begin{itemize}
  \item A way of controling who has \textbf{read} access to that project.
  \item Note that this controls both git ``fetch'' access as well as access to the web UI for that project.
 \end{itemize}
\end{pframe}

\subsection{Project visibility levels}
\begin{pframe}
  \begin{itemize}
    \item Private projects:
    \begin{itemize}
      \item The project owner must explicitly grant access to specific users.
      \item Are not listed on the public access directory.
    \end{itemize}
  \end{itemize}
  
  \begin{itemize}
    \item Internal projects:
    \begin{itemize}
      \item Can be cloned by any logged in user.
      \item Are listed on the public access directory for logged in users.
      \item Logged in users have Guest permissions on the repository.
    \end{itemize}
  \end{itemize}
  
  \begin{itemize}
    \item Public projects:
    \begin{itemize}
      \item Can be cloned without any authentication.
      \item Are listed on the public access directory.
      \item Logged in users have Guest permissions on the repository.
    \end{itemize}
  \end{itemize}
\end{pframe}

\subsection{Project permissions}
\begin{pframe}
  \vspace{-0.3cm}
  \begin{table}[]
    \centering
    \label{my-label}
    \scalebox{0.6}{
    \begin{tabular}{lccccc}
      \toprule
      Action                  & Guest      & Reporter   & Developer  & Master     & Owner      \\
      \midrule
      Create new issue        & \checkmark & \checkmark & \checkmark & \checkmark & \checkmark \\
      Leave comments          & \checkmark & \checkmark & \checkmark & \checkmark & \checkmark \\
      View wiki pages         & \checkmark & \checkmark & \checkmark & \checkmark & \checkmark \\
      Pull project code       &            & \checkmark & \checkmark & \checkmark & \checkmark \\
      Download project        &            & \checkmark & \checkmark & \checkmark & \checkmark \\
      Manage/Accept merge requests &       &            & \checkmark & \checkmark & \checkmark \\
      Create new merge request &           &            & \checkmark & \checkmark & \checkmark \\
      Push to non-protected branches &     &            & \checkmark & \checkmark & \checkmark \\
      Write a wiki            &            &            & \checkmark & \checkmark & \checkmark \\
      Create new milestones   &            &            &            & \checkmark & \checkmark \\
      Add new team members    &            &            &            & \checkmark & \checkmark \\
      Edit project            &            &            &            & \checkmark & \checkmark \\
      Switch visibility level &            &            &            &            & \checkmark \\ 
      Transfer project to another namespace &            &            &            &            & \checkmark \\
      Remove project          &            &            &            &            & \checkmark \\
      \bottomrule
    \end{tabular}}
  \end{table}
  \vspace{-0.3cm}
  \begin{itemize}
   \item Check the entire list \textcolor{cyan}{\href{https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/permissions.md}{here}}.
   \item On public and internal projects the Guest role is not enforced.
   \item GitLab administrators receive all permissions.
  \end{itemize}
\end{pframe}

\subsection{Group permissions}
\begin{pframe}
  \begin{table}[]
    \centering
%     \caption{My caption}
    \label{my-label}
    \scalebox{0.6}{
    \begin{tabular}{lccccc}
      \toprule
      Action                  & Guest      & Reporter   & Developer  & Master     & Owner      \\
      \midrule
      Browse group            & \checkmark & \checkmark & \checkmark & \checkmark & \checkmark \\
      Edit group              &            &            &            &            & \checkmark \\
      Create project in group &            &            &            & \checkmark & \checkmark \\
      Manage group members    &            &            &            &            & \checkmark \\
      Remove group            &            &            &            &            & \checkmark \\
      \bottomrule
    \end{tabular}}
  \end{table}
  If a user is both in a group's project and the project itself, the highest permission level is used.
\end{pframe}


\subsection{Collaborative working environent}

\begin{pframe}
% issues
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_04.pdf} 
 \end{center}
\end{pframe}

\begin{pframe}
  \begin{center}
    \includegraphics[width=0.7\textwidth]{images/issues.pdf}
  \end{center}
\end{pframe}

\begin{pframe}
% labels
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_06.pdf} 
 \end{center}
\end{pframe}

\begin{pframe}
% milestones
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_05.pdf} 
 \end{center}
\end{pframe}

\begin{pframe}
  \begin{center}
    \includegraphics[width=\textwidth]{images/milestones.pdf}
  \end{center}
\end{pframe}

\begin{pframe}
  \begin{center}
    \includegraphics[width=\textwidth]{images/issue_board.pdf}
  \end{center}
\end{pframe}

\subsection{Collaborative working environent}

\begin{pframe}
% to do
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_07.pdf} 
 \end{center}
\end{pframe}

% \subsection{Todos}
% \begin{pframe}
%   A chronological list of things that are waiting for your input.
%   \bigskip
%   
%   Todos allow you to see where:
%   \begin{itemize}
%    \item You should spend your time.
%    \item Your team members need help.
%    \item You need to take some action.
%    \item You need to keep an eye on.
%   \end{itemize}
%   \bigskip
%   
%   Note that Todos are personal.
% \end{pframe}
% 
% \subsection{Todos triggering}
% \begin{pframe}
%   A Todo is triggered when:
%   \begin{itemize}
%    \item An issue is assigned to you.
%    \item You are @mentioned in an issue.
%    \begin{itemize}
%     \item Be it the description or in a comment.
%    \end{itemize}
%   \end{itemize}
%   \bigskip
% 
%   You can also manually add an issue to your Todos list.
%   \bigskip
% 
%   Note that there is just one Todo per issue.
% \end{pframe}
% 
% \subsection{Todos dismissal}
% \begin{pframe}
%   Any of the following action to the corresponding issue will mark your Todo as Done:
%   \begin{itemize}
%     \item Changing the assignee.
%     \item Changing the milestone.
%     \item Adding/removing a label.
%     \item Commenting on the issue.
%   \end{itemize}
%   \bigskip
%   
%   You can also manually mark the Todo as done.
%   \bigskip
% 
%   Todos are only marked as Done if the action is coming from you.
% \end{pframe}

\subsection{Collaborative working environent}

\begin{pframe}
% wiki
 \begin{center}
  \includegraphics[width=1\textwidth]{images/gitlab_wrapper/gitlab_wrapper_08.pdf} 
 \end{center}
\end{pframe}

% \subsection{Wiki}
% \begin{pframe}
%   Keep your project documentation using the built-in wiki system.
%   \bigskip
%   
%   \begin{itemize}
%    \item Available formats:
%    \begin{itemize}
%     \item Markdown.
%     \item RDoc.
%     \item AsciiDoc.
%    \end{itemize}
%   \end{itemize}
% \end{pframe}

\section{Markdown}
\begin{pframe}
  \begin{center}
    \includegraphics[width=0.5\textwidth]{images/markdown-slide.pdf}
  \end{center}
\end{pframe}

\subsection{What is markdown?}
\begin{pframe}
  \begin{itemize}
    \item A plain text format that makes any document easy-to-write and easy-to-read.
    \item Various flavors exist:
    \begin{itemize}
     \item GitLab Flavored Markdown (GFM).
    \end{itemize}
    \item All ``.md'' files are automatically rendered in GitLab.
    \item Ideally, every directory in the project has a README.md file.
  \end{itemize}
\end{pframe}

\subsection{Used for}
\begin{pframe}
  \begin{itemize}
   \item Comments.
   \item Issues descriptions / comments.
%    \item Merge requests.
   \item Milestones descriptions.
   \item Wiki pages.
   \item Markdown documents inside the repository.
  \end{itemize}
\end{pframe}

\subsection{Headers}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_01.pdf}
  \end{center}
\end{pframe}

\subsection{Emphasis}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_02.pdf}
  \end{center}
\end{pframe}

\subsection{Lists}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_03.pdf}
  \end{center}
\end{pframe}

\subsection{Links}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_04.pdf}
  \end{center}
\end{pframe}

\subsection{Images}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_05.pdf}
  \end{center}
\end{pframe}

\subsection{Line breaks}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_06.pdf}
  \end{center}
\end{pframe}

\subsection{Blockquotes}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_07.pdf}
  \end{center}
\end{pframe}

\subsection{Horizontal rule}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_08.pdf}
  \end{center}
\end{pframe}

\subsection{Tables}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_09.pdf}
  \end{center}
\end{pframe}

\subsection{Footnotes}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_10.pdf}
  \end{center}
\end{pframe}

\subsection{Task lists}
\begin{pframe}
  \begin{center}
    \includegraphics[width=1\textwidth]{images/markdown_example/markdown_example_11.pdf}
  \end{center}
\end{pframe}

\subsection{Further information}
\begin{pframe}
   \begin{itemize}
    \item \url{https://docs.gitlab.com/ce/user/markdown.html}
    \item \url{www.markdowntutorial.com}
   \end{itemize}
\end{pframe}


\makeAcknowledgementsSlide{
  \begin{tabular}{l}
    \acknowledgements
  \end{tabular}
  \bigskip

  \hfill\includegraphics[width=3.5cm]{../shared/git_logo.pdf}

  \begin{tabular}{l}
    \small\url{http://git-scm.com/book}\\
    \small\url{https://www.atlassian.com/git}
  \end{tabular}
}

\end{document}