diff options
Diffstat (limited to 'projects/wsdiff/index.html')
-rw-r--r-- | projects/wsdiff/index.html | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/projects/wsdiff/index.html b/projects/wsdiff/index.html new file mode 100644 index 0000000..493fae5 --- /dev/null +++ b/projects/wsdiff/index.html @@ -0,0 +1,89 @@ +<!DOCTYPE html> +<html><head> + <meta charset="utf-8"> + <title>wsdiff | Home</title> + <meta name="description" content=""> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="mobile-web-app-capable" content="yes"> + <meta name="color-scheme" content="dark light"> + <link rel="stylesheet" href="/style.css"> +</head> +<body><nav> + + <a href="/" title="Home">Home</a> + <a href="/blog/" title="Blog">Blog</a> + <a href="/projects/" title="Projects">Projects</a> + <a href="/about/" title="About">About</a> + <span class="spacer"></span> + <a href="https://git.jaseg.de/" title="cgit">cgit</a> + <a href="https://github.com/jaseg" title="Github">Github</a> + <a href="https://gitlab.com/neinseg" title="Gitlab">Gitlab</a> + <a href="https://chaos.social/jaseg" title="Mastodon">Mastodon</a> +</nav> + + <header> + <h1>wsdiff</h1> +<ul class="breadcrumbs"> + <li><a href="/">jaseg.de</a></li> + <li><a href="/projects/">Projects</a></li><li><a href="/projects/wsdiff/">wsdiff</a></li> +</ul> + + </header> + <main> + <div class="document"> + + +<p>wsdiff is a python script that produces a diff of two files or directories as a single, self-contained HTML file. The +resulting diff works without Javascript and will automatically switch between inline and side-by-side formats depending +on available screen space.</p> +<div class="section" id="installation"> +<h2>Installation</h2> +<pre class="code sh literal-block"> +$<span class="whitespace"> </span>pip<span class="whitespace"> </span>install<span class="whitespace"> </span>wsdiff +</pre> +</div> +<div class="section" id="usage"> +<h2>Usage</h2> +<pre class="literal-block"> +usage: wsdiff [-h] [-b] [-s SYNTAX_CSS] [-l LEXER] [-L] [-t PAGETITLE] + [-o OUTPUT] [--header] [--content] + [old] [new] + +Given two source files or directories this application creates an html page +that highlights the differences between the two. + +positional arguments: + old source file or directory to compare ("before" file) + new source file or directory to compare ("after" file) + +options: + -h, --help show this help message and exit + -b, --open Open output file in a browser + -s SYNTAX_CSS, --syntax-css SYNTAX_CSS + Path to custom Pygments CSS file for code syntax + highlighting + -l LEXER, --lexer LEXER + Manually select pygments lexer (default: guess from + filename, use -L to list available lexers.) + -L, --list-lexers List available lexers for -l/--lexer + -t PAGETITLE, --pagetitle PAGETITLE + Override page title of output HTML file + -o OUTPUT, --output OUTPUT + Name of output file (default: stdout) + --header Only output HTML header with stylesheets and stuff, + and no diff + --content Only output HTML content, without header +</pre> +</div> +<div class="section" id="example-output"> +<h2>Example Output</h2> +<img alt="latest.png" src="latest.png" /> +</div> +</div> + </main><footer> + Copyright © 2023 Jan Sebastian Götte + / <a href="http://jaseg.de/about/">About</a> + / <a href="http://jaseg.de/imprint/">Imprint</a> +</footer> +</body> +</html> |