rename bookmobile

This commit is contained in:
lee2sman 2021-12-31 03:52:36 -05:00
parent bcad607190
commit 71a287d0f6
6 changed files with 0 additions and 711 deletions

Binary file not shown.

View File

@ -1,97 +0,0 @@
bookmobile
==========
exquisitecorp
------------------------------------------------------------------------
An attempt at building my own offline article collector. In progress.
[]()
You can not select more than 25 topics Topics must start with a letter
or number, can include dashes ('-') and can be up to 35 characters long.
![](https://tildegit.org/avatars/6b068f4f161a778ab36bcdb68fa37302?size=48 "exquisitecorp")
[**lee2sman**](https://tildegit.org/exquisitecorp)
[c2cae799b9](https://tildegit.org/exquisitecorp/bookmobile/commit/c2cae799b9416a604e05a1004291ff5831a9a8d9)
[switched backend to readability-cli rather than roll my
own](https://tildegit.org/exquisitecorp/bookmobile/commit/c2cae799b9416a604e05a1004291ff5831a9a8d9)
3 minutes ago
[lib](https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/lib "lib")
[add
comments](https://tildegit.org/exquisitecorp/bookmobile/commit/84532321282d4c7b54994e7bc05692420893b805 "add comments")
2 hours ago
[themes](https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/themes "themes")
[initial
commit](https://tildegit.org/exquisitecorp/bookmobile/commit/fd4e58e425482442be67465cb48838e157c3407e "initial commit")
2 hours ago
[README.md](https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/README.md "README.md")
[update
README.md](https://tildegit.org/exquisitecorp/bookmobile/commit/24a34721d653d45e75bf35b14cd4e01b9f6470b5 "update README.md")
6 minutes ago
[bookmobile.fish](https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/bookmobile.fish "bookmobile.fish")
[switched backend to readability-cli rather than roll my
own](https://tildegit.org/exquisitecorp/bookmobile/commit/c2cae799b9416a604e05a1004291ff5831a9a8d9 "switched backend to readability-cli rather than roll my own")
3 minutes ago
Simple command line script to download articles for offline viewing as
markdown, simplified clean HTML and epub.
This is a fishscript (shell) gluing together pandoc and a Node.js
package that implements the Firefox reader view. It uses a NPM package
that uses Mozilla's own reability javascript. If that's not the right
solution for you, jump down to the alternatives section at the end.
### Dependencies
- fish
- Pandoc
- Node.js / NPM
Note: you must have the following sub-directories: originals/ reader/
epubs/ markdown/
### Install
npm install readability-cli
git clone https://tildegit.org/exquisitecorp/bookmobile.git
cd bookmobile
chmod +x bookmobile.fish
### Usage
./bookmobile.fish URL
Output:
A simplified HTML document will be saved to originals. A reader view
with chosen (or default) theme will be saved to reader/. An epub in
epubs/ and a markdown file to markdown sub-directory.
### To change themes
The themes subdirectory contains several custom simple themes for
rendering a nice reader view. You can edit these or add your own custom
theme to this folder. Change the theme selection in line 3 of the
bookmobile.fish file.
### Alternatives
Currently there are a number of CLI programs that are ports of the
Readability project. These may serve your needs better.
A partial listing can be found
[here](https://github.com/masukomi/arc90-readability#readability-10)

View File

@ -1,217 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="chrome://global/skin/aboutReader.css" type="text/css">
<title>bookmobile</title>
</head>
<body class="light sans-serif loaded" style="--font-size:14pt; --content-width:40em;">
<div class="container" >
<div class="header reader-header reader-show-element">
<h1 class="reader-title">bookmobile</h1>
<div class="credits reader-credits">exquisitecorp</div>
</div>
<hr>
<div class="content">
<div class="moz-reader-content reader-show-element">
<div class="page" id="readability-page-1"><div>
<div>
<p><span>An attempt at building my own offline article collector. In progress.</span>
<a href=""></a>
</p>
</div>
<p><span id="count_prompt">You can not select more than 25 topics</span>
<span id="format_prompt">Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.</span>
</p>
<table id="repo-files-table">
<thead>
<tr>
<th colspan="2">
<img height="24" width="24" title="exquisitecorp" src="https://tildegit.org/avatars/6b068f4f161a778ab36bcdb68fa37302?size=48">
<a href="https://tildegit.org/exquisitecorp"><strong>lee2sman</strong></a>
<a href="https://tildegit.org/exquisitecorp/bookmobile/commit/c2cae799b9416a604e05a1004291ff5831a9a8d9" rel="nofollow">
<span>c2cae799b9</span>
</a>
<a>
</a>
<span title="switched backend to readability-cli rather than roll my own"><span><a href="https://tildegit.org/exquisitecorp/bookmobile/commit/c2cae799b9416a604e05a1004291ff5831a9a8d9">switched backend to readability-cli rather than roll my own</a></span>
</span>
</th>
<th><span title="Tue, 20 Jul 2021 23:04:39 UTC">3 minutes ago</span></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span>
<a title="lib" href="https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/lib">
lib
</a>
</span>
</td>
<td>
<span>
<a title="add comments" href="https://tildegit.org/exquisitecorp/bookmobile/commit/84532321282d4c7b54994e7bc05692420893b805">add comments</a>
</span>
</td>
<td><span title="Tue, 20 Jul 2021 21:19:49 UTC">2 hours ago</span></td>
</tr>
<tr>
<td>
<span>
<a title="themes" href="https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/themes">
themes
</a>
</span>
</td>
<td>
<span>
<a title="initial commit" href="https://tildegit.org/exquisitecorp/bookmobile/commit/fd4e58e425482442be67465cb48838e157c3407e">initial commit</a>
</span>
</td>
<td><span title="Tue, 20 Jul 2021 21:11:49 UTC">2 hours ago</span></td>
</tr>
<tr>
<td>
<span>
<a title="README.md" href="https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/README.md">README.md</a>
</span>
</td>
<td>
<span>
<a title="update README.md" href="https://tildegit.org/exquisitecorp/bookmobile/commit/24a34721d653d45e75bf35b14cd4e01b9f6470b5">update README.md</a>
</span>
</td>
<td><span title="Tue, 20 Jul 2021 23:01:22 UTC">6 minutes ago</span></td>
</tr>
<tr>
<td>
<span>
<a title="bookmobile.fish" href="https://tildegit.org/exquisitecorp/bookmobile/src/branch/master/bookmobile.fish">bookmobile.fish</a>
</span>
</td>
<td>
<span>
<a title="switched backend to readability-cli rather than roll my own" href="https://tildegit.org/exquisitecorp/bookmobile/commit/c2cae799b9416a604e05a1004291ff5831a9a8d9">switched backend to readability-cli rather than roll my own</a>
</span>
</td>
<td><span title="Tue, 20 Jul 2021 23:04:39 UTC">3 minutes ago</span></td>
</tr>
</tbody>
</table>
<div>
<p>Simple command line script to download articles for offline viewing as markdown, simplified clean HTML and epub.</p>
<p>This is a fishscript (shell) gluing together pandoc and a Node.js package that implements the Firefox reader view. It uses a NPM package that uses Mozilla's own reability javascript. If that's not the right solution for you, jump down to the alternatives section at the end.</p>
<h3 id="user-content-dependencies">Dependencies</h3>
<ul>
<li>fish</li>
<li>Pandoc</li>
<li>Node.js / NPM</li>
</ul>
<p>Note: you must have the following sub-directories: originals/ reader/ epubs/ markdown/</p>
<h3 id="user-content-install">Install</h3>
<pre><code>npm install readability-cli
git clone https://tildegit.org/exquisitecorp/bookmobile.git
cd bookmobile
chmod +x bookmobile.fish
</code></pre><h3 id="user-content-usage">Usage</h3>
<pre><code>./bookmobile.fish URL
</code></pre><p>Output:</p>
<p>A simplified HTML document will be saved to originals. A reader view with chosen (or default) theme will be saved to reader/. An epub in epubs/ and a markdown file to markdown sub-directory.</p>
<h3 id="user-content-to-change-themes">To change themes</h3>
<p>The themes subdirectory contains several custom simple themes for rendering a nice reader view. You can edit these or add your own custom theme to this folder. Change the theme selection in line 3 of the bookmobile.fish file.</p>
<h3 id="user-content-alternatives">Alternatives</h3>
<p>Currently there are a number of CLI programs that are ports of the Readability project. These may serve your needs better.</p>
<p>A partial listing can be found <a rel="nofollow" href="https://github.com/masukomi/arc90-readability#readability-10">here</a></p>
</div>
</div></div>
</div>
</div>
</div>
</body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,165 +0,0 @@
/* Sakura.css v1.0.0
* ================
* Minimal css theme.
* Project: https://github.com/oxalorg/sakura
*/
/* Body */
html {
font-size: 62.5%;
font-family: serif; }
body {
font-size: 1.8rem;
line-height: 1.618;
max-width: 38em;
margin: auto;
color: #4a4a4a;
background-color: #f9f9f9;
padding: 13px; }
@media (max-width: 684px) {
body {
font-size: 1.53rem; } }
@media (max-width: 382px) {
body {
font-size: 1.35rem; } }
h1, h2, h3, h4, h5, h6 {
line-height: 1.1;
font-family: Verdana, Geneva, sans-serif;
font-weight: 700;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto; }
h1 {
font-size: 2.35em; }
h2 {
font-size: 2.00em; }
h3 {
font-size: 1.75em; }
h4 {
font-size: 1.5em; }
h5 {
font-size: 1.25em; }
h6 {
font-size: 1em; }
small, sub, sup {
font-size: 75%; }
hr {
border-color: #2c8898; }
a {
text-decoration: none;
color: #2c8898; }
a:hover {
color: #982c61;
border-bottom: 2px solid #4a4a4a; }
ul {
padding-left: 1.4em; }
li {
margin-bottom: 0.4em; }
blockquote {
font-style: italic;
margin-left: 1.5em;
padding-left: 1em;
border-left: 3px solid #2c8898; }
img {
max-width: 100%; }
/* Pre and Code */
pre {
background-color: #f1f1f1;
display: block;
padding: 1em;
overflow-x: auto; }
code {
font-size: 0.9em;
padding: 0 0.5em;
background-color: #f1f1f1;
white-space: pre-wrap; }
pre > code {
padding: 0;
background-color: transparent;
white-space: pre; }
/* Tables */
table {
text-align: justify;
width: 100%;
border-collapse: collapse; }
td, th {
padding: 0.5em;
border-bottom: 1px solid #f1f1f1; }
/* Buttons, forms and input */
input, textarea {
border: 1px solid #4a4a4a; }
input:focus, textarea:focus {
border: 1px solid #2c8898; }
textarea {
width: 100%; }
.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
display: inline-block;
padding: 5px 10px;
text-align: center;
text-decoration: none;
white-space: nowrap;
background-color: #2c8898;
color: #f9f9f9;
border-radius: 1px;
border: 1px solid #2c8898;
cursor: pointer;
box-sizing: border-box; }
.button[disabled], button[disabled], input[type="submit"][disabled], input[type="reset"][disabled], input[type="button"][disabled] {
cursor: default;
opacity: .5; }
.button:focus, .button:hover, button:focus, button:hover, input[type="submit"]:focus, input[type="submit"]:hover, input[type="reset"]:focus, input[type="reset"]:hover, input[type="button"]:focus, input[type="button"]:hover {
background-color: #982c61;
border-color: #982c61;
color: #f9f9f9;
outline: 0; }
textarea, select, input[type] {
color: #4a4a4a;
padding: 6px 10px;
/* The 6px vertically centers text on FF, ignored by Webkit */
margin-bottom: 10px;
background-color: #f1f1f1;
border: 1px solid #f1f1f1;
border-radius: 4px;
box-shadow: none;
box-sizing: border-box; }
textarea:focus, select:focus, input[type]:focus {
border: 1px solid #2c8898;
outline: 0; }
input[type="checkbox"]:focus {
outline: 1px dotted #2c8898; }
label, legend, fieldset {
display: block;
margin-bottom: .5rem;
font-weight: 600; }