Skip to main content

documentation framework that serves all '.s.HTML' that are found in the cwd.

Project description


Bravo! You have received a Mercantilism Diploma in "shares" from
the Orbital Convergence University International Air and Water
Embassy of the 🍊 Planet (the planet that is one ellipse further from
the Sun than Earth's ellipse).

You are now officially certified to include "shares" in your practice.


shares


description

Started from the shell, "shares" presents files in the current working directory (cwd) that have extension ".s.HTML" (case sensitive).


install

[ZSH] pip install shares


start from shell

[ZSH] shares

Shares starts on port 2345, or the first avaible port after that.

This is the equivalent of:
[ZSH] shares start --port 2345

--

Alternatively you can add --static-port and "shares"
stops if the port specified is unavailable.
[ZSH] shares start --port 2345 --static-port

--

This is an example ".s.HTML" file.

<pre>
	<h1>This is an example HTML file.</h1>
	<p>
		It really only needs the "pre" tag to    
		look like a reflection of its contents in a browser.   
	</p>   
	<p>
		Tags like "html" and "body" are actually not   
		necessary for rendering HTML in modern browsers.  
	</p>   
	<p>  
		for text to wrap, instead of extending off the page,    
		style "white-space: pre-wrap" can be utilized instead of 
		a "pre" tag like so:
		
		<div style="white-space: pre-wrap"></div>
	</p>
</pre>

However, here is the "CSS1Compat" option,
https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode

with scaling based on the browser screen "viewport" of the screen,
https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag

and support for UTF-8 characters.
http://www.unicode.org/charts
https://www.w3.org/International/questions/qa-html-encoding-declarations

<!doctype html>
<html>
	<head>	
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
	</head>
	<body>
		<main>
			<article style="white-space: pre-wrap">
				
			
			</article>
		</main>
	</body>
</html>

start programmatically

import pathlib
from os.path import dirname, join, normpath
this_folder = pathlib.Path (__file__).parent.resolve ()

import shares
shares.start ({
	"extension": ".s.HTML",
	
	#
	#	This is the node from which the traversal occur.
	#
	"directory": str (this_folder) + "/structures/shares",
	
	#
	#	This path is removed from the absolute path of share files found.
	#
	"relative path": str (this_folder) + "/structures/shares"
})

Contacts

bgrace2345@pm.me

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shares-3.1.1.tar.gz (11.4 kB view details)

Uploaded Source

File details

Details for the file shares-3.1.1.tar.gz.

File metadata

  • Download URL: shares-3.1.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for shares-3.1.1.tar.gz
Algorithm Hash digest
SHA256 652eda54a84324773e24ffd5c7cc048c3478b153bbdd5f9d5d5d6b44c8425e75
MD5 4a736e92295067ef0904735fe710fd94
BLAKE2b-256 16f79d72eabc37201ffbaf29b5d3af1f5c182152edda92ba17a7d282e8141583

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page