mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-04 05:50:42 +00:00
c813b220af
* feature: added spacebar as a toggle for proc tree mode * bug: added check if the app is currently in search widget state * refactor: moved the if statements inside the match case * docs: added documentation for Spaec as tree toggle * revert: changes * feat: added space key to toggle tree * refactor: clippy errors * docs: updated documentation for space as toggle * feat: experimental change to Minus, collapse entire tree * fix: clippy errors * feat: finished - and + as full tree collapse/expand * refactor: clippy errors * Made the all collapse function more concise * Changed i32 calls to Pid * updated help text * Fixed array * reverted total collapse and expand of trees * array fix
Extended Documentation
This is where the extended documentation resides, hosted on GitHub Pages. We use MkDocs, Material for MkDocs, and mike.
Documentation is currently built using Python 3.11, though it should work fine with older versions.
Running locally
One way is to just run serve.sh. Alternatively, the manual steps are, assuming your current working directory
is the bottom repo:
# Change directories to the documentation.
cd docs/
# Create and activate venv.
python -m venv venv
source venv/bin/activate
# Install requirements
pip install -r requirements.txt
# Run mkdocs
venv/bin/mkdocs serve
Deploying
Deploying is done via mike in order to get versioning. Typically, this is done through CI, but can be done manually if needed.
Nightly docs
cd docs
mike deploy nightly --push
Stable docs
cd docs
# Rename the previous stable version
mike retitle --push stable $OLD_STABLE_VERSION
# Set the newest version as the most recent stable version
mike deploy --push --update-aliases $RELEASE_VERSION stable
# Append a "(stable)" string to the end.
mike retitle --push $RELEASE_VERSION "$RELEASE_VERSION (stable)"