aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12024-12-16 14:45:19 +1000
committerdvs12024-12-16 14:45:19 +1000
commit5c987cb37297cec02f86557e23522be3493912c1 (patch)
treee69f44947305c52f75600be52e2e9f607ff9e430
parentAdd about and testing sub sites, and stuff everything into menus. (diff)
downloadnotYetAnotherWiki-5c987cb37297cec02f86557e23522be3493912c1.zip
notYetAnotherWiki-5c987cb37297cec02f86557e23522be3493912c1.tar.gz
notYetAnotherWiki-5c987cb37297cec02f86557e23522be3493912c1.tar.bz2
notYetAnotherWiki-5c987cb37297cec02f86557e23522be3493912c1.tar.xz
The results after actually running the thing.
Committing these for now, so we don't have to setup luarocks and such elsewhere.
-rw-r--r--TODO.HTML115
-rw-r--r--about/index.HTML82
-rw-r--r--index.HTML81
-rw-r--r--menu.HTML44
-rw-r--r--testing/index.HTML143
5 files changed, 465 insertions, 0 deletions
diff --git a/TODO.HTML b/TODO.HTML
new file mode 100644
index 0000000..624bc28
--- /dev/null
+++ b/TODO.HTML
@@ -0,0 +1,115 @@
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="generator" contents="lcmark">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
7 <title></title>
8 <link rel="icon" type="image/png" href="" />
9 <style>
10 html {font-family: sans-serif;}
11
12 body {
13 background-color: black;
14 color: white !important;
15 }
16
17 pre {
18 background-color: #cc00ff;
19 overflow: auto;
20 width: 42%;
21 }
22
23 menu {
24 list-style-type: none;
25 }
26
27 .contentBox {
28 overflow-y: auto;
29 overflow-x: hidden;
30 }
31 </style>
32 </head>
33 <body bgcolor="black" text="white" alink="red" link="yellow" vlink="blue">
34 <table>
35 <tr>
36 <td><img src="Connie_click-me.gif" alt="alt text" title="Not (Yet) (Another / A) Wiki."/></td>
37 <td><a href="about/index.HTML">about</a> &nbsp; <a href="testing/index.HTML">testing</a> &nbsp; plus login and register buttons</td>
38 </tr>
39 <td rowspan=0 style="background-color: rebeccapurple; text-align:left; white-space:nowrap; vertical-align:top">
40 menu for the current directory
41 <menu>
42<li><a href="index.HTML">home</a></li>
43<li><a href="TODO.HTML">TODO</a></li>
44</menu>
45
46 </td>
47 <td style="background-color: rebeccapurple">
48 for this page
49 </td>
50 </tr>
51 <tr>
52 <td>
53 <main class="contentBox">
54 <div name="contentFrame">
55 <h1></h1>
56 Author:
57 <p>Do these -</p>
58<p>Construct a default set of menus if the menu.md / header.md fragments don’t exist in each directory. Same for footer.md I guess.</p>
59<p>For such fragments, rename their results to menu.FRAGMENT. metadata.isFragment</p>
60<p>BUG - sub directories get their links screwed with extra path.</p>
61<p>Contstruct metadata.webtrail in createHTML from links to index.HTML in the various bits of the path of the input file.</p>
62<p>Check the timestamps on the files, only update if source is newer than destination. Meh, it’s already 600 times faster than the pandoc version.</p>
63<p>Add atom feed for single page. Alas cgit only seems to have ATOM feed on the whole repo, not individual files.</p>
64<p>Try out -</p>
65<p>htmx</p>
66<p>pandoc replacements
67cmark-gfm</p>
68<p>cgit has Lua</p>
69<p>User system -
70levels -
71banned
72reader
73member
74moderator
75editor
76admin
77shell
78root</p>
79<p>Banned people can’t do squat, except maybe pester an admin once to start the unbanning process.</p>
80<p>When first registered, accounts are set to reader level.
81Initial verification by email.
82Readers can only edit their own profile.</p>
83<p>If an existing member vouches for a reader, they get promoted to member.
84Some invite system would count is vouching, but need to get secure invite credentials to someone outside the system.</p>
85<p>Members can chat, and create their own sandboxes that might get promoted by editors / moderators to proper content.</p>
86<p>Moderators can move things around, including to a spam/trash place. They can ban readers and members.</p>
87<p>Editors can edit any content, and move things around. They can’t edit the site elements itself.
88So they can edit the site menu and structure of the content, but not the footer?
89Certainly can’t edit any admin stuff.</p>
90<p>Admins are set by other admins.
91Admins can promote / demote people and content at any time.
92Admins can edit anything, including web editing of config files, and managing of modules.</p>
93<p>shell level means you have direct access to the files that are the web
94site, including configuration and modules. Likely this is the person
95that set the system up in the first place.</p>
96<p>Admin should have access to everything that shell level has, but there’s always things need tweaking at some lower level.
97Built in file browser might do the trick. Would be useful for content creators to to organise the content. Naturally should obey the permisisons.</p>
98<p>root level is whoever controls the server things are running on. They can do anything at all.</p>
99
100 </div>
101 </main>
102 </td>
103 </tr>
104 <tr>
105 <td style="background-color: rebeccapurple">
106 <p>Web site <a href="">atom feed</a>, <a href="">history</a>, and <a href="">source code</a> &nbsp; Powered by <a href="https://sledjhamr.org/cgit/notYetAnotherWiki/about/">notYetAnotherWiki</a> Version -0.1.</p>
107 </td>
108 </tr>
109 <tr>
110 <td>
111 </td>
112 </tr>
113 </table>
114 </body>
115</html>
diff --git a/about/index.HTML b/about/index.HTML
new file mode 100644
index 0000000..af10ab5
--- /dev/null
+++ b/about/index.HTML
@@ -0,0 +1,82 @@
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="generator" contents="lcmark">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
7 <title>notYetAnotherWiki is not another wiki, at least not yet. It’ll be much more than that, eventually.</title>
8 <link rel="icon" type="image/png" href="cartdave_favicon.png" />
9 <style>
10 html {font-family: sans-serif;}
11
12 body {
13 background-color: black;
14 color: white !important;
15 }
16
17 pre {
18 background-color: #cc00ff;
19 overflow: auto;
20 width: 42%;
21 }
22
23 menu {
24 list-style-type: none;
25 }
26
27 .contentBox {
28 overflow-y: auto;
29 overflow-x: hidden;
30 }
31 </style>
32 </head>
33 <body bgcolor="black" text="white" alink="red" link="yellow" vlink="blue">
34 <table>
35 <tr>
36 <td><img src="Connie_click-me.gif" alt="alt text" title="Not (Yet) (Another / A) Wiki."/></td>
37 <td><a href="about/index.HTML">about</a> &nbsp; <a href="testing/index.HTML">testing</a> &nbsp; plus login and register buttons</td>
38 </tr>
39 <td rowspan=0 style="background-color: rebeccapurple; text-align:left; white-space:nowrap; vertical-align:top">
40 menu for the current directory
41 <menu>
42<li><a href="index.HTML">home</a></li>
43<li><a href="TODO.HTML">TODO</a></li>
44</menu>
45
46 </td>
47 <td style="background-color: rebeccapurple">
48 Web trail goes here. for this page
49 </td>
50 </tr>
51 <tr>
52 <td>
53 <main class="contentBox">
54 <div name="contentFrame">
55 <h1>notYetAnotherWiki is not another wiki, at least not yet. It’ll be much more than that, eventually.</h1>
56 Author: onefang
57 <p>This is a new directory, an entire PR department can hang out here.</p>
58<p>notYetAnotherWiki is not another wiki, at least not yet. It’ll be much more than that, eventually.</p>
59<p>So to start with it’s not a wiki. It’s currently a way to create a web
60site with CommonMark wiki markup, using git to update the content.</p>
61<p>So it’s not a wiki, yet.</p>
62<p>Next comes accounts and online editing of content with the web pages. It’ll then barely be a wiki.</p>
63<p>The missing bit is talk pages, which requires some sort of archiving chat
64system built into the thing. Now it’s Yet Another Wiki.</p>
65<p>Finally comes the magic, so it’s “not Yet Another Wiki”, it’s much more than that.</p>
66
67 </div>
68 </main>
69 </td>
70 </tr>
71 <tr>
72 <td style="background-color: rebeccapurple">
73 <p>Web site <a href="">atom feed</a>, <a href="https://sledjhamr.org/cgit/notYetAnotherWiki/log/About/index.md">history</a>, and <a href="">source code</a> &nbsp; Powered by <a href="https://sledjhamr.org/cgit/notYetAnotherWiki/about/">notYetAnotherWiki</a> Version -0.1.</p>
74 </td>
75 </tr>
76 <tr>
77 <td>
78 </td>
79 </tr>
80 </table>
81 </body>
82</html>
diff --git a/index.HTML b/index.HTML
new file mode 100644
index 0000000..83da492
--- /dev/null
+++ b/index.HTML
@@ -0,0 +1,81 @@
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="generator" contents="lcmark">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
7 <title>notYetAnotherWiki is not another wiki, at least not yet. It’ll be much more than that, eventually.</title>
8 <link rel="icon" type="image/png" href="cartdave_favicon.png" />
9 <style>
10 html {font-family: sans-serif;}
11
12 body {
13 background-color: black;
14 color: white !important;
15 }
16
17 pre {
18 background-color: #cc00ff;
19 overflow: auto;
20 width: 42%;
21 }
22
23 menu {
24 list-style-type: none;
25 }
26
27 .contentBox {
28 overflow-y: auto;
29 overflow-x: hidden;
30 }
31 </style>
32 </head>
33 <body bgcolor="black" text="white" alink="red" link="yellow" vlink="blue">
34 <table>
35 <tr>
36 <td><img src="Connie_click-me.gif" alt="alt text" title="Not (Yet) (Another / A) Wiki."/></td>
37 <td><a href="about/index.HTML">about</a> &nbsp; <a href="testing/index.HTML">testing</a> &nbsp; plus login and register buttons</td>
38 </tr>
39 <td rowspan=0 style="background-color: rebeccapurple; text-align:left; white-space:nowrap; vertical-align:top">
40 menu for the current directory
41 <menu>
42<li><a href="index.HTML">home</a></li>
43<li><a href="TODO.HTML">TODO</a></li>
44</menu>
45
46 </td>
47 <td style="background-color: rebeccapurple">
48 Web trail goes here. for this page
49 </td>
50 </tr>
51 <tr>
52 <td>
53 <main class="contentBox">
54 <div name="contentFrame">
55 <h1>notYetAnotherWiki is not another wiki, at least not yet. It’ll be much more than that, eventually.</h1>
56 Author: onefang
57 <p>notYetAnotherWiki is not another wiki, at least not yet. It’ll be much more than that, eventually.</p>
58<p>So to start with it’s not a wiki. It’s currently a way to create a web
59site with CommonMark wiki markup, using git to update the content.</p>
60<p>So it’s not a wiki, yet.</p>
61<p>Next comes accounts and online editing of content with the web pages. It’ll then barely be a wiki.</p>
62<p>The missing bit is talk pages, which requires some sort of archiving chat
63system built into the thing. Now it’s Yet Another Wiki.</p>
64<p>Finally comes the magic, so it’s “not Yet Another Wiki”, it’s much more than that.</p>
65
66 </div>
67 </main>
68 </td>
69 </tr>
70 <tr>
71 <td style="background-color: rebeccapurple">
72 <p>Web site <a href="">atom feed</a>, <a href="https://sledjhamr.org/cgit/notYetAnotherWiki/log/index.md">history</a>, and <a href="">source code</a> &nbsp; Powered by <a href="https://sledjhamr.org/cgit/notYetAnotherWiki/about/">notYetAnotherWiki</a> Version -0.1.</p>
73 </td>
74 </tr>
75 <tr>
76 <td>
77 </td>
78 </tr>
79 </table>
80 </body>
81</html>
diff --git a/menu.HTML b/menu.HTML
new file mode 100644
index 0000000..df05661
--- /dev/null
+++ b/menu.HTML
@@ -0,0 +1,44 @@
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="generator" contents="lcmark">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
7 <title></title>
8 <link rel="icon" type="image/png" href="" />
9 <style>
10html {
11 font-family: sans-serif;
12}
13
14* {
15 box-sizing: border-box;
16}
17
18body {
19 margin: 0;
20}
21
22.menuBox {
23 position: fixed;
24 height: 100%;
25 width: 10%;
26}
27
28menu {
29 list-style-type: none;
30 padding: 5px;
31}
32
33 </style>
34 </head>
35 <body bgcolor="black" text="white" alink="red" link="blue" vlink="purple">
36 <nav class="menuBox">
37 <ul>
38<li><a href="index.HTML">home</a></li>
39<li><a href="TODO.HTML">TODO</a></li>
40</ul>
41
42 </nav>
43 </body>
44</html>
diff --git a/testing/index.HTML b/testing/index.HTML
new file mode 100644
index 0000000..30e9b19
--- /dev/null
+++ b/testing/index.HTML
@@ -0,0 +1,143 @@
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="generator" contents="lcmark">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
7 <title>G’day world!</title>
8 <link rel="icon" type="image/png" href="" />
9 <style>
10 html {font-family: sans-serif;}
11
12 body {
13 background-color: black;
14 color: white !important;
15 }
16
17 pre {
18 background-color: #cc00ff;
19 overflow: auto;
20 width: 42%;
21 }
22
23 menu {
24 list-style-type: none;
25 }
26
27 .contentBox {
28 overflow-y: auto;
29 overflow-x: hidden;
30 }
31 </style>
32 </head>
33 <body bgcolor="black" text="white" alink="red" link="yellow" vlink="blue">
34 <table>
35 <tr>
36 <td><img src="Connie_click-me.gif" alt="alt text" title="Not (Yet) (Another / A) Wiki."/></td>
37 <td><a href="about/index.HTML">about</a> &nbsp; <a href="testing/index.HTML">testing</a> &nbsp; plus login and register buttons</td>
38 </tr>
39 <td rowspan=0 style="background-color: rebeccapurple; text-align:left; white-space:nowrap; vertical-align:top">
40 menu for the current directory
41 <menu>
42<li><a href="index.HTML">home</a></li>
43<li><a href="TODO.HTML">TODO</a></li>
44</menu>
45
46 </td>
47 <td style="background-color: rebeccapurple">
48 Web trail goes here. for this page
49 </td>
50 </tr>
51 <tr>
52 <td>
53 <main class="contentBox">
54 <div name="contentFrame">
55 <h1>G’day world!</h1>
56 Author: onefang
57 <p>I’ve been around since the early sixties, but no one ever noticed.  You
58really should have tried to pay attention though, I’m awesome.  I try to
59help the world, but that’s not what everyone wants me to do.&nbsp; Well, the
60people in charge of this poor defenseless world of ours.</p>
61<hr />
62<h1>Spaces</h1>
63<p>Can it <em>handle</em> my <em>usual</em> two <strong>space</strong> sentence breaks? Let’s test it.&nbsp; Not by default.</p>
64<p>The \ before a space turns it into a “a literal unicode nonbreaking space character” which looks invisible in the source.  --ascii should output the HTML code far that.&nbsp; Except doesn’t actually work.</p>
65<p>Also a \ at the end of a line turns into a line break, though they get wrapped in paragraph tags.&nbsp; lol</p>
66<p>Take two.&nbsp; And now for something completely different.  It’s not consistant, need to manually put in the nbsp a few times above.  Ah, it only works for the first one per line.</p>
67<p>\</p>
68<h2>Strike out</h2>
69<p>Test ~~strike~~ –out–.&nbsp; Needs the extension.</p>
70<h3>URL</h3>
71<p><a href="https://untalenz.rocks/">untalenz</a></p>
72<p>https://sledjhamr.org/</p>
73<h1>Lists</h1>
74<ul>
75<li>zero</li>
76<li>1</li>
77<li>two</li>
78</ul>
79<ul>
80<li>zero</li>
81<li>1</li>
82<li>two</li>
83</ul>
84<p>No way to say “here is the end of the list” without putting something <strong>else</strong> here?&nbsp; Ah a comment will work, or anything else.</p>
85<ol>
86<li>one</li>
87<li>2</li>
88</ol>
89<!-- A comment will work -->
90<ol start="0">
91<li>0</li>
92<li>one</li>
93<li>2</li>
94</ol>
95<p>Autonumbering? Nope. B-(</p>
96<ol start="0">
97<li>zero
981
99two</li>
100</ol>
101<h1>images</h1>
102<p><img src="Connie_click-me.gif" alt="alt text" title="title" /></p>
103<p><img src="Connie_click-me.gif" alt="figcaption" title="title" /></p>
104<h1>code</h1>
105<pre><code>a simple
106 indented code block
107&lt;a/&gt;
108*hi*
109
110- one
111
112Plus some extra text.
113</code></pre>
114<pre><code>&lt;
115 &gt;
116</code></pre>
117<pre><code class="language-lua">-- Show some Lua code here, may even be highlighted right.
118print(&quot;G'day world!&quot;)
119-- Let's see what happens with the HTML output by cmark, then gets rendered by the web browser, inside my CSS styled pre code thingy that cmark produces. For a very very very loooong line. Needs to be much longer. What else can I add to this already quite long line to get it to trigger being overly long? I need even mooooooore???
120print'The problem here is that I have to use CSS to style these things, coz cmark wont let me at the style stuff as far as I can see. But using CSS web browsers think the nmall box STILL extends all the way to the end of the content, but the scroll works anyway. So it's fucking up the size of the container.'
121</code></pre>
122<blockquote>
123<h1>What is a blockquote?</h1>
124<p>Still don’t know. lol</p>
125<p>Just another useless way to eat space I guess.&nbsp; shrugs</p>
126</blockquote>
127
128 </div>
129 </main>
130 </td>
131 </tr>
132 <tr>
133 <td style="background-color: rebeccapurple">
134 <p>Web site <a href="">atom feed</a>, <a href="">history</a>, and <a href="">source code</a> &nbsp; Powered by <a href="https://sledjhamr.org/cgit/notYetAnotherWiki/about/">notYetAnotherWiki</a> Version -0.1.</p>
135 </td>
136 </tr>
137 <tr>
138 <td>
139 </td>
140 </tr>
141 </table>
142 </body>
143</html>