Skip to content

Instantly share code, notes, and snippets.

@nivsherf
nivsherf / propagate_docs_change_top_down.sh
Created September 8, 2018 09:06
Sinon doc change propagation - the other way around
#!/bin/sh
# Usage example: ./propagate_docs_change_top_down.sh 4.1.1 stubs
# Will propagate changes already made in release-source/release/stubs.md from to earlier versions, until and including 4.4.1
# If a section name is omitted, the release.md file will be used.
# Make sure you have SINON_HOME pointing to the repository root.
# You'll need git and the npm "semver" package installed (npm i -g semver)
cd $SINON_HOME/docs
@nivsherf
nivsherf / edit_sinon_docs.sh
Created September 6, 2018 23:15
Sinon Doc Editor
#!/bin/sh
# Usage example: ./edit_sinon_docs.sh stubs 4.1.1
# Will open stubs.md from 4.1.1 for editing and propagate the changes to later versions.
# Make sure you have SINON_HOME pointing to the repository root.
# You'll need git and the npm "semver" package installed (npm i -g semver)
cd $SINON_HOME/docs
FILENAME=$1.md