~nickbp/marky

a9d54ef07b9065cef97994ec0957255e0385b139 — Nick Parker 2 years ago d124926 main
Switch to hugo rendering, fix links
11 files changed, 18 insertions(+), 12 deletions(-)

M .build.yml
M README
A docs/config.toml
R docs/{index.html => content/_index.html}
R docs/{docs.html => content/docs/_index.html}
R docs/{download.html => content/download/_index.html}
A docs/layouts/_default/section.html
R docs/{_layouts/default.html => layouts/index.html}
R docs/{favicon.ico => static/favicon.ico}
R docs/{marky-black.png => static/marky-black.png}
R docs/{style.css => static/style.css}
M .build.yml => .build.yml +5 -1
@@ 1,11 1,15 @@
# sourcehut build: push docs/* to website
image: alpine/latest
packages:
- hugo
oauth: pages.sr.ht/PAGES:RW
environment:
  repo: marky
tasks:
- package: |
    cd $repo/docs/
    tar -cvz . > ../../site.tar.gz
    hugo
    cd public/
    tar -cvz . > ../../../site.tar.gz
- upload: |
    acurl -f https://pages.sr.ht/publish/$repo.nickbp.com -Fcontent=@site.tar.gz

M README => README +1 -1
@@ 6,4 6,4 @@ Building marky:
4) "make"
5) See "bin/apps/marky-file" or "py/example.py"

Docs: http://nickbp.github.io/marky/
Docs: https://marky.nickbp.com/

A docs/config.toml => docs/config.toml +1 -0
@@ 0,0 1,1 @@
languageCode = "en-us"
\ No newline at end of file

R docs/index.html => docs/content/_index.html +1 -1
@@ 4,7 4,7 @@ title: marky
---
<p>Marky is a library for creating Markov chains from arbitrary text input. It comes with a simple command line front end, named <i>marky-file</i>, which can be used to read text files and produce entertaining output.</p>

<p>The library is divided into several discrete components, allowing developers and advanced users to easily customize and extend its behavior. It currently supports a few scoring and selection methods, and temporary (hash map) or persistent (SQLite) storage of its state. For a description of Marky's internal structure, take a look at the <a href="docs.html">documentation</a>.</p>
<p>The library is divided into several discrete components, allowing developers and advanced users to easily customize and extend its behavior. It currently supports a few scoring and selection methods, and temporary (hash map) or persistent (SQLite) storage of its state. For a description of Marky's internal structure, take a look at the <a href="/docs">documentation</a>.</p>

<p>It's also pretty fast. In a Release build on my 3 year old laptop, the <i>marky-file</i> tool imports all of "My Antonia" and produces a chain in about 0.25 seconds. If the data is imported into a SQLite db (~3 seconds), it takes around 0.1 seconds to produce a chain from that. Here are some examples:</p>


R docs/docs.html => docs/content/docs/_index.html +0 -0
R docs/download.html => docs/content/download/_index.html +2 -2
@@ 13,9 13,9 @@ title: marky - download

<p class="header">Getting the Code</p>

<p>Get the latest <a href="https://github.com/nickbp/marky">Source Code</a> from Git.</p>
<p>Get the latest <a href="https://sr.ht/~nickbp/marky">Source Code</a> from Git.</p>

<p class="code">$ git clone git://github.com/nickbp/marky.git</p>
<p class="code">$ git clone https://git.sr.ht/~nickbp/marky</p>

<p class="header">Building</p>


A docs/layouts/_default/section.html => docs/layouts/_default/section.html +1 -0
@@ 0,0 1,1 @@
../index.html
\ No newline at end of file

R docs/_layouts/default.html => docs/layouts/index.html +7 -7
@@ 1,23 1,23 @@
<html>
<head>
  <title>{{ page.title }}</title>
  <link rel="shortcut icon" href="/marky/favicon.ico" />
  <title>{{ .Title }}</title>
  <link rel="shortcut icon" href="/favicon.ico" />
  <style type="text/css">
  @import url("style.css");
  @import url("/style.css");
  </style>
</head>
<body>
<div id="container">
 <div id="titlebar">
  <a href="/marky"><img src="marky-black.png" alt="marky"/></a>
  <a href="/"><img src="/marky-black.png" alt="marky"/></a>
 </div>
 <div id="menu">
  <a href="docs.html">docs</a><br/>
  <a href="download.html">download</a>
  <a href="/docs">docs</a><br/>
  <a href="/download">download</a>
 </div>

 <div id="content">
  {{ content }}
  {{ .Content }}
 </div>
</div>
</body>

R docs/favicon.ico => docs/static/favicon.ico +0 -0
R docs/marky-black.png => docs/static/marky-black.png +0 -0
R docs/style.css => docs/static/style.css +0 -0