Moving modules into a new modules directory. Adding installation instructions to fascilitate offline installation.
BIN
docs/modules/archives/archive-page.png
Normal file
|
After Width: | Height: | Size: 112 KiB |
38
docs/modules/archives/files.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Archive Files
|
||||
|
||||
WROLPi creates several files when archiving a webpage:
|
||||
|
||||
1. A [Singlefile](index.md#singlefile) that stores an exact copy of the web page.
|
||||
2. A [Readability](index.md#readability) file.
|
||||
3. A Readability text file.
|
||||
4. A Readability JSON file.
|
||||
5. A screenshot file of the web page.
|
||||
|
||||
These files all share the same filename but have different suffixes.
|
||||
|
||||
| File Suffix | Purpose |
|
||||
|-------------------|--------------------------------------------|
|
||||
| .html | The Singlefile. |
|
||||
| .readability.html | The Readability extract of the Singlefile. |
|
||||
| .readability.txt | The article text extracted by Readability. |
|
||||
| .readability.json | Data from Readability (URL/author/etc.). |
|
||||
| .png | The screenshot of the web page. |
|
||||
|
||||
Archive files are named using three parts:
|
||||
|
||||
1. The domain directory.
|
||||
2. The archive date time (YYYY-MM-DD-HH-MM-SS).
|
||||
3. The title of the web page.
|
||||
|
||||
If archiving `https://wrolpi.org/getting-started`, the resulting files might be named as follows:
|
||||
|
||||
```
|
||||
wrolpi.org/2023-01-01-12-00-00_Getting Started.html
|
||||
wrolpi.org/2023-01-01-12-00-00_Getting Started.readability.html
|
||||
wrolpi.org/2023-01-01-12-00-00_Getting Started.readability.txt
|
||||
wrolpi.org/2023-01-01-12-00-00_Getting Started.readability.json
|
||||
wrolpi.org/2023-01-01-12-00-00_Getting Started.png
|
||||
```
|
||||
|
||||
WROLPi will attempt to extract the Readability and create a screenshot from the Singlefile. If this is not possible,
|
||||
WROLPi will still keep the lone Singlefile.
|
||||
44
docs/modules/archives/index.md
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# Archives
|
||||
|
||||
The Archives module allows for viewing, organizing, and downloading webpages as SingleFile files. Each Archive's URL is
|
||||
retained and organized by domain in the Domains tab. The Archives page (`/archive`) sorts entries by the most recently
|
||||
published articles.
|
||||
|
||||
In the context of WROLPi, an Archive refers to a set of [similarly named files](files.md) created while archiving.
|
||||
A single SingleFile file is also supported.
|
||||
|
||||

|
||||
|
||||
## Singlefile
|
||||
|
||||
A [Singlefile](https://github.com/gildas-lormeau/SingleFile) is an HTML file which contains encoded copies of all files
|
||||
necessary to render a webpage. Normally, a webpage will link to many resources outside the page you are viewing, which
|
||||
causes problems when you attempt to save the webpage because you will need to download and organize all these files.
|
||||
Singlefile solves this problem by encoding and embedding all the related files within a single HTML file.
|
||||
|
||||
The Singlefile project has many advantages:
|
||||
|
||||
* It creates a single HTML file that can be easily shared with others.
|
||||
* All that is necessary to view the archive is a compatible browser; no external files or services are needed.
|
||||
* It provides an exact copy that handles the rendering of Javascript the page contains.
|
||||
* Images and style are preserved.
|
||||
|
||||
## Readability
|
||||
|
||||
[Readability](https://github.com/mozilla/readability) is a Mozilla project which extracts the article from a web page.
|
||||
Because a web page comprises many HTML, CSS, and Javascript elements that we do not want to search, WROLPi uses
|
||||
Readability to extract the words that will be indexed.
|
||||
|
||||

|
||||
|
||||
## Domain
|
||||
|
||||
A domain is the host of the archived URL. For example, the host of `https://wrolpi.org/getting-started` is `wrolpi.org`.
|
||||
|
||||
## Searching
|
||||
|
||||
When the indexes for an Archive are generated for searching, they are searched in the following order of precedence:
|
||||
|
||||
1. Title
|
||||
2. HTML Metadata Description
|
||||
3. Readability Text
|
||||
BIN
docs/modules/archives/readability-preview.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
docs/modules/files/3d-benchy-preview.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
docs/modules/files/files-page.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
53
docs/modules/files/index.md
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# Files
|
||||
|
||||
The Files module allows you to view the files found in your media directory. No files outside the media directory
|
||||
can be viewed.
|
||||
|
||||
The Files module is different from other modules in WROLPi (Videos/Archives/etc.) because the files displayed are not
|
||||
fetched from the database, they are read from the media directory live. This is necessary to allow refreshing of files
|
||||
that have recently been created, and are not yet in the database.
|
||||
|
||||

|
||||
|
||||
## Refreshing
|
||||
|
||||
WROLPi can search any file in your media directory, this can only be accomplished after a full files refresh has been
|
||||
completed.
|
||||
|
||||
> To refresh all your files, click the **Files** link in the top navigation bar, then click **Refresh All** found at the
|
||||
> bottom of the files table.
|
||||
|
||||
## Files Tools
|
||||
|
||||
The contents of the media directory can be manipulated in the Files module using the buttons on the bottom of the files
|
||||
table.
|
||||
|
||||
**It is recommended to manipulate files using the provided tools. WROLPi can lose track of your files if you manipulate
|
||||
them outside of these tools.**
|
||||
|
||||
The tool buttons are as displayed:
|
||||
|
||||
1. **Refresh All** or **Refresh** button
|
||||
* This button will refresh all files in your media directory, or any files/directories you have selected.
|
||||
2. **Delete** button
|
||||
* This button will delete any files or directories selected.
|
||||
3. **Rename** button
|
||||
* Allows you to rename a single file or directory.
|
||||
4. **Move** button
|
||||
* Allows you to move files/directories into another directory.
|
||||
5. **New Directory** button
|
||||
* Allows you to create a new directory in the directory selected (or, the top directory if no directory is
|
||||
selected.)
|
||||
|
||||
## File Preview
|
||||
|
||||
When clicking on any file, WROLPi will attempt to provide you with a preview of the file. If no previewer has been
|
||||
created for the particular file type has been created, then the generic file preview will be used.
|
||||
|
||||
A preview of a 3D STL model file (which as been tagged with Tools):
|
||||
|
||||

|
||||
|
||||
A preview of a PDF file (which has been tagged with First Aid and Primitive):
|
||||
|
||||

|
||||
BIN
docs/modules/files/pdf-preview.png
Normal file
|
After Width: | Height: | Size: 295 KiB |
28
docs/modules/map/index.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Map
|
||||
|
||||
The Map module allows viewing, and importing of OpenStreetMap PBF files. The map is rendered live as you are using it.
|
||||
Previously renderd tiles (images) are stored on root disk of the system which prevents re-rendering of tiles that have
|
||||
been viewed previously.
|
||||
|
||||
## Map
|
||||
|
||||
The Map tab is a simple iframe around the Apache2 service on port `:8084`
|
||||
|
||||

|
||||
|
||||
## Manage
|
||||
|
||||
The files displayed in the Manage tab are those found in your media directory under `/map`. **Time To Import** is
|
||||
estimated by running many tests importing PBF files on a Raspberry Pi 4. The larger the file, the more inaccurate the
|
||||
time will be.
|
||||
|
||||
> Select all map files you want to import, importing will erase any maps previously imported!
|
||||
|
||||

|
||||
|
||||
### Downloading Map Files
|
||||
|
||||
Map files are available for download from the Geofabrick company. You can download them using the **Files Downloader**,
|
||||
save them to the `map` directory. After they have been downloaded, you will need to import them.
|
||||
|
||||

|
||||
BIN
docs/modules/map/map-manage.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
docs/modules/map/map-viewer.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
docs/modules/map/pbf-file-downloader.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
docs/modules/videos/channel-edit-page.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
docs/modules/videos/channel-new-page.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
0
docs/modules/videos/files.md
Normal file
70
docs/modules/videos/index.md
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# Videos
|
||||
|
||||
## Overview
|
||||
|
||||
The Videos module facilitates the viewing, organizing, and downloading of video files. The main page of the
|
||||
Videos Module (`/videos`) allows browsing all video files.
|
||||
|
||||
In the context of WROLPi, a Video refers to a set of [similarly named files](files.md) created during
|
||||
download. A single video file is also supported.
|
||||
|
||||
## Video Format
|
||||
|
||||
As of the writing of this article, WROLPi favors MP4 files due to their small size and universal support.
|
||||
WROLPi will index many other video formats, but it will always download an MP4 (this may be changed in the
|
||||
future).
|
||||
|
||||
## Downloading
|
||||
|
||||
WROLPi will download a video (and related files) to that video's channel's directory. If you downloaded a
|
||||
video from the WROLPi channel, then your video will be stored in `videos/WROLPi` by default.
|
||||
|
||||
It is possible to override the default download directory by opening the Advanced accordion on the Videos
|
||||
download modal:
|
||||
|
||||

|
||||
|
||||
## Channel
|
||||
|
||||
A Channel contains all videos downloaded from the origin channel (the third-party site from which the video
|
||||
was downloaded). When viewing a video, you will notice that the Older/Newer videos at the bottom of a page
|
||||
are videos within the same channel. WROLPi will attempt to create a Channel for each video that you download.
|
||||
|
||||
A Channel can also be a directory of video files. This is useful when you have a collection of related videos
|
||||
that you have not downloaded.
|
||||
|
||||
### Creating a Channel
|
||||
|
||||
There are two methods to create a channel: the simplest is by downloading a video, which will automatically create the
|
||||
channel for you. Alternatively, you can manually create a channel by navigating to the New Channel Page
|
||||
(`/videos/channel/new`). Access this page by clicking **Videos**, selecting the **Channels** tab, and then clicking
|
||||
**New Channel**.
|
||||
|
||||

|
||||
|
||||
Enter the new channel's name and its directory. All other fields are optional (be sure to enable
|
||||
`Create this directory, if it doesn't exist` if necessary).
|
||||
|
||||
* Note: When entering a Channel's URL, you may need to append `/videos` to ensure the videos are downloaded to the
|
||||
correct location.
|
||||
|
||||
### Editing a Channel
|
||||
|
||||
To edit a Channel, navigate to the Channels (`/videos/channels`) page and click the 'Edit' button on the right. You will
|
||||
be directed to the following page:
|
||||
|
||||

|
||||
|
||||
On this page, you can modify the download frequency, the channel name, or the URL. Currently, it is not possible to
|
||||
change the channel's directory.
|
||||
|
||||
At the bottom of this page you will see the statistics of the channel's video files. This is useful if you want to be
|
||||
sure that all videos were found during a refresh.
|
||||
|
||||
## Searching
|
||||
|
||||
When the indexes for a Video are generated for searching, they are searched in the following order of precedence:
|
||||
|
||||
1. Title
|
||||
2. Description
|
||||
3. Subtitles
|
||||
BIN
docs/modules/videos/video-download-modal.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
31
docs/modules/zim/index.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Zim
|
||||
|
||||
The Zim module facilitates viewing, organizing, and downloading Zim files provided by the Kiwix project.
|
||||
|
||||
## Viewer
|
||||
|
||||
The Viewer tab is a simple iframe around the Kiwix service on port `:8085`
|
||||
|
||||

|
||||
|
||||
## Manage
|
||||
|
||||
The Manage tab displays a list of Zim files that WROLPi has detected, allowing for search and viewing capabilities.
|
||||
It also offers a catalog from which select Kiwix Zim files can be subscribed to. The maximum sizes are estimates, based
|
||||
on the historical data of each specific Zim file.
|
||||
|
||||

|
||||
|
||||
## Subscriptions
|
||||
|
||||
Zim files in the subscription list will be downloaded every 180 days. WROLPi will suggest deleting old Zim files through
|
||||
a message on the home page, if any are detected at startup. You can safely unsubscribe from any Zim file without
|
||||
automatic deletion of files.
|
||||
|
||||
### Custom Zim files
|
||||
|
||||
WROLPi will search any Zim file found in the `zims` directory, but not every project from Kiwix can be found in the
|
||||
subscription list. If you would like to download a specific Zim file, use the **Files Downloader** and save the file to
|
||||
the `zims` directory. (You may need to restart your WROLPi for the new Zim file to be found.)
|
||||
|
||||

|
||||
BIN
docs/modules/zim/zim-file-downloader.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
docs/modules/zim/zim-manage-page.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
docs/modules/zim/zim-viewer-page.png
Normal file
|
After Width: | Height: | Size: 35 KiB |