Skip to main content

CodeShow turns a directory of code into a static website suitable for use in presentations.

Project description

# CodeShow

CodeShow turns a directory of code into a static website suitable for use in presentations. It uses [pygments](http://pygments.org) for syntax highlighting. In directories that include a readme.md or readme.txt, the readme contents will be displayed under the directory listing.

Passing –site44 generates content optimized for hosting on Site44:

  1. No .html or .txt file extensions are appended to files. This makes for prettier URLs.

  2. A mimetypes.site44.txt file is generated that enforces HTML and plain text content types for those pretty URLs.

See [codeshow.site44.com](http://codeshow.site44.com) for an example of the output, or get the code at [github.com/smarx/codeshow](https://github.com/smarx/codeshow).

## Installation

Use pip install codeshow to install.

## Usage

usage: codeshow [path] [<options>]

CodeShow turns a directory of code into a static website suitable for use in presentations.

positional arguments:

PATH path to the code project

optional arguments:
-h, --help

show this help message and exit

-v, --version

show program’s version number and exit

-o, --output PATH

output path for generated website

-i, --ignore PATH

relative path to skip (can be specified multiple times)

-f, --force

if the output directory already exists, delete it first

-s, --site44

generate output for Site44 (generate mimetypes.site44.txt instead of using file extensions)

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

CodeShow-0.2.2.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file CodeShow-0.2.2.tar.gz.

File metadata

  • Download URL: CodeShow-0.2.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for CodeShow-0.2.2.tar.gz
Algorithm Hash digest
SHA256 efb6dc287a9ffc2684a4af482f3a0d461aab1a51c2081d0aa02111e97bd3059c
MD5 419e380a625ab63272b32d301d22ffa7
BLAKE2b-256 259e5ce5d344feef055142b4edf97201e534d0d5fe7812337a31e0a50bc22480

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