diff --git a/Makefile b/Makefile index 659bd98..fe985d2 100644 --- a/Makefile +++ b/Makefile @@ -89,8 +89,7 @@ HTMLS = man/kcgi.3.html \ man/kutil_openlog.3.html \ man/kutil_urlencode.3.html \ man/kvalid_string.3.html \ - man/kfcgi.8.html \ - functions.html + man/kfcgi.8.html MAN3S = man/kcgi.3 \ man/kcgihtml.3 \ man/kcgijson.3 \ @@ -379,8 +378,7 @@ sample-cgi: sample-cgi.o # that they're running in-house for releases. index.html: index.xml versions.xml $(THTMLS) - sblg -t index.xml -s date -o- versions.xml $(THTMLS) | \ - sed "s!@VERSION@!$(VERSION)!g" >$@ + sblg -t index.xml -s date -o- versions.xml $(THTMLS) >$@ sample.c.html: sample.c highlight -o $@ --inline-css --doc sample.c @@ -389,8 +387,7 @@ samplepp.cc.html: samplepp.cc highlight -o $@ --inline-css --doc samplepp.cc archive.html: archive.xml versions.xml $(THTMLS) - sblg -t archive.xml -s date -o- versions.xml $(THTMLS) | \ - sed "s!@VERSION@!$(VERSION)!g" >$@ + sblg -t archive.xml -s date -o- versions.xml $(THTMLS) >$@ $(THTMLS): tutorial.xml versions.xml $(TXMLS) @@ -407,10 +404,6 @@ extending01.html: extending01.xml tutorial.xml .8.8.html: mandoc -Thtml -Ostyle=mandoc.css $< >$@ -functions.html: functions.xml genindex.sh - sh ./genindex.sh functions.xml | \ - sed "s!@VERSION@!$(VERSION)!g" >$@ - atom.xml: versions.xml sblg -s date -a versions.xml >$@ diff --git a/archive.css b/archive.css index 7248a37..64c8749 100644 --- a/archive.css +++ b/archive.css @@ -1,69 +1,70 @@ -html, body { margin: 0; - padding: 0; } -body { color: #333; - font-family: "Alegreya sans", Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif; - font-weight: 400; - font-size: 14pt; } -a { text-decoration: none; } -strong, b { font-weight: 700; } -code, pre { font-size: 12pt; } -body > header { box-shadow: 0 1px 4px #888; - background-color: #333; - padding: 2em 20% 1ex 20%; - color: #fff; } -body > header a { color: #dd5; } -body > header a:hover { color: #ff0; } -body > header nav ul { margin: auto 0; - padding: 0; - list-style-type: none; } -body > header nav li { margin: 0; } -body > header nav li + li { margin-top: 0.5em; } -body > header nav { padding: 0.5ex 0 1ex 0; } -body > header nav .version { border-right: thin solid silver; - color: #abc; - padding-right: 1ex; } -h1 { font-size: 24pt; - margin: 0; - margin-bottom: 8pt; - font-weight: 400; } -.nm, .file { font-style: italic; } -h1 .nm { text-shadow: 1px 1px #666; - font-style: inherit; } -h1 .nd { text-shadow: 1px 1px #333; } -footer { margin-top: 1em; - text-align: center; - font-size: 12pt; - color: #666; } -footer a { color: #000; } -footer span { border-left: thin solid #ccc; - padding-left: 1ex; } -footer { padding: 1ex; - margin-top: 1em; - margin-bottom: 1em; } -.flag { font-weight: 500; } -#functions, #archive { width: 60%; - margin-left: auto; - margin-right: auto; } -#archive li + li { margin-top: 16pt; } -#archive div.content > div + div - { margin-top: 8pt; } -#archive ul { list-style-type: none; - padding: 0; - margin: 2em 0; } -#archive .title { display: flex; - border-bottom: thin solid #eee; - margin-bottom: 0.25em; } -#archive .title > :first-child { font-weight: 500; } -#archive .title > :last-child { flex: 1; - font-size: 12pt; - text-align: right; } -#functions ul { margin-left: 0; - padding-left: 0; } -#functions dd + dt { margin-top: 12pt; } +html, body { margin: 0; + padding: 0; } +body { color: #333; + font-family: "Alegreya sans", sans-serif; + font-weight: 400; + line-height: 1.3em; + font-size: 14pt; } +a { text-decoration: none; } +strong, b { font-weight: 700; } +code, pre { font-size: 65%; } +body > header { background-color: #333; + padding: 2rem 0 0 0; + color: #fff; } +body > header > section { width: 66rem; + max-width: 98%; + margin: 0 auto; } +#header a { color: #dd5; } +#header a:hover { color: #ff0; } +#header nav { padding: 0.5rem 0; + font-size: 90%; } +#header nav .version { border-right: thin solid silver; + color: #abc; + margin-right: 0.5rem; + padding-right: 0.5rem; } +h1 { font-size: 175%; + margin: 0; + font-weight: 400; } +.nm, .file { font-style: italic; } +h1 .nm { text-shadow: 1px 1px #666; + font-style: inherit; } +h1 .nd { text-shadow: 1px 1px #333; } +footer { margin-top: 1em; + text-align: center; + font-size: 12pt; + color: #666; } +footer a { color: #000; } +footer span { border-left: thin solid #ccc; + padding-left: 1ex; } +footer { padding: 1ex; + margin-top: 1em; + margin-bottom: 1em; } +.flag { font-weight: 500; } +#functions, #archive { width: 66rem; + max-width: 98%; + margin-left: auto; + margin-right: auto; } +#archive .fa { font-size: 80%; } +#archive li:first-child { color: #000; + margin-bottom: 3rem; } +#archive li + li { margin-top: 2rem; + opacity: 0.6; } +#archive div.content > div + div + { margin-top: 1rem; } +#archive ul { list-style-type: none; + padding: 0; + margin: 2em 0; } +#archive .title { display: flex; + border-bottom: thin solid #eee; + margin-bottom: 1rem; } +#archive .title > :last-child { flex: 1; + font-size: 12pt; + text-align: right; } +#functions ul { margin-left: 0; + padding-left: 0; } +#functions dd + dt { margin-top: 12pt; } @media only screen and (max-width: 768px), only screen and (max-device-width: 768px) { - h1 { font-size: 15pt; } - pre { font-size: 8pt; } - #functions, #archive { width: 96%; } - body > header { padding: 1em 2% 1ex 2%; } + h1 { font-size: 125%; + line-height: 125%; } } diff --git a/archive.xml b/archive.xml index 05a961a..70af789 100644 --- a/archive.xml +++ b/archive.xml @@ -1,7 +1,7 @@ - + - + kcgi | minimal CGI and FastCGI library for C @@ -18,7 +18,12 @@ minimal CGI and FastCGI library for C/C++ +

+ (release archive) +

+

- Installation + installation

First, check if kcgi isn't already packaged for your system, such as @@ -227,12 +234,12 @@ int main(void) {

- Documentation + documentation

The kcgi manpages, starting with kcgi(3), are the canonical source of documentation. - You can also see all functions; or if it's easier to start by example, you can use + If it's easier to start by example, you can use kcgi-framework as an initial boilerplate to start your project. The following are introductory materials to the system. @@ -281,7 +288,7 @@ int main(void) {

- Deployment + deployment

Applications using kcgi behave just like any other application. @@ -311,7 +318,7 @@ int main(void) {

- Implementation Details + implementation details

The bulk of kcgi's CGI handling lies in

- Testing + testing

kcgi is shipped with a fully automated testing framework executed with @@ -421,7 +428,7 @@ int main(void) {

- Performance + performance

Security comes at a price—but not a stiff price. @@ -452,7 +459,7 @@ int main(void) {