aboutsummaryrefslogtreecommitdiff
path: root/_example
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-23 19:26:29 +0700
committerShulhan <ms@kilabit.info>2026-01-24 07:11:24 +0700
commitbd65f02acbd18532342f18e65e86edd1a2062e1c (patch)
treea14cd70acdb84fd447c1ba3629453a073c200d59 /_example
parent62c2e03409e8f7bc6f3f20df36603344afaf2b3a (diff)
downloadciigo-bd65f02acbd18532342f18e65e86edd1a2062e1c.tar.xz
all: move _example/ directory under _doc/ directory
This allow us to inspect the example using the serve-doc task, along with the content of _doc/.
Diffstat (limited to '_example')
-rw-r--r--_example/.gitignore4
-rw-r--r--_example/custom.css8
-rw-r--r--_example/favicon.icobin5686 -> 0 bytes
-rw-r--r--_example/html.tmpl50
-rw-r--r--_example/index.adoc23
-rw-r--r--_example/index.css166
-rw-r--r--_example/sub/index.adoc8
7 files changed, 0 insertions, 259 deletions
diff --git a/_example/.gitignore b/_example/.gitignore
deleted file mode 100644
index 37384e4..0000000
--- a/_example/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-// SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
-/.ciigo_rescan
-/journal
diff --git a/_example/custom.css b/_example/custom.css
deleted file mode 100644
index 8bf831b..0000000
--- a/_example/custom.css
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
- * SPDX-License-Identifier: GPL-3.0-or-later
- */
-
-h1 {
- color: sienna;
-}
diff --git a/_example/favicon.ico b/_example/favicon.ico
deleted file mode 100644
index 8d22584..0000000
--- a/_example/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/_example/html.tmpl b/_example/html.tmpl
deleted file mode 100644
index 527ab6a..0000000
--- a/_example/html.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-<!-- SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info> -->
-<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
-<!DOCTYPE html>
-<html>
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="theme-color" content="#375EAB" />
-
- <title>{{.Title}}</title>
- <link rel="stylesheet" href="/index.css" />
- {{- range .Styles}}
- <link rel="stylesheet" href="{{.}}" />
- {{- end}}
-</head>
-
-<body>
- <div class="topbar">
- <div class="container">
- <div class="top-heading">
- <a href="/">ciigo</a>
- </div>
- <div class="menu">
- <form class="item" action="/_internal/search">
- <input type="text" name="q" placeholder="Search" />
- </form>
- </div>
- <div class="menu">
- <a href="/sub">Sub</a>
- </div>
- </div>
- </div>
-
- <div class="page">
- <div class="container">
- {{.Body}}
- </div>
- <!-- .container -->
- </div>
- <!-- .page -->
-
- <div class="footer">
- Powered by <a href="https://sr.ht/~shulhan/ciigo">
- ciigo
- </a>
- </div>
-</body>
-
-</html>
diff --git a/_example/index.adoc b/_example/index.adoc
deleted file mode 100644
index a1b6c85..0000000
--- a/_example/index.adoc
+++ /dev/null
@@ -1,23 +0,0 @@
-// SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
-// SPDX-License-Identifier: GPL-3.0-or-later
-= Welcome to ciigo
-Shulhan <ms@kilabit.info>
-25 September 2019
-:sectanchors:
-:sectlinks:
-:toc:
-
-`ciigo` is a library and a program to write static web server with embedded
-files using
-https://asciidoctor.org/docs/what-is-asciidoc/[AsciiDoc^]
-markup format.
-
-== ciigo as library
-
-For an up to date documentation of how to use the library see the
-https://git.sr.ht/~shulhan/ciigo[repository page^].
-
-== ciigo as CLI
-
-`ciigo` as CLI can convert, generate, and/or serve a directory that contains
-markup files, as HTML files.
diff --git a/_example/index.css b/_example/index.css
deleted file mode 100644
index b6254c4..0000000
--- a/_example/index.css
+++ /dev/null
@@ -1,166 +0,0 @@
-/**
- * SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
- * SPDX-License-Identifier: GPL-3.0-or-later
- */
-
-body {
- margin: 0;
- font-family: Arial, sans-serif;
- background-color: #fff;
- line-height: 1.3;
- text-align: center;
- color: #222;
-}
-pre {
- font-family: Menlo, monospace;
- font-size: 0.875rem;
- line-height: 1.4;
- overflow-x: auto;
- background: #efefef;
- padding: 0.625rem;
- border-radius: 0.3125rem;
-}
-a {
- color: #375eab;
- text-decoration: none;
-}
-a:hover {
- text-decoration: underline;
-}
-
-p,
-li {
- max-width: 50rem;
- word-wrap: break-word;
-}
-p,
-pre,
-ul,
-ol {
- margin: 1.25rem;
-}
-
-h1,
-h2,
-h3,
-h4 {
- margin: 1.25rem 0 1.25rem;
- padding: 0;
- color: #375eab;
- font-weight: bold;
-}
-h1 {
- font-size: 1.75rem;
- line-height: 1;
-}
-h1 .text-muted {
- color: #777;
-}
-h2 {
- clear: right;
- font-size: 1.25rem;
- background: #e0ebf5;
- padding: 0.5rem;
- line-height: 1.25;
- font-weight: normal;
- overflow: auto;
- overflow-wrap: break-word;
-}
-h2 a {
- font-weight: bold;
-}
-h3 {
- font-size: 1.25rem;
- line-height: 1.25;
- overflow: auto;
- overflow-wrap: break-word;
-}
-h3,
-h4 {
- margin: 1.25rem 0.3125rem;
-}
-h4 {
- font-size: 1rem;
-}
-
-h2 > span,
-h3 > span {
- float: right;
- margin: 0 25px 0 0;
- font-weight: normal;
- color: #5279c7;
-}
-
-dl {
- margin: 1.25rem;
-}
-dd {
- margin: 0 0 0 1.25rem;
-}
-dl,
-dd {
- font-size: 0.875rem;
-}
-
-/**
- * Custom classes for pages
- */
-
-.topbar {
- background: #e0ebf5;
- height: 4rem;
- overflow: hidden;
-}
-
-.topbar .top-heading,
-.topbar .menu {
- padding: 1.313rem 0;
- font-size: 1.25rem;
- font-weight: normal;
-}
-
-.topbar .top-heading {
- float: left;
-}
-.topbar .top-heading a {
- color: #222;
- text-decoration: none;
-}
-
-.topbar .menu {
- float: right;
-}
-.topbar .menu a {
- margin: 0.625rem 0.125rem;
- padding: 0.625rem;
- color: white;
- background: #375eab;
- border: 0.0625rem solid #375eab;
- border-radius: 5px;
-}
-.topbar .menu form {
- margin-left: 0.625rem;
-}
-.page {
- width: 100%;
-}
-
-.page > .container,
-.topbar > .container {
- text-align: left;
- margin-left: auto;
- margin-right: auto;
- padding: 0 1.25rem;
-}
-
-.container .meta {
- font-style: italic;
- margin: 1.25rem;
-}
-
-.footer {
- text-align: center;
- color: #666;
- font-size: 0.875rem;
- margin: 2.5rem 0;
-}
diff --git a/_example/sub/index.adoc b/_example/sub/index.adoc
deleted file mode 100644
index 060610d..0000000
--- a/_example/sub/index.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-// SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
-// SPDX-License-Identifier: GPL-3.0-or-later
-= Sub directory
-Second Author <m.shulhan@gmail.com>
-24 November 2020
-:stylesheet: /custom.css
-
-This is an example of content in sub directory using custom stylesheet.