Skip to content

Commit 2fb2a12

Browse files
committed
Add tests
Improve documentation
1 parent 0c4ed67 commit 2fb2a12

22 files changed

+168
-143
lines changed

cookiecutter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"project_class_lib": "{{ cookiecutter.project_slug.title().replace('_', '') + 'Lib' }}",
99
"project_short_description": "My Great Project description.",
1010
"year": "{% now 'utc', '%Y' %}",
11+
"month": "{% now 'utc', '%B' %}",
1112
"_extensions": [
1213
"jinja2_time.TimeExtension"
1314
],

{{cookiecutter.project_slug}}/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ doc-pdf:
105105
make doc && make latexpdf -C docs
106106

107107
visu-doc-pdf:
108-
make doc-pdf && acroread docs/build/latex/{{cookiecutter.project_slug}}.pdf
108+
acroread docs/build/latex/{{cookiecutter.project_slug}}.pdf
109109

110110
visu-doc:
111-
make doc && firefox docs/build/html/index.html
111+
firefox docs/build/html/index.html
112112

113113
release:
114114
python3 setup.py sdist
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{# Import the theme's layout. #}
2-
{% extends "!layout.html" %}
2+
{{ "{%" }} extends "!layout.html" {{ "%}" }}
33

44
{# Add some extra stuff before and use existing with 'super()' call. #}
5-
{% block footer %}
5+
{{ "{%" }} block footer {{ "%}" }}
66
<!--<h2>My footer of awesomeness.</h2>-->
7-
{{ super() }}
8-
{% endblock %}
7+
{{ "{{" }} super() {{ "}}" }}
8+
{{ "{%"}} endblock {{ "%}" }}

{{cookiecutter.project_slug}}/docs/source/conf.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def setup(app):
165165
%%%%%%%%%%% datetime
166166
\usepackage{datetime}
167167
168-
\newdateformat{MonthYearFormat}{%
168+
\newdateformat{MonthYearFormat}{{"{%"}}
169169
\monthname[\THEMONTH], \THEYEAR}
170170
171171
@@ -203,9 +203,9 @@ def setup(app):
203203
%%%%%%%%%%% Quote Styles at the top of chapter
204204
\usepackage{epigraph}
205205
\setlength{\epigraphwidth}{0.8\columnwidth}
206-
\newcommand{\chapterquote}[2]{\epigraphhead[60]{\epigraph{\textit{#1}}{\textbf {\textit{--#2}}}}}
206+
{{"\\newcommand{\chapterquote}[2]{\epigraphhead[60]{\epigraph{\textit{#1}}{\textbf {\textit{--#2}}}}}"}}
207207
%%%%%%%%%%% Quote for all places except Chapter
208-
\newcommand{\sectionquote}[2]{{\quote{\textit{``#1''}}{\textbf {\textit{--#2}}}}}
208+
{{"\\newcommand{\sectionquote}[2]{{\quote{\textit{``#1''}}{\textbf {\textit{--#2}}}}}"}}
209209
""",
210210
"maketitle": r"""
211211
\pagenumbering{Roman} %%% to avoid page 1 conflict with actual page 1
@@ -214,9 +214,7 @@ def setup(app):
214214
\centering
215215
216216
\vspace*{40mm} %%% * is used to give space from top
217-
\textbf{\Huge {"""
218-
+ title
219-
+ r"""}}
217+
\textbf{\Huge {"""+title+ r"""}}
220218
221219
\vspace{0mm}
222220
\begin{figure}[!h]
@@ -225,11 +223,9 @@ def setup(app):
225223
\end{figure}
226224
227225
\vspace{0mm}
228-
\Large \textbf{{"""
229-
+ author
230-
+ r"""}}
226+
\Large \textbf{"""+author+ r"""}
231227
232-
\small Created on : November, 2021
228+
\small Created on : {{ cookiecutter.month }}, {{ cookiecutter.year }}
233229
234230
\vspace*{0mm}
235231
\small Last updated : \MonthYearFormat\today

{{cookiecutter.project_slug}}/docs/source/conventions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Conventions
33
===========
44

5-
*The :term:`SUM` shall summarise symbols, stylistics conventions, and command
5+
*The* :term:`SUM` *shall summarise symbols, stylistics conventions, and command \
66
syntax conventions used in the document.*
77

88
.. note::

{{cookiecutter.project_slug}}/docs/source/external_view.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
External view of the software
33
=============================
44

5-
*The :term:`SUM` shall identify the software files, including databases and data
6-
files, which are necessary for the software to operate, including security
7-
and privacy considerations for each file and identification of the software
5+
*The* :term:`SUM` *shall identify the software files, including databases and \
6+
data files, which are necessary for the software to operate, including security \
7+
and privacy considerations for each file and identification of the software \
88
necessary to continue or resume operation in case of an emergency.*

{{cookiecutter.project_slug}}/docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Welcome to {{ cookiecutter.project_name }}'s documentation!
2-
==================================
2+
===========================================================
33

44
.. toctree::
55
:maxdepth: 2

{{cookiecutter.project_slug}}/docs/source/introduction.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
Introduction
33
============
44

5-
*The :term:`SUM` shall contain a description of the purpose, objective, content
5+
*The *:term:`SUM` *shall contain a description of the purpose, objective, content \
66
and the reason prompting its preparation.*
77

88
Purpose
99
-------
1010

11+
.. automodule:: {{ cookiecutter.project_slug }}
12+
1113
.. figure:: _static/logo.png
1214
:align: center
1315

{{cookiecutter.project_slug}}/docs/source/old_modules.rst

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

{{cookiecutter.project_slug}}/docs/source/operation_manual.rst

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,73 +5,69 @@ Operations manual
55
General
66
-------
77

8-
*The :term:`SUM` shall contain the operational organisation, a reference schedule
9-
for each operational profile, the list of all the elementary operations to be
10-
carried out at the site, what to do in order to operate the site, the
11-
personnel responsible to do it and when.
8+
*The* :term:`SUM` *shall contain the operational organisation, a reference \
9+
schedule for each operational profile, the list of all the elementary \
10+
operations to be carried out at the site, what to do in order to operate the \
11+
site, the personnel responsible to do it and when.*
1212

1313

1414
Set‐up and initialisation
1515
-------------------------
1616

17-
*The :term:`SUM` shall describe any procedures to be performed by the user in
18-
order to be identified or authorised to access or install software on the
19-
equipment, to perform the installation, to configure the software, to
20-
delete or overwrite former files or data, and to enter parameters for
21-
software operation.*
17+
*The* :term:`SUM` *shall describe any procedures to be performed by the user in \
18+
order to be identified or authorised to access or install software on the \
19+
equipment, to perform the installation, to configure the software, to delete \
20+
or overwrite former files or data, and to enter parameters for software \
21+
operation.*
2222

2323

2424
Getting started
2525
---------------
2626

27-
*The :term:`SUM` shall include the step‐by‐step procedures for beginning work,
28-
including any options available, and a check‐list for problem
29-
determination.*
27+
*The* :term:`SUM` *shall include the step‐by‐step procedures for beginning work, \
28+
including any options available, and a check‐list for problem determination.*
3029

3130

3231
Mode selection and control
3332
--------------------------
3433

35-
The :term:`SUM` shall give an overview of the access and security features of the
36-
software that are visible to the user, and in particular:
34+
*The* :term:`SUM` *shall give an overview of the access and security features \
35+
of the software that are visible to the user, and in particular:*
3736

3837
* How and from whom to obtain a password
3938
* How to add, delete, or change passwords under user control
40-
* Security and privacy considerations pertaining to the storage and
41-
marking of output reports and other media that the user can
42-
generate
39+
* Security and privacy considerations pertaining to the storage and marking of output reports and other media that the user can generate
4340

4441

4542
Normal operations
4643
-----------------
4744

48-
*The :term:`SUM` shall identify the normal operations, to be performed by the
49-
user, for the use of software (function, menu, transaction, or other
50-
process being described), including description and options of menus,
51-
graphical icons, data entry forms, user inputs, inputs from other software
52-
or hardware that may affect the software’s interface with the user,
53-
outputs, diagnostic or error messages or alarms.*
45+
*The* :term:`SUM` *shall identify the normal operations, to be performed by the \
46+
user, for the use of software (function, menu, transaction, or other process \
47+
being described), including description and options of menus, graphical icons, \
48+
data entry forms, user inputs, inputs from other software or hardware that may \
49+
affect the software’s interface with the user, outputs, diagnostic or error \
50+
messages or alarms.*
5451

5552

5653
Normal termination
5754
------------------
5855

59-
*The :term:`SUM` shall describe how the user can cease or interrupt use of the
60-
software and how to determine whether normal termination or cessation
61-
has occurred.*
56+
*The* :term:`SUM` *shall describe how the user can cease or interrupt use of the \
57+
software and how to determine whether normal termination or cessation has \
58+
occurred.*
6259

6360

6461
Error conditions
6562
----------------
6663

67-
*The :term:`SUM` shall describe the common error conditions that can occur as a
68-
result of executing the function, and how to detect that the error has
69-
occurred.
64+
*The* :term:`SUM` *shall describe the common error conditions that can occur as a \
65+
result of executing the function, and how to detect that the error has occurred.*
7066

7167

7268
Recover runs
7369
------------
7470

75-
The :term:`SUM` shall include the detailed procedures for restart or recovery
76-
from errors or malfunctions occurring during processing and for
77-
ensuring continuity of operations in the event of emergencies.
71+
*The* :term:`SUM` *shall include the detailed procedures for restart or recovery \
72+
from errors or malfunctions occurring during processing and for ensuring \
73+
continuity of operations in the event of emergencies.*

0 commit comments

Comments
 (0)