This commit is contained in:
NishiOwO 2025-04-16 02:50:54 +09:00
parent 6ecc21b46d
commit 0fb5655906
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343
6 changed files with 124 additions and 3 deletions

View File

@ -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

BIN
build/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

26
build/index.html Normal file
View File

@ -0,0 +1,26 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="author" content="NishBox contributors">
<meta name="generator" content="docgen/1.03B">
<title>NishBox</title>
<link rel="stylesheet" href=".//style.css">
<link rel="icon" href=".//icon.png">
</head>
<body>
<img src=".//icon.png" alt="logo" style="position: absolute;left: 50px;">
<div id="space"></div>
<div id="title">NishBox</div>
<a href="./">Root</a>
<div id="doc">
<div id="docinside-notoc">
<h1>NishBox Documentation</h1>
<h2>Page list</h2>
<a href="."></a><br>
</div>
</div>
<hr>
<i>Generated using <a href="http://nishi.boats/docgen">Docgen</a> 1.03B</i><br>
</body>
</html>

79
build/style.css Normal file
View File

@ -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;
}

1
docgen-input/index.md Symbolic link
View File

@ -0,0 +1 @@
../README.md

11
docgen.conf Normal file
View File

@ -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"