Browse Source

En cours de développement

master
mls-361 9 months ago
parent
commit
326d736d31
  1. 4
      Taskfile.yml
  2. 1
      doc/CNAME
  3. BIN
      doc/favicon.ico
  4. 2
      doc/github-markdown.min.css
  5. 50
      doc/index.html
  6. 9
      doc/markdown/armen.md
  7. 3
      doc/showdown.min.js

4
Taskfile.yml

@ -38,6 +38,10 @@ tasks:
- go test -tags devel -cover -v ./...
- go build -tags devel -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/armen ./cmd/main.go
doc:
cmds:
- surge ./doc
git:
cmds:
- git add .

1
doc/CNAME

@ -0,0 +1 @@
armen.surge.sh

BIN
doc/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

2
doc/github-markdown.min.css vendored

File diff suppressed because one or more lines are too long

50
doc/index.html

@ -0,0 +1,50 @@
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Guide d'utilisation d'armen</title>
<meta name="description" content="Guide d'utilisation d'armen">
<meta name="author" content="mls-361">
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="/github-markdown.min.css">
<style>
.markdown-body {
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 40px;
}
.markdown-body h1 {
border-bottom: 10px solid #eaecef;
}
@media (max-width: 767px) {
.markdown-body {
padding: 10px;
}
}
</style>
<script src="/showdown.min.js"></script>
</head>
<body>
<article id="doc" class="markdown-body">
</article>
<script>
var converter = new showdown.Converter();
var doc = document.getElementById('doc');
async function loadAndConvert(urlFile) {
try {
const response = await fetch(urlFile);
const markdown = await response.text();
doc.innerHTML = converter.makeHtml(markdown);
} catch (err) {
console.log(err)
}
}
loadAndConvert('/markdown/armen.md');
</script>
</body>
</html>

9
doc/markdown/armen.md

@ -0,0 +1,9 @@
# armen
## Licence
MIT.
---
Copyright (c) 2021 `mls-361`.

3
doc/showdown.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save