go-go-web
Command-line tool that converts .txt or .md files into .html files.
Features
v1.0.3project package uploaded to Test PyPIv0.0.5additionally parses front matter from .md files for metadatav0.0.4additionally accepts TOML config filev0.0.3additionally parses code blocks and horizontal rules for .md filesv0.0.2additionally converts .md files into .html and parses italic and bold for .md filesv0.0.1converts TIL post (.txt file) into .html file, specify output location, specify stylesheet url, view app version, view app help message
Installation
-
Download and install the latest version of python. Open a terminal and check that it is installed.
py --version -
Make sure you have upgraded version of pip.
Windows
py -m pip install --upgrade pipLinux/MAC OS
python3 -m pip install --upgrade pip -
Install gogoweb using pip.
Windows
pip install gogowebLinux/MAC OS
python3 -m pip install gogoweb -
Check that you have the latest version of the app.
py -m gogoweb.convert -v
Usage
View App Version
py -m gogoweb.convert --version or py -m gogoweb.convert -v
View Usage Message
py -m gogoweb.convert --help or py -m gogoweb.convert -h
Convert .txt to .html
py -m gogoweb.convert <file or folder path>
Example 1 (Convert one file)
py -m gogoweb.convert ./examples/til_post1.txt
Example 2 (Convert a folder of files)
py -m gogoweb.convert ./examples
Output(s) can be found in til folder.
Specify Output Location
py -m gogoweb.convert <file or folder path> -o <folder path>
Example
py -m gogoweb.convert ./examples/examples.txt -o ./examples
Specify Stylesheet
py -m gogoweb.convert <file or folder path> -s <stylesheet url>
Example
py -m gogoweb.convert ./examples/til_post2.txt -s https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.8.0/tufte.min.css
Specify Config File
py -m gogoweb.convert <file or folder path> -c <config toml file path>
Example
py -m gogoweb.convert ./examples -c src/gogoweb/config.toml
Additional Features Available for Markdown
Input file must be a .md file that is written in proper Markdown syntax
Front Matter Parsing
You may specify the following front matter in Markdown files and these will become the metadata of the resulting HTML file
| Name | Type | Default | Description |
|---|---|---|---|
| description | string | undefined | The description of your document. Used for the page metadata and by search engines. |
| keywords | string[] | undefined | Keywords meta tag for the document page, for search engines. |
| lang | string | en | The language of your document. |
| title | string | file name | The text title of your document. Used for the page metadata. |
How to specify front matter in a Markdown file:
---
title: Katie's Homepage
keywords: website, coding
description: This is Katie's personal website.
---
License
See Examples Outputs
Metadata
Release files for gogoweb 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gogoweb-1.0.3.tar.gz | 8.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gogoweb-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.6 kB
Release files / gogoweb-1.0.3.tar.gz
| Download URL | gogoweb-1.0.3.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d9f1e6228405136358cca0a1de24f4d16d6ff7406fccd4bb5139b168438076d
|
|
BLAKE2b-256 checksum How to use checksums |
0b0663d2bcd425957278015360eb97f53d759a040a751bd62e2225fdc11e3553
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / gogoweb-1.0.3-py3-none-any.whl
| Download URL | gogoweb-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13a2d1978cae1e9543e73ada2f712978e60cb4cefb9cefe7400a6d1662ed7dfb
|
|
BLAKE2b-256 checksum How to use checksums |
1beaeb3ac28e87e972897c811bd03b2857d58aecb9f8c1e5b1e9896aab02637d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for gogoweb 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.