Add static directory, useful for testing

This commit is contained in:
Brian Picciano 2023-07-27 16:16:48 +02:00
parent 795817f99d
commit 24e4dc42b1
11 changed files with 54 additions and 1 deletions

View File

@ -1 +0,0 @@
export DOMANI_CONFIG_PATH=./.dev-config.yml

View File

@ -4,6 +4,13 @@ origin:
store_dir_path: /tmp/domani_dev_env/origin
domain:
store_dir_path: /tmp/domani_dev_env/domain
builtins:
domani-test.localhost:
kind: git
url: https://code.betamike.com/micropelago/domani.git
branch_name: main
add_path_prefix: static
public: true
service:
passphrase: foobar
primary_domain: localhost

3
static/foo.gmi Normal file
View File

@ -0,0 +1,3 @@
# FOO
This is foo

7
static/foo.html Normal file
View File

@ -0,0 +1,7 @@
<html>
<body>
<h1>FOO</h1>
<p>This is the foo page</p>
</body>
</html>

9
static/index.gmi Normal file
View File

@ -0,0 +1,9 @@
# INDEX
This is the gemini index.
=> foo /foo.gmi
=> bar /subdir/bar.gmi
=> penguin /penguin.jpg

9
static/index.html Normal file
View File

@ -0,0 +1,9 @@
<html>
<body>
<h1>INDEX</h1>
<p>This is the index page.</p>
<p>Check out <a href="/foo.html">foo</a>.</p>
<p>Check out <a href="/subdir/bar.html">bar</a>.</p>
<img src="/penguin.jpg" />
</body>
</html>

BIN
static/penguin.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

3
static/subdir/bar.gmi Normal file
View File

@ -0,0 +1,3 @@
# BAR
This is bar

7
static/subdir/bar.html Normal file
View File

@ -0,0 +1,7 @@
<html>
<body>
<h1>BAR</h1>
<p>This is the bar page</p>
</body>
</html>

3
static/subdir/index.gmi Normal file
View File

@ -0,0 +1,3 @@
# INDEX
This is the gemini index of the subdir.

6
static/subdir/index.html Normal file
View File

@ -0,0 +1,6 @@
<html>
<body>
<h1>INDEX</h1>
<p>This is the index page of the subdir</p>
</body>
</html>