Commit 6e568d2f authored by Antoine Le Morvan's avatar Antoine Le Morvan
Browse files

Fix #5 #6 Add icon to admonition and integrate google analytics

parent 1b3889cf
Pipeline #165136 passed with stage
in 45 seconds
......@@ -10,7 +10,7 @@ pages:
paths:
- .cache/
script:
- antora --fetch --cache-dir=.cache/antora --to-dir=public site.yml
- antora --fetch --cache-dir=.cache/antora site.yml
artifacts:
paths:
- public/
......@@ -23,7 +23,7 @@ develop:
paths:
- .cache/
script:
- antora --fetch --cache-dir=.cache/antora --to-dir=public site.yml
- antora --fetch --cache-dir=.cache/antora site.yml
artifacts:
paths:
- public/
......@@ -3,6 +3,8 @@ site:
# the 404 page and sitemap files only get generated when the url property is set
url: https://site.formatux.fr/
start_page: formatux-formatux::index.adoc
keys:
google_analytics: 'G-JDTP02PXVV'
content:
sources:
- url: https://framagit.org/formatux/formatux-formatux.git
......@@ -31,3 +33,5 @@ ui:
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
snapshot: true
supplemental_files: ./supplemental-ui
output:
dir: ./public
......@@ -66,3 +66,38 @@
font-size: 22px;
padding-right: 5px;
}
.doc .admonitionblock .icon {
border-radius: 1rem;
}
i.fa[class^='icon-'],
i.fa[class*=' icon-']::before {
content: "";
height: 1.25rem;
width: 1.25rem;
margin-right: 0.25rem;
margin-left: -0.5rem;
}
i.fa.icon-note::before {
background: no-repeat url("../img/note.svg");
}
i.fa.icon-tip::before {
background: no-repeat url("../img/tip.svg");
}
i.fa.icon-important::before {
background: no-repeat url("../img/important.svg");
}
i.fa.icon-warning::before {
background: no-repeat url("../img/warning.svg");
}
i.fa.icon-caution::before {
background: no-repeat url("../img/caution.svg");
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment