added more testing input to testing/
This commit is contained in:
parent
bdf7c1c4ab
commit
e062630a8a
22
Makefile
22
Makefile
|
@ -1,4 +1,8 @@
|
|||
SHELL = /bin/sh
|
||||
# INPUT_PATH = "src/"
|
||||
# HTML_OUTPUT_PATH = "html/"
|
||||
# GMI_OUTPUT_PATH = "gmi/"
|
||||
|
||||
SOURCES = $(shell find src/ -type f)
|
||||
SITEMAP_INDEX_FILES = $(wildcard src/*/*)
|
||||
|
||||
|
@ -19,11 +23,11 @@ upload:
|
|||
scp -r gmi/* techn0path@vern.cc:public_gemini
|
||||
scp -r html/* techn0path@vern.cc:public_html
|
||||
|
||||
test: testing/input.gmi testing/input_feed.txt
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -f scripts/html.awk -v 'sourcePath=src/' -v 'outputPath=testing/' -- testing/input.gmi > testing/output.html
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -f scripts/gemini.awk -v 'sourcePath=src/' -v 'outputPath=testing/' -- testing/input.gmi > testing/output.gmi
|
||||
mawk -f lib/path.awk -f scripts/feed.awk -- testing/input_feed.txt > testing/output.atom
|
||||
html5validator testing/output.html
|
||||
test: testing/input/index.gmi testing/input/feed.txt
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -f scripts/html.awk -v 'sourcePath=testing/input' -- testing/input/index.gmi > testing/output/index.html
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -f scripts/gemini.awk -v 'sourcePath=testing/input' -- testing/input/index.gmi > testing/output/index.gmi
|
||||
mawk -f lib/path.awk -f scripts/feed.awk -- testing/input/feed.txt > testing/output/feed.atom
|
||||
html5validator testing/output/index.html
|
||||
|
||||
subdirs:
|
||||
find src -mindepth 1 -type d -printf '%P\0' | xargs -0 -I{} mkdir -p gmi/{} html/{}
|
||||
|
@ -44,16 +48,16 @@ html/style.css: src/style.css
|
|||
cp $< $@
|
||||
|
||||
html/%.html: src/%.gmi scripts/html.awk lib/navbar.awk
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -v 'outputPath=html/' -f scripts/html.awk -- $< > $@
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -f scripts/html.awk -- $< > $@
|
||||
|
||||
gmi/%.gmi: src/%.gmi scripts/gemini.awk lib/navbar.awk
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -v 'outputPath=gmi/' -f scripts/gemini.awk -- $< > $@
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -f scripts/gemini.awk -- $< > $@
|
||||
|
||||
html/sitemap.html: $(SITEMAP_INDEX_FILES) scripts/sitemap_html.awk lib/navbar.awk
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -v 'outputPath=html/' -f scripts/sitemap_html.awk -- $(SITEMAP_INDEX_FILES) > $@
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -f scripts/sitemap_html.awk -- $(SITEMAP_INDEX_FILES) > $@
|
||||
|
||||
gmi/sitemap.gmi: $(SITEMAP_INDEX_FILES) scripts/sitemap_gmi.awk lib/navbar.awk
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -v 'outputPath=gmi/' -f scripts/sitemap_gmi.awk -- $(SITEMAP_INDEX_FILES) > $@
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/' -f scripts/sitemap_gmi.awk -- $(SITEMAP_INDEX_FILES) > $@
|
||||
|
||||
html/feed.atom: scripts/feed.awk
|
||||
git log --diff-filter=A --pretty=format:'%aI "%s"' --name-only src/ | mawk -v 'willConvertLinks=1' -f lib/path.awk -f scripts/feed.awk -- - > $@
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# Notes
|
||||
Notes are good!
|
|
@ -0,0 +1,2 @@
|
|||
# Useful
|
||||
Useful things are good!
|
|
@ -0,0 +1,32 @@
|
|||
Navigation:
|
||||
=> testing/input/index.gmi home
|
||||
=> testing/input/useful/index.gmi useful
|
||||
=> testing/input/notes/index.gmi notes
|
||||
=> testing/input/sitemap.gmi sitemap
|
||||
=> testing/input/feed.atom feed
|
||||
=> http://git.vern.cc/techn0path/ git
|
||||
|
||||
# Testing Input
|
||||
This is testing input.
|
||||
|
||||
And this text should be <escaped>, so that the characters work in 'HTML.
|
||||
|
||||
> Quotes should work.
|
||||
> - Me
|
||||
|
||||
```
|
||||
And code should work too.
|
||||
Right?
|
||||
> Well quotes within code don't work.
|
||||
```
|
||||
|
||||
* Unordered lists
|
||||
* should work properly, hopefully
|
||||
|
||||
* And spaces seperate lists
|
||||
|
||||
## Level 2 Subheadings work
|
||||
|
||||
### Level 3 Subheadings work
|
||||
|
||||
#### But not beyond that.
|
|
@ -0,0 +1,55 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Testing Input</title>
|
||||
<meta name='author' content='techn0path' />
|
||||
<meta name='referrer' content='no-referrer' />
|
||||
<meta name='viewpoint' content='width=device-width,initial-scale=1.0' />
|
||||
|
||||
<link rel='stylesheet' href='testing/input/style.css'/>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav id='navbar'>
|
||||
<a href='testing/input/index.html'>home</a> |
|
||||
<a href='testing/input/useful/index.html'>useful</a> |
|
||||
<a href='testing/input/notes/index.html'>notes</a> |
|
||||
<a href='testing/input/sitemap.html'>sitemap</a> |
|
||||
<a href='testing/input/feed.atom'>feed</a> |
|
||||
<a href='http://git.vern.cc/techn0path/'>git</a>
|
||||
</nav><hr>
|
||||
|
||||
</header>
|
||||
<article id='content'>
|
||||
<details id='toc'> <summary>Table of content</summary> <ol>
|
||||
<li><a href='#level_2_subheadings_work'>Level 2 Subheadings work</a></li>
|
||||
</ol> </details>
|
||||
|
||||
<h1>Testing Input</h1>
|
||||
<p>This is testing input.</p>
|
||||
<p>And this text should be <escaped>, so that the characters work in 'HTML.</p>
|
||||
<blockquote>
|
||||
Quotes should work.<br>
|
||||
- Me<br>
|
||||
</blockquote>
|
||||
<pre>
|
||||
And code should work too.
|
||||
Right?
|
||||
> Well quotes within code don't work.
|
||||
</pre>
|
||||
<ul>
|
||||
<li>Unordered lists</li>
|
||||
<li>should work properly, hopefully</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>And spaces seperate lists</li>
|
||||
</ul>
|
||||
<h2 id='level_2_subheadings_work'>Level 2 Subheadings work</h2>
|
||||
<a href='#level_2_subheadings_work'>Permalink</a><br/><br/>
|
||||
<h3>Level 3 Subheadings work</h3>
|
||||
<p>#### But not beyond that.</p>
|
||||
|
||||
<p>If you have any suggestions, let me know at <a href='mailto:logicartist123@gmail.com'>logicartist123@gmail.com</a>. Sorry, I still use GMail. :/</p>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,88 @@
|
|||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<feed xmlns='http://www.w3.org/2005/Atom'>
|
||||
<title>techn0path</title>
|
||||
<link rel='self' href='' />
|
||||
<author>
|
||||
<name>techn0path</name>
|
||||
</author>
|
||||
<updated>2023-05-20T21:12:38+06:00</updated>
|
||||
<id>urn:uuid:dad753cc-9f1a-55c9-afa5-0f6e50594ed5</id>
|
||||
<entry>
|
||||
<title>"renamed feed.txt to feed.tsv. added hooks. made all of the scripts in scripts/ executable" (hooks/post-commit)</title>
|
||||
<link href='hooks/post-commit' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-20T21:12:38+06:00</updated>
|
||||
<summary>"renamed feed.txt to feed.tsv. added hooks. made all of the scripts in scripts/ executable"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"added feed.txt, as well as scripts/new_feed_entry.el. i will soon generate my ATOM feeds using feed.txt instead of src/feed.ass" (feed.txt)</title>
|
||||
<link href='feed.txt' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-18T15:36:40+06:00</updated>
|
||||
<summary>"added feed.txt, as well as scripts/new_feed_entry.el. i will soon generate my ATOM feeds using feed.txt instead of src/feed.ass"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"added feed.txt, as well as scripts/new_feed_entry.el. i will soon generate my ATOM feeds using feed.txt instead of src/feed.ass" (scripts/new_feed_entry.el)</title>
|
||||
<link href='scripts/new_feed_entry.el' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-18T15:36:40+06:00</updated>
|
||||
<summary>"added feed.txt, as well as scripts/new_feed_entry.el. i will soon generate my ATOM feeds using feed.txt instead of src/feed.ass"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"renamed testing/example.ass and testing/example.gmi to testing/input.ass and testing/input.gmi. also added more content to testing/input.gmi for further testing" (testing/input.gmi)</title>
|
||||
<link href='testing/input.gmi' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-17T19:40:57+06:00</updated>
|
||||
<summary>"renamed testing/example.ass and testing/example.gmi to testing/input.ass and testing/input.gmi. also added more content to testing/input.gmi for further testing"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"consolidated navigation bar generation logic into scripts/navbar.awk. also recorded new output testing/output.html as correct." (scripts/navbar.awk)</title>
|
||||
<link href='scripts/navbar.awk' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-17T19:07:04+06:00</updated>
|
||||
<summary>"consolidated navigation bar generation logic into scripts/navbar.awk. also recorded new output testing/output.html as correct."</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"added a glossary" (src/glossary.gmi)</title>
|
||||
<link href='src/glossary.gmi' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-14T15:33:50+06:00</updated>
|
||||
<summary>"added a glossary"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff" (testing/example.ass)</title>
|
||||
<link href='testing/example.ass' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-14T15:30:49+06:00</updated>
|
||||
<summary>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff" (testing/example.gmi)</title>
|
||||
<link href='testing/example.gmi' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-14T15:30:49+06:00</updated>
|
||||
<summary>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff" (testing/output.atom)</title>
|
||||
<link href='testing/output.atom' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-14T15:30:49+06:00</updated>
|
||||
<summary>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff" (testing/output.gmi)</title>
|
||||
<link href='testing/output.gmi' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-14T15:30:49+06:00</updated>
|
||||
<summary>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff"</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff" (testing/output.html)</title>
|
||||
<link href='testing/output.html' />
|
||||
<id>urn:uuid:</id>
|
||||
<updated>2023-05-14T15:30:49+06:00</updated>
|
||||
<summary>"minor changes to scripts/html.awk. i dunno, stuff to do with the navigation bar i guess. also added snapshot testing via git-diff"</summary>
|
||||
</entry>
|
||||
|
||||
</feed>
|
|
@ -1,3 +1,6 @@
|
|||
src/
|
||||
testing/input.gmi
|
||||
testing/
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
Loading…
Reference in New Issue