Skip to content

Commit ea0587d

Browse files
authored
Merge pull request #897 from ebouchut/fix/glossary_section_of_README
📝 Update the Glossary section of the README
2 parents 06b423e + adc1e83 commit ea0587d

File tree

1 file changed

+36
-42
lines changed

1 file changed

+36
-42
lines changed

README.md

+36-42
Original file line numberDiff line numberDiff line change
@@ -571,49 +571,43 @@ Do note that:
571571
572572
[Source](https://squidfunk.github.io/mkdocs-material/reference/code-blocks/?h=copy+clipboard#code-copy-button)
573573
574-
### Glossary
574+
## Updating the Glossary
575575
576-
#### Definition
577-
578-
> LoopDocs' **[Glossary](https://loopkit.github.io/loopdocs/faqs/glossary/)** is like a dictionary for the acronyms and technical terms used in the documentation. It explains them in simple terms.
579-
> It is kind of a personal translator for all the diabetes jargon you will find there.
580-
581-
The glossary is composed of a source file (text) and a generated Markdown file.
582-
The website uses the Markdown version of the glossary.
583-
584-
#### Update the Glossary
576+
> [LoopDocs' glossary](https://loopkit.github.io/loopdocs/faqs/glossary/) is a dictionary for the acronyms and technical terms used in the documentation. It explains them in simple terms.
577+
> It is a personal translator for all the diabetes jargon you will find there.
585578
586-
Today creating the glossary in Markdown is a 2-step manual process.
587-
First we modify the source file (`includes/tooltip-list.txt`) to add/update/remove entries.
588-
Then we generate the Markdown version of the glossary (`docs/faqs/glossary.md`).
579+
The glossary is composed of a source file and a generated Markdown page.
580+
The website uses the Markdown page of the glossary.
589581
590-
```mermaid
591-
---
592-
title: Generate the Glossary
593-
---
594-
flowchart LR
595-
subgraph Text
596-
text_glossary[/ includes/tooltip.txt /]
597-
end
598-
subgraph Transform Glossary
599-
generator{ ./make-glossary.sh }
600-
end
601-
subgraph Markdown
602-
markdown_glossary[/+ docs/faqs/glossary.md /]
603-
end
604-
605-
text_glossary --> generator --> markdown_glossary
606-
```
582+
**Updating the glossary** is a 3-step **manual process**:
583+
1. Modify the glossary source file ([`includes/tooltip-list.txt`](https://github.com/LoopKit/loopdocs/blob/main/includes/tooltip-list.txt) ) to add/update/remove entries.
584+
2. Generate the glossary Markdown page (`docs/faqs/glossary.md`) using this handy shell script:
585+
```shell
586+
./make-glossary.sh
587+
```
588+
```mermaid
589+
---
590+
title: Generate the Glossary Page
591+
---
592+
flowchart LR
593+
subgraph Glossary Source
594+
text_glossary[/ includes/tooltip-list.txt /]
595+
end
596+
subgraph Run Shell Script
597+
generator{ ./make-glossary.sh }
598+
end
599+
subgraph Glossary Page
600+
markdown_glossary[/ docs/faqs/glossary.md /]
601+
end
602+
603+
text_glossary --> generator --> markdown_glossary
604+
```
605+
3. **Commit** the changed files (glossary source file and generated page):
606+
```shell
607+
git add includes/tooltip.txt docs/faqs/glossary.md
608+
git commit -m "Update Glossary: ..."
609+
```
610+
611+
> [!IMPORTANT]
612+
> Remember to commit these two files.
607613
608-
- Edit the text version of the glossary [`includes/tooltip-list.txt`](https://github.com/LoopKit/loopdocs/blob/main/includes/tooltip-list.txt) to **add/update/remove glossary entries**
609-
- **Create** the Markdown version of the glossary (`docs/faqs/glossary.md`).
610-
This handy script does this for you:
611-
```
612-
# Transform Glossary from text to Markdown
613-
./make-glossary.sh
614-
```
615-
- **Commit** both the text and markdown versions of the glossary:
616-
```shell
617-
git add includes/tooltip.txt docs/faqs/glossary.md
618-
git commit -m "Update Glossary: ..."
619-
```

0 commit comments

Comments
 (0)