Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
  • Loading branch information
qligier committed Jun 22, 2022
1 parent eaded91 commit 3bb537e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
indent_size = 2

[*.css]
indent_size = 4
3 changes: 2 additions & 1 deletion docs/cdachemed/dis.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@

### Dosage instructions

In a DIS document, it changes the dosage instructions given in the underlying PRE or MTP entry. In a PML document, it indicates the effective dosage instructions.
<span class="must-support">Must support</span>.
In a DIS document, it's used to indicate changes to the dosage instructions given in the underlying PRE or MTP entry (for example if the product dispensed hasn't the same dosage and the number of intake tablets has to be adjusted). In a PML document, it indicates the effective dosage instructions.
2 changes: 1 addition & 1 deletion docs/cdachemed/product.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Code

<strong style="color:var(--md-primary-bg-color)">Must support</strong>.
<span class="must-support">Must support</span>.
The GTIN or ATC code that caracterizes the medication package (GTIN) or the medication substance (ATC).

```xml title="Example usage"
Expand Down
8 changes: 8 additions & 0 deletions docs/stylesheets/cara.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.must-support {
font-weight: 700;
color: #ed5487;
}
.last-edited {
color: #68bb6c;
font-style: italic;
}
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ theme:
toggle:
icon: material/brightness-7
name: Switch to dark mode
extra_css:
- stylesheets/cara.css
plugins:
- git-revision-date-localized:
type: timeago
Expand Down
28 changes: 12 additions & 16 deletions overrides/partials/source-file.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<hr>
<div class="md-source-file">
<div class="admonition info">
<p class="admonition-title">
{% if page.meta.git_revision_date_localized %}
{{ lang.t("source.file.date.updated") }}:
{{ page.meta.git_revision_date_localized }}
{% if page.meta.git_creation_date_localized %}
<br>
{{ lang.t("source.file.date.created") }}:
{{ page.meta.git_creation_date_localized }}
{% endif %}
{% elif page.meta.revision_date %}
{{ lang.t("source.file.date.updated") }}:
{{ page.meta.revision_date }}
<div class="md-source-file last-edited">
{% if page.meta.git_revision_date_localized %}
{{ lang.t("source.file.date.updated") }}:
{{ page.meta.git_revision_date_localized }}
{% if page.meta.git_creation_date_localized %}
<br>
{{ lang.t("source.file.date.created") }}:
{{ page.meta.git_creation_date_localized }}
{% endif %}
</p>
</div>
{% elif page.meta.revision_date %}
{{ lang.t("source.file.date.updated") }}:
{{ page.meta.revision_date }}
{% endif %}
</div>

0 comments on commit 3bb537e

Please sign in to comment.