This project is an extension for DocOps, a tool for generating documentation from code. It provides a WebAssembly (WASM) implementation of the extension, allowing it to be used in a web browser.
To use this extension, you can include the generated WASM file in your DocOps project and configure it to use the extension. For more information on how to use the extension, please refer to the DocOps documentation.
Rust is required to build the extension from source. You can install Rust by following the instructions on the official Rust website.
If you want to build the extension from source, you can run the following command:
wasm-pack build --target web --releasepython3 -m http.server 8000open http://localhost:8000 in your browser
To test the extension, you can run the following command:
cargo testhttps://sroach.github.io/docops-extension-wasm/
wasm-pack build --target web --out-dir docs/pkgThis project is licensed under the MIT License - see the LICENSE file for details.
The svg can be signed using one of the following approaches:
control is privkey
You can generate a compatible key using any of the following methods:
This is the fastest method if you have OpenSSL installed (standard on macOS and Linux):
openssl rand -hex 32Output: A 64-character hex string like 0001020304...
If you have Python installed, you can generate a random hex string with a one-liner:
python3 -c "import os; print(os.urandom(32).hex())"node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"wasm-pack build --target nodejs --release --out-dir pkg-node