]> Git repositories of Nishi - tewi.git/commitdiff
add docs
authorNishi <nishi@nishi.boats>
Sat, 5 Oct 2024 09:19:25 +0000 (09:19 +0000)
committerNishi <nishi@nishi.boats>
Sat, 5 Oct 2024 09:19:25 +0000 (09:19 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@267 8739d7e6-ffea-ec47-b151-bdff447c6205

.github/workflows/doc.yml [new file with mode: 0644]
Binary/tewi.png [new file with mode: 0644]
Document/docgen.conf [new file with mode: 0644]

diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
new file mode 100644 (file)
index 0000000..12ca6e2
--- /dev/null
@@ -0,0 +1,47 @@
+# $Id$
+
+name: "Build Tewi HTTPd Document"
+
+on:
+  workflow_dispatch:
+  push:
+
+concurrency:
+  group: "build"
+  cancel-in-progress: true
+
+jobs:
+  doc:
+
+    name: "Deploy pages"
+
+    runs-on: ubuntu-latest
+
+    environment:
+      name: github-pages
+      url: ${{ steps.deployment.outputs.page_url }}
+
+    permissions:
+      contents: write
+      pages: write
+      id-token: write
+
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v4
+    - name: Install packages
+      run: sudo apt-get install tcl subversion
+    - name: Get docgen
+      run: svn co http://svn.nishi.boats/repo/docgen/trunk docgen
+    - name: Build document
+      run: cd Document && ../docgen/docgen
+    - name: Make HTML
+      run: echo "<html><head><meta charset=\"UTF-8\"><title>Select</title></head><body><h1>Select</h1><hr><ul><li><a href=\"./en\">English</a></li><li><a href=\"./jp\">Japanese</a></li></ul></body></html>" > Document/output/index.html
+    - name: Setup Pages
+      uses: actions/configure-pages@v4
+    - name: Upload pages
+      uses: actions/upload-pages-artifact@v3
+      with:
+        path: "Document/output"
+    - name: Deploy
+      uses: actions/deploy-pages@v4
diff --git a/Binary/tewi.png b/Binary/tewi.png
new file mode 100644 (file)
index 0000000..c40b16b
Binary files /dev/null and b/Binary/tewi.png differ
diff --git a/Document/docgen.conf b/Document/docgen.conf
new file mode 100644 (file)
index 0000000..988c2c1
--- /dev/null
@@ -0,0 +1,12 @@
+# vim: syntax=tcl
+# $Id$
+
+set input_directory "input"
+set output_directory "output"
+set title "Tewi HTTPd"
+set icon "../Binary/tewi.png"
+set favicon "../Binary/tewi.png"
+set footer "<a href=\"https://trac.nishi.boats/tewi\">Trac</a>"
+set links ""
+set icon_height 128
+set languages {jp en}