diff --git a/.github/workflows/doxygen.yml b/.github/workflows/pages.yml similarity index 68% rename from .github/workflows/doxygen.yml rename to .github/workflows/pages.yml index 29cc37a..bb470a5 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/pages.yml @@ -1,4 +1,4 @@ -name: "Publish Doxygen page" +name: "Publish GitHub Pages" on: push: @@ -7,7 +7,7 @@ on: workflow_dispatch: concurrency: - group: "doxygen" + group: "pages" cancel-in-progress: true jobs: @@ -19,9 +19,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install packages - run: sudo apt-get install doxygen + run: sudo apt-get install doxygen tcl + - name: Get docgen + run: wget https://github.com/nishistack/docgen/raw/refs/heads/master/docgen -O docgen && chmod +x docgen - name: Create directory run: mkdir -p build + - name: Build main page + run: ./docgen - name: Build engine document run: cd engine && doxygen && mv doc/html ../build/engine - name: Deploy diff --git a/build/icon.png b/build/icon.png new file mode 100644 index 0000000..0929c5f Binary files /dev/null and b/build/icon.png differ diff --git a/build/index.html b/build/index.html new file mode 100644 index 0000000..44a61d8 --- /dev/null +++ b/build/index.html @@ -0,0 +1,26 @@ + + + + + + + NishBox + + + + +logo +
+
NishBox
+ Root +
+
+

NishBox Documentation

+

Page list

+
+
+
+
+ Generated using Docgen 1.03B
+ + diff --git a/build/style.css b/build/style.css new file mode 100644 index 0000000..9275049 --- /dev/null +++ b/build/style.css @@ -0,0 +1,79 @@ +#title { + font-size: 30px; + font-family: sans-serif; + background-color: #606080; + color: #ffffff; + padding: 5px 0; + padding-right: 25%; + text-align: right; +} +html { + color: #606080; + font-family: sans-serif; +} +a { + color: #8080f0; +} +a:visited { + color: #a0a0a0; +} +h1 { + font-size: 30px; + font-family: sans-serif; + padding: 5px; + text-align: left; + border: solid 1px #606080; +} +#toc { + float: right; + width: 13em; + background-color: #f0f0f0; + margin-bottom: 1em; +} +pre { + background-color: #f0f0f0; + padding: 10px; +} +img { + border: none; +} +code { + background-color: #f0f0f0; + padding: 0px 5px; +} +#docinside { + padding-right: 14em; +} +#docinside-notoc { +} +#tocinside { + padding: 5px; +} +#shift { + padding-left: 30px; +} +hr { + border: solid 1px #606080; + clear: both; +} +h2 { + font-size: 20px; + font-family: sans-serif; + background-color: #606080; + color: #ffffff; + padding: 5px 0; + padding-left: 20px; + text-align: left; +} +h3 { + font-size: 15px; + font-family: sans-serif; + background-color: #f0f0f0; + color: #606080; + padding: 5px 0; + padding-left: 10px; + text-align: left; +} +#space { + height: 88px; +} diff --git a/docgen-input/index.md b/docgen-input/index.md new file mode 120000 index 0000000..32d46ee --- /dev/null +++ b/docgen-input/index.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/docgen.conf b/docgen.conf new file mode 100644 index 0000000..1df8577 --- /dev/null +++ b/docgen.conf @@ -0,0 +1,11 @@ +# vim: syntax=tcl + +set input_directory "docgen-input" +set author "NishBox contributors" +set title "NishBox" +set icon "./internal/icon.png" +set favicon "./internal/icon.png" +set footer "" +set links "" +set icon_height 128 +set output_directory "build"