From 976f2a5aaae3ea5e3bb08cd72b906f451c66755b Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Thu, 9 Nov 2023 18:00:15 +0800 Subject: [PATCH] add site index.html --- README.md | 4 + index.html | 187 +++++++++++++++++++++++++++++++++ scripts/gen-site-index-html.sh | 17 +++ 3 files changed, 208 insertions(+) create mode 100644 README.md create mode 100644 index.html create mode 100755 scripts/gen-site-index-html.sh diff --git a/README.md b/README.md new file mode 100644 index 00000000..0a1b92e3 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +## `cffu API` docs + +- [`Java API` docs: ![](https://img.shields.io/github/release/foldright/cffu?label=javadoc&color=339933&logo=microsoft-academic&logoColor=white)](https://foldright.io/cffu/apidocs/) +- [`Kotlin API` docs: ![](https://img.shields.io/github/release/foldright/cffu?label=dokka&color=339933&logo=kotlin&logoColor=white)](https://foldright.io/cffu/dokka/) diff --git a/index.html b/index.html new file mode 100644 index 00000000..e6077af6 --- /dev/null +++ b/index.html @@ -0,0 +1,187 @@ + + + + + + + cffu api docs + + + + +
+

cffu api docs

+
+ + + diff --git a/scripts/gen-site-index-html.sh b/scripts/gen-site-index-html.sh new file mode 100755 index 00000000..eb68662e --- /dev/null +++ b/scripts/gen-site-index-html.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -eEuo pipefail +cd "$(dirname "$(readlink -f "$0")")"/.. + +log_and_run() { + if [[ -t 1 ]]; then + printf '\e[1;33;44m%s\e[0m\n' "run command(PWD: $PWD): $*" + else + printf '%s\n' "run command(PWD: $PWD): $*" + fi + + time "$@" +} + + +# quarto render README.md -o index.html -s +pandoc README.md -o index.html -s --metadata title='cffu api docs'