Skip to content
forked from speced/bikeshed

🚲 Bundles Bikeshed for use without Python or pip

License

Notifications You must be signed in to change notification settings

jcbhmr/bikeshed

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Bikeshed prebuilt

🚲 Bundles Bikeshed for use without Python or pip
πŸ”€ Forked from speced/bikeshed

GitHub releases (this project) | Official Bikeshed website

🐍 Uses PyInstaller
🏭 Compiles the bikeshed PyPI package to a standalone program
🚚 Distributed via GitHub releases
πŸ’» Builds for Windows, macOS, and Linux
🌌 Bundled as a single actually portable executable

Installation

Windows Linux macOS

πŸ›‘ If possible you should install Bikeshed directly from the bikeshed PyPI package as is officially recommended.

pipx install bikeshed

You can get Bikeshed builds built by this bikeshed-builder project from the GitHub releases tab. These are unofficial.

This project is intended to be used & integrated with software that works better without the Python & pip requirements that the official Bikeshed distribution method uses. You can also use it as a standalone way to install Bikeshed without a Python environment. For example an npm redistribution of the Bikeshed project to be npm install <bikeshed_package_name> would not want to require a particular Python environment. Instead, they would opt for a premade all-in-one binary/package such as the PyInstaller bikeshed released by this project! 😊

Here are the relevant URLs that you would use in your code to fetch releases from this project:

https://github.com/jcbhmr/bikeshed/releases/download/v4.2.3/bikeshed-linux_x86_64-4.1.12.tar.gz
https://github.com/jcbhmr/bikeshed/releases/download/v4.2.3/bikeshed-macosx_10_9_x86_64-4.1.12.tar.gz
https://github.com/jcbhmr/bikeshed/releases/download/v4.2.3/bikeshed-macosx_11_0_arm64-4.1.12.tar.gz
https://github.com/jcbhmr/bikeshed/releases/download/v4.2.3/bikeshed-win_amd64-4.1.12.zip
https://github.com/jcbhmr/bikeshed/releases/download/v4.2.3/bikeshed-ape-4.1.12.zip

In addition to the PyInstaller tarballs there's also an actually portable executable (APE) that bundles the Windows, macOS (x86-64 & AArch64), and Linux binaries into a single multiplatform executable.

Programs are encouraged to pin an exact version of Bikeshed and then update Bikeshed as a dependency as opposed to always fetching the latest Bikeshed release binaries.

πŸ“š Read the Bikeshed documentation for how to use the bikeshed CLI

Development

Python GitHub Actions

This is a friendly forkπŸ”€ of speced/bikeshed. I don't know if upstream wants to host prebuilt binaries. πŸ€·β€β™€οΈ This project is a small patch (hopefully) that should build each Bikeshed CLI version and publish some sweet precompiled binaries.

Bikeshed doesn't do release tags. Make sure to manually watch the release notes issue and then merge any changes into this fork.

To create a release of this project:

  1. Run the "Create release" workflow manually. Choose draft: true.
  2. Check the draft release using the GitHub web UI. If it looks good, publish it!
  3. Update the copyable URLs in the Usage section.

TODO: I need some assistance in handling non-zero exit codes and process signals properly in Windows. If anyone reading this knows how to waitpid() correctly please enlighten me! ☺️


Bikeshed, a spec preprocessor

Bikeshed is a pre-processor for spec documents, turning a source document (containing only the actual spec content, plus several shorthands for linking to terms and other things) into a final spec document, with appropriate boilerplate, bibliography, indexes, etc all filled in. It's used on specs for CSS and many other W3C working groups, WHATWG, the C++ standards committee, and elsewhere!

CI Gitter Docs Release Notes

The processor can be easily installed and run locally (requiring no network access unless you're updating), or accessed as a CGI without any installation at all: https://api.csswg.org/bikeshed/

A short overview of some of Bikeshed's features:

Documentation Sections

The full Bikeshed documentation is generated by Bikeshed and accessible here.

Note About Fatal Errors

Bikeshed generates "fatal errors" for lots of things that it wants you to fix, but generally recovers gracefully from them anyway. If you're getting a fatal error, but don't have time to fix it and just need a spec right now, you can force Bikeshed to generate anyway with the -f flag, like: bikeshed -f spec.

This is also sometimes useful when converting a spec to Bikeshed for the first time, so you can see all the errors at once and fix them in whatever order is easiest, rather than having to deal with them one-by-one with no idea when they'll end. (You may also want to silence the warnings in this case, to reduce visual noise until you've gotten it at least building successfully. Use bikeshed -qf spec.)

Bikeshed File Extension

The preferred file extensions for Bikeshed source files is bs, like index.bs. Bikeshed will automatically recognize *.bs files in the folder it's run in, and assume that you want an output file of the same name with a .html extension. The repository also contains a syntax highlighting script for Bikeshed source files.

(Bikeshed also recognizes files with *.src.html for backwards compatibility with older CSS specs, though most such specs have switched their source file extensions to .bs now. Using .src.html in most text editors will display the file with HTML source formatting, which isn't generally what you want.)

License

This document and all associated files in the github project are licensed under CC0 . This means you can reuse, remix, or otherwise appropriate this project for your own use without restriction. (The actual legal meaning can be found at the above link.) Don't ask me for permission to use any part of this project, just use it. I would appreciate attribution, but that is not required by the license.

Packages

No packages published

Languages

  • HTML 82.8%
  • Bikeshed 16.5%
  • Python 0.7%
  • CSS 0.0%
  • JavaScript 0.0%
  • Emacs Lisp 0.0%