You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guidelines/editor-manual.qmd
+29-21Lines changed: 29 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,29 @@
1
1
---
2
-
title: "Writing Techncial Documentation for CLMS"
2
+
title: "Guideline for Writing Techncial Documentation"
3
3
subtitle: "Editor Manual"
4
4
author: "European Environment Agency (EEA)"
5
-
version: "0.4"
5
+
version: 0.4
6
+
description: "A comprehensive guide for creating technical documentation for the Copernicus Land Monitoring Service using Quarto. It covers Markdown basics, document rendering, and the review process, ensuring consistency and clarity in documentation."
<!--# I havelooked into the ../../metadata/default.yml. there are several things which are also set here e.g. toc but also others. In this document we may go a bit more into detail what is controlled in default.yaml and what can/should be controlled by the document creator. -->
24
+
25
+
<!--# maybe we should promote (or at least describe to option of unsing variables in yaml that can be reused in the document: e.g. product-name: "Example Product" --- # Welcome to {{ product-name }} Documentation -->
26
+
20
27
# Introduction
21
28
22
29
This manual guides users through creating technical documentation for the Copernicus Land Monitoring Service using [**Quarto**](https://quarto.org/). Quarto simplifies the process of writing professional documents in [**Markdown**](https://www.markdownguide.org/), and converting them into **HTML** and **PDF** for nice publishing. The manual covers basic Markdown writing, document rendering, as well a the review, and publication process of technical CLMS documents. It also describes the project folder structure, template usage, and common mistakes to avoid.
@@ -61,7 +68,7 @@ project-root-doc/
61
68
62
69
-**ATBD** (Algorithm Theoretical Basis Document)
63
70
-**PUM** (Product User Manual)\
64
-
When you start a new document, you will copy the appropriate template from here.
71
+
When you start a new document, you will copy the appropriate template from here.
65
72
66
73
-**`src/styles/`**<!--# state no editing here -->\
67
74
This folder contains style-related files, such as DOCX templates and style sheets. These are used by scripts and macros to give your documents a consistent look.
@@ -207,10 +214,11 @@ Tables are a great way to present structured information. Below are two common w
207
214
208
215
Rendered result:
209
216
210
-
| Name | Role | Status |
211
-
|------:|-----------|:-------:|
212
-
| Alice | Developer |*Active*|
213
-
| Bob | Reviewer |**Pending**|
217
+
| Name | Role | Status |
218
+
|------:|-----------|:-----------:|
219
+
| Alice | Developer |*Active*|
220
+
| Bob | Reviewer |**Pending**|
221
+
214
222
: Demonstration of pipe table syntax
215
223
216
224
Make sure to align columns using `|` and `-`.
@@ -484,8 +492,8 @@ There are two ways to begin:
484
492
485
493
1. Open the `src/templates/` folder.
486
494
2. Choose the right template:
487
-
-`CLMS_ATBD_Template.qmd` for an Algorithm Theoretical Basis Document (ATBD)
488
-
-`CLMS_PUM_Template.qmd` for a Product User Manual (PUM)
495
+
-`CLMS``_Template``_ATBD.qmd` for an Algorithm Theoretical Basis Document (ATBD)
496
+
-`CLMS``_Template``_PUM.qmd` for a Product User Manual (PUM)
489
497
3. Copy the template into the `src/products/` folder.
490
498
4. Rename it to match your new document. Example: `my-product.qmd`
491
499
5. Create a new media folder named `my-product-media/` next to it to store images and charts.
@@ -513,7 +521,7 @@ If you're creating the `.qmd` file from scratch, you must add the basic YAML hea
513
521
514
522
These fields are **required** for correct rendering:
515
523
516
-
-`metadata-files`: connects your document to shared metadata (like author, institution, version)
524
+
-`metadata-files`: connects your document to shared metadata (like author, institution, version)<!--# author, institution, version are default? should't that be controlled by the document creator? -->
517
525
-`format`: controls how your document is rendered (HTML, styled DOCX, etc.)
518
526
519
527
::: callout-important
@@ -554,7 +562,7 @@ Templates are stored in the `src/templates/` directory. Currently, two types of
554
562
555
563
## ATBD Template
556
564
557
-
**Filename:**`CLMS_ATBD_Template.qmd`
565
+
**Filename:**`CLMS``_Template``_ATBD.qmd`
558
566
559
567
This template is used for creating an **Algorithm Theoretical Basis Document (ATBD)**.
560
568
@@ -569,7 +577,7 @@ It includes:
569
577
570
578
## PUM Template
571
579
572
-
**Filename:**`CLMS_PUM_Template.qmd`
580
+
**Filename:**`CLMS``_Template``_PUM.qmd`
573
581
574
582
This template is used for creating a **Product User Manual (PUM)**.
575
583
@@ -584,7 +592,7 @@ It includes:
584
592
## How to Use the Templates
585
593
586
594
1. Go to `src/templates/`
587
-
2. Choose either `CLMS_ATBD_Template.qmd` or `CLMS_PUM_Template.qmd`
595
+
2. Choose either `CLMS``_Template``_ATBD.qmd` or `CLMS``_Template``_PUM.qmd`
588
596
3. Copy the file into the `src/products/` folder
589
597
4. Rename it to match your project (e.g. `my-product.qmd`)
590
598
5. Begin editing based on the guidance in the template
@@ -761,9 +769,9 @@ If your document uses images or diagrams:
Once your `.qmd` file is ready, the next step is to render it --- this means turning it into a final document that can be viewed and shared. Quarto supports multiple output formats, but in our workflow, we focus on two: **HTML** and **PDF**.
772
+
Once your `.qmd` file is ready, the next step is to render it --- this means turning it into a final document that can be published. Quarto supports multiple output formats, but in our workflow, we focus on: **HTML** and **PDF**.
765
773
766
-
You can render your documentation directly in RStudio or using command-line tools, depending on what you prefer. Both options work the same way and produce identical results --- choose the one that fits your workflow best.
774
+
You can render your documentation directly in RStudio as described below or using command-line tools, depending on what you prefer. Both options work the same way and produce identical results --- choose the one that fits your workflow best.
767
775
768
776
## Render to HTML
769
777
@@ -793,17 +801,17 @@ This setting ensures that rendered documents are displayed within RStudio, provi
793
801
794
802
## Render to PDF via DOCX and LibreOffice
795
803
796
-
PDFs are not generated directly from Quarto. Instead, the process involves a few automatic steps:
804
+
PDFs are not generated directly by Quarto. Instead, the process involves a few automatic steps:
797
805
798
806
1. Quarto first generates a `.docx` (Word) file using the styles and settings defined in the YAML header and shared config files.
799
-
2. Then, a LibreOffice macro automatically converts the `.docx` to `.pdf`. <!--# in this case lobreoffice is a software rerequisit and should be listed as such. I am not sure what the state is of libre vs MSword script is? -->
807
+
2. Then, a LibreOffice macro automatically converts the `.docx` to `.pdf`. <!--# in this case libreoffice is a software prerequisit and should be listed as such. I am not sure what the state is of libre vs MSword script is? -->
800
808
3. The resulting PDF file is saved in the output location.
801
809
802
810
This approach ensures consistent and well-formatted PDFs, even across different systems.
803
811
804
812
::: callout-important
805
813
- Make sure `pdf: default` is included in your YAML header --- this triggers the PDF pipeline.
806
-
- Do not define custom `pdf:` options unless you know what you're doing.
814
+
- Do not define custom `pdf:` options unless you know what you're doing.<!--# wasn't there an order what must be placed first? docx then pdf, of is pdf enough and your macro ensures the libre workflow? -->
0 commit comments