Skip to content

Commit

Permalink
Merge pull request #12 from spacelab-ufsc/doc
Browse files Browse the repository at this point in the history
doc: Importing the documentation template #6
  • Loading branch information
mgm8 authored Jul 11, 2020
2 parents 169a27f + 2eb2ecc commit b1bc1bb
Show file tree
Hide file tree
Showing 13 changed files with 3,548 additions and 0 deletions.
427 changes: 427 additions & 0 deletions doc/LICENSE

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
SRC=main
TARGET=pc104_adapter_doc

ifndef BUILD_DIR
BUILD_DIR=build
endif

PDF_READER=evince

all:
mkdir -p $(BUILD_DIR)
latexmk -pdf -jobname=$(BUILD_DIR)/$(TARGET) $(SRC).tex
rm -f $(TARGET).pdf
cp $(BUILD_DIR)/$(TARGET).pdf .

index:
makeindex $(BUILD_DIR)/$(TARGET).nlo -s nomencl.ist -o $(BUILD_DIR)/$(TARGET).nls

view:
$(PDF_READER) $(BUILD_DIR)/$(TARGET).pdf &

clean:
rm $(BUILD_DIR)/* header/*.aux chapters/*.aux references/*.aux
12 changes: 12 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Documentation

## Dependencies

* ```latexmk```
* ```texlive-epstopdf```

## Generating the PDF file

```
make
```
27 changes: 27 additions & 0 deletions doc/chapters/introduction.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
%
% introduction.tex
%
% Copyright (C) 2020 by SpaceLab.
%
% PC-104 Adapter Documentation
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
% International License. To view a copy of this license,
% visit http://creativecommons.org/licenses/by-sa/4.0/.
%

%
% \brief Introduction chapter.
%
% \author Gabriel Mariano Marcelino <gabriel.mm8@gmail.com>
%
% \institution Universidade Federal de Santa Catarina (UFSC)
%
% \version 0.1.0
%
% \date 2020/06/21
%

\chapter{Introduction} \label{ch:introduction}

.
27 changes: 27 additions & 0 deletions doc/chapters/references.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
%
% references.tex
%
% Copyright (C) 2020 by SpaceLab.
%
% PC-104 Adapter Documentation
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
% International License. To view a copy of this license,
% visit http://creativecommons.org/licenses/by-sa/4.0/.
%

%
% \brief References chapter.
%
% \author Gabriel Mariano Marcelino <gabriel.mm8@gmail.com>
%
% \institution Universidade Federal de Santa Catarina (UFSC)
%
% \version 0.1.0
%
% \date 2020/06/21
%

%\bibliography{references/edc,references/obdh2}

\addcontentsline{toc}{chapter}{References}
Binary file added doc/figures/by-sa-eps-converted-to.pdf
Binary file not shown.
2,727 changes: 2,727 additions & 0 deletions doc/figures/by-sa.eps

Large diffs are not rendered by default.

Binary file added doc/figures/spacelab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 83 additions & 0 deletions doc/header/authorpage.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
%
% authorpage.tex
%
% Copyright (C) 2020 SpaceLab.
%
% PC-104 Adapter Documentation
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
% International License. To view a copy of this license,
% visit http://creativecommons.org/licenses/by-sa/4.0/.
%

%
% \brief Author page.
%
% \author Gabriel Mariano Marcelino <gabriel.mm8@gmail.com>
%
% \institution Universidade Federal de Santa Catarina (UFSC)
%
% \version 0.1.0
%
% \date 2020/06/21
%

\thispagestyle{empty}

\begin{center}

\textbf{\thetitle}

\textit{June, 2020}

\vspace{1cm}

\textbf{Project Chief:}

Eduardo Augusto Bezerra

\vspace{1cm}

\textbf{Authors:}

Gabriel Mariano Marcelino \\

\vspace{1cm}

\textbf{Contributing Authors:}

%Author 1 \\
%Author 2 \\
%Author 3 \\

\vspace{1cm}


\textbf{Revision Control:}

\end{center}

\begin{table}[!ht]
\begin{center}
\begin{tabular}{cL{5cm}L{5.5cm}C{2cm}}
\toprule[1.5pt]
\textbf{Version} & \textbf{Author} & \textbf{Changes} & \textbf{Date} \\
\midrule
0.1 & Gabriel M. Marcelino & Document creation & 2020/06/21 \\
& & & \\
& & & \\
& & & \\
\bottomrule[1.5pt]
\end{tabular}
\end{center}
\end{table}

\vfill

\begin{figure}[!h]
\begin{center}
\includegraphics[width=0.25\textwidth]{figures/by-sa.eps}
\end{center}
\end{figure}

\textcopyright\ 2020 by SpaceLab. \thetitle. This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit \href{http://creativecommons.org/licenses/by-sa/4.0/}{http://creativecommons.org/licenses/by-sa/4.0/}.
58 changes: 58 additions & 0 deletions doc/header/titlepage.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
%
% titlepage.tex
%
% Copyright (C) 2020 by SpaceLab.
%
% PC-104 Adapter Documentation
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
% International License. To view a copy of this license,
% visit http://creativecommons.org/licenses/by-sa/4.0/.
%

%
% \brief Title page.
%
% \author Gabriel Mariano Marcelino <gabriel.mm8@gmail.com>
%
% \institution Universidade Federal de Santa Catarina (UFSC)
%
% \version 0.1.0
%
% \date 2020/06/21
%

\begin{titlepage}

\thispagestyle{empty}

\begin{flushleft}
SPACELAB.PC104-ADAPTER.2020.06.001 REV A. ISSUE 0.1
\end{flushleft}

\begin{figure}[!ht]
\begin{flushleft}
\includegraphics[width=5cm]{figures/spacelab.png}
\end{flushleft}
\end{figure}

\begin{flushleft}
\Huge{\textbf{\thetitle}}
\rule[0pt]{\textwidth}{5pt}
\end{flushleft}

\vspace{0.2cm}

\begin{flushleft}
\textit{\thetitle} \\
\textit{SpaceLab, Universidade Federal de Santa Catarina, Florianópolis - Brazil}
\end{flushleft}

\vfill
\vfill

\begin{flushright}
June 2020
\end{flushright}

\end{titlepage}
70 changes: 70 additions & 0 deletions doc/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
%
% main.tex
%
% Copyright (C) 2020 by SpaceLab.
%
% PC-104 Adapter Documentation
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
% International License. To view a copy of this license,
% visit http://creativecommons.org/licenses/by-sa/4.0/.
%

%
% \brief Main file.
%
% \author Gabriel Mariano Marcelino <gabriel.mm8@gmail.com>
%
% \institution Universidade Federal de Santa Catarina (UFSC)
%
% \version 0.1.0
%
% \date 2020/06/21
%

\documentclass[a4paper,12pt]{book}

\usepackage{spacelab_book}

\title{PC-104 Adapter Documentation}
\author{SpaceLab}
\date{\today}

% File metadata
\hypersetup
{
pdfauthor = {SpaceLab},
pdfsubject = {\thetitle},
pdftitle = {\thetitle},
pdfkeywords = {Nanosatellites, Cubesats, GOLDS-UFSC}
}

\begin{document}

\pagenumbering{roman}
\setcounter{page}{1}

\input{header/titlepage}
\cleardoublepage
\input{header/authorpage}
\cleardoublepage

\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}

\listoftables
\addcontentsline{toc}{chapter}{Lista of Tables}

\printnomenclature
\addcontentsline{toc}{chapter}{Nomenclature}

\tableofcontents
\cleardoublepage

\pagenumbering{arabic}
\setcounter{page}{1}

\input{chapters/introduction}
\input{chapters/references}

\end{document}
Binary file added doc/pc104_adapter_doc.pdf
Binary file not shown.
Loading

0 comments on commit b1bc1bb

Please sign in to comment.