a gopher server for Hyde sites
Project description
Serve your Hyde site over Gopher. (This is primarily made possible by flask-gopher, yay.)
Installation
Install the package via python3 -m pip install . or replace hyde-gopher with python3 -m hyde_gopher.main in the following steps.
Usage
Setup
As Gopher supports only absolute links and there’s no such thing as a Host header, hyde-gopher needs to know the absolute base path of your site when generating the static site. (If you’re using the built-in webserver this is currently being guessed from the bind configuration which may lead to broken links. Please use the built-in webserver just for local tests and not for internet-facing deployments.)
To do so, add the following line to your site.yaml:
gopher_base_url: gopher://gopher.mysite.invalid:71/~user/
Serve
You can use the built-in webserver for a quick test - and also for pre-viewing your site while editing it.
To do so, run hyde-gopher serve.
Per default, this will serve the site from the current working directory at gopher://localhost:7070/, placing generated files into deploy_gopher/. (You can change this, see hyde-gopher -h and hyde-goper serve -h for more options.)
Generate
The primary purpose of hyde-gopher is to generate a static site (just like hyde’s).
To do so, run hyde-gopher gen.
Per default, this will generate a static version of the site from the current working directory to the folder deploy_gopher/. (You can change this, see hyde-gopher -h and hyde-goper gen -h for more options.)
Knonwn issues / TODO
index pages look very meager
links in pages are not rendered as links
just HTML files and folders are considered
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file hyde_gopher-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: hyde_gopher-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8fb7671a4e3aae93df30dc3822de2599f1d9629471fe21614244d010db0f40d |
|
MD5 | 9cca8423306ff572d4c26ba4ed5c9e54 |
|
BLAKE2b-256 | 7ad36661ab257012c52c0001d9b22dbdef399958d4e7425fa86f4c750f1fbad2 |