1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-02-03 07:38:44 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
dependabot[bot]
c259322b27
Merge e0e122f2a3 into c8b2ae0f07 2023-12-28 16:01:48 +00:00
c8b2ae0f07
create caddy-md 2023-12-28 23:11:47 +09:00
dependabot[bot]
e0e122f2a3
Bump word-wrap from 1.2.3 to 1.2.5 in /jest
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-09 08:21:37 +00:00
6 changed files with 41 additions and 3 deletions

5
caddy-md/Caddyfile Normal file
View file

@ -0,0 +1,5 @@
:8080 {
file_server
templates
try_files {path} /
}

8
caddy-md/compose.yml Normal file
View file

@ -0,0 +1,8 @@
services:
caddy:
image: caddy
ports:
- 8080:8080
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./srv:/srv

1
caddy-md/srv/a.md Normal file
View file

@ -0,0 +1 @@
# あ

15
caddy-md/srv/index.html Normal file
View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
{{- $path := .OriginalReq.URL.Path}}
{{- if hasSuffix "/" $path}}{{$path = print $path "index"}}{{end}}
{{- $path = print $path ".md"}}
{{- if not (fileExists $path)}}{{httpError 404}}{{end}}
{{- $markdown := (include $path | splitFrontMatter)}}
{{- $title := default (trimSuffix ".md" (base $path)) $markdown.Meta.title}}
<html lang="ja">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>{{$title}}</title>
{{markdown $markdown.Body | trim}}
</html>

9
caddy-md/srv/index.md Normal file
View file

@ -0,0 +1,9 @@
---
title: トップ
---
# トップページ
こんにちは、世界
- [a](a)

View file

@ -3560,9 +3560,9 @@ which@^2.0.1, which@^2.0.2:
isexe "^2.0.0"
word-wrap@~1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
version "1.2.5"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"
integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==
wrap-ansi@^6.2.0:
version "6.2.0"